共用方式為


升級到 Project Server 2019

總結: 瞭解如何升級至 Project Server 2019。
適用于: Project Server 2019

本文說明升級至 Project Server 2019 所需的步驟。

注意事項

閱讀本文之前,請參閱 規劃升級至 Project Server 2019 ,以取得升級和升級程式的詳細資訊。

升級需求

請注意下列升級至 Project Server 2019 的需求:

  • 您只能從Project Server 2016升級。 如果您要從舊版的 Project Server 升級,您必須先將資料庫升級至 Project Server 2016,才能升級至 Project Server 2019。

    注意事項

    如需從 Project Server 2013 升級至 Project Server 2019 的相關資訊,請參閱從 SharePoint 2013 升級至 SharePoint Server 2019

  • 升級程式需要您在 SharePoint Server 2019 管理命令介面中執行 Microsoft PowerShell Cmdlet。 請確認您具有下列執行許可權的最低許可權:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。

    系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。

    [!注意]如果您沒有許可權,請連絡安裝程式管理員或SQL Server系統管理員以要求許可權。 如需 PowerShell 許可權的其他資訊,請參閱 Add-SPShellAdmin

  • 如果您要移轉Project Server 2016資源計劃,以作為 Project Server 2019 中的 Resource Engagements:

    • 它們必須發佈。

    • 它們必須具有相關聯的時間階段資料 (它必須包含工作,而不只是資源) 。

      注意事項

      如需 Resource Engagement 的詳細資訊,請參閱此部落格文章: Resource Engagements

Project Server 2019 升級步驟

升級至 Project Server 2019 可分成四個步驟。 包括:

  1. 建立 Project Server 2019 伺服器陣列

  2. 複製和移動資料庫

  3. 附加和升級 SharePoint Server 2016 內容資料庫

  4. 測試 SharePoint 內容資料庫

下列提供有關這些升級步驟的詳細資料。

建立 Project Server 2019 伺服器陣列

升級程式的第一個步驟是建立 Project Server 2019 伺服器陣列。 由於資料庫附加是支援的升級方法,因此您將在後續步驟中,將Project Server 2016資料庫附加並升級至此伺服器陣列。

請注意,安裝 Project Server 2019 與舊版安裝方式的主要差異在於,Project Server 2019 安裝現在是SharePoint Server 2019安裝的一部分。 Project Server 2019 現在會在 SharePoint Server 2019 中以服務應用程式的形式執行,而且不需要個別安裝。

重要事項

Project Server 2019 只能在企業版的 SharePoint Server 2019上啟用。 無法在具有標準授權的SharePoint Server 2019上啟用 Project Server 2019。

注意事項

如需如何安裝新 Project Server 2019 伺服器陣列的詳細資訊,請 參閱部署 Project Server 2016 或 2019

複製和移動資料庫

升級程式的第二個步驟會將Project Server 2016環境所需的資料庫複製到新的 Project Server 2019 環境。 這是兩個步驟的程式:

  1. 在 SharePoint Server 2016 伺服器陣列處於唯讀模式時,伺服器陣列管理員會從 SQL Server 實例備份下列兩個資料庫:

    • 包含專案資料的 SharePoint Server 2016 內容資料庫
  2. 伺服器陣列管理員會將資料庫的備份複本還原至用來裝載 Project Server 2019 伺服器陣列資料庫的 SQL Server 2016 或 2017 實例。

您可以使用SQL Server Management Studio來複製和還原資料庫。

附加和升級 SharePoint Server 2016 內容資料庫

升級程式的第三個步驟會將包含 Project 網站資料的 SharePoint Server 2016 內容資料庫附加並升級至新的 Project Server 2019 伺服器陣列。

您必須在 SharePoint 2019 管理命令介面中執行 Mount -SPContentDatabase PowerShell Cmdlet,才能執行此動作。

  1. 以系統管理員身分開啟 SharePoint 2019 管理命令介面。

  2. 在 Powershell 命令提示字元中,輸入:

    Mount-SPContentDatabase -Name <database name> -WebApplication <Web application name>

    例如:

    Mount-SPContentDatabase -Name WSSContentContosoPWA -WebApplication "SharePoint 80"

測試內容資料庫

升級的第四個步驟是測試新附加和升級的內容資料庫。 您將使用Test-SPContentDatabase PowerShell Cmdlet 來測試您指定的 Web 應用程式,以確認內容資料庫內所參考的所有自訂專案也會安裝在新的SharePoint Server 2019環境中的 Web 應用程式中。 此 Cmdlet 將不會在 中更新您的資料。

  1. 以系統管理員身分開啟 SharePoint 2019 管理命令介面。

  2. 在 PowerShell 命令提示字元中,輸入:

    Test-SPContentDatabase -Name <database name> -WebApplication <Web application name>

    例如:

    Test-SPContentDatabase -Name WSSContentContosoPWA -WebApplication "SharePoint 80"

    這會根據 WSSContentContosoPWA 資料庫中參考的自訂專案來檢查 SharePoint - 80 Web 應用程式,並張貼結果。

Test-SPContentDatabase Cmdlet 的結果會注意到其在新SharePoint Server 2019環境中升級的 SharePoint Web 應用程式中會發現不一致的情況。 結果並不表示 SharePoint 2016 內容資料庫升級失敗,但只會記下您在新環境中需要查看的事項。 以下是可能會出現在結果中的一些檢查。

檢查 SharePoint Server 2016 內容資料庫以取得資源計劃移轉資訊

檢查MSP_RESOURCE_PLANS下列資料行的資料表:

RESPLAN_IS_MIGRATED
「0」 未移轉
「1」 已移轉
MIGRATED_REV_COUNTER
顯示的值是移轉此資源計劃所花費的嘗試次數。 如果重複執行命令,每次都會遞增此值,最大值為 50。
MIGRATION_ERROR_INFO
提供有關移轉的其他資訊:
MissingResources=1,後面接著遺漏資源的清單
AccessDenied=2,後面接著任何其他資訊
DatabaseError=3,後面接著任何其他資訊
Unknown=4,後面接著任何其他資訊

檢查 SharePoint Server 2016 內容資料庫以取得資源計劃移轉資訊

您可以檢查您要移轉的特定 PWA 網站是否有相關聯的資源計劃。 您可以使用下列 SQL 查詢來執行此動作:

SELECT *
  FROM [DBName].[pjpub].[MSP_RESOURCE_PLANS] where SiteId = <SiteId>

此資料表中針對網站的每個資源計劃都有一個資料列 (專案可以有 0 或 1 個資源計劃) 。

若要取得 PWA 網站的 SiteID 值,請在 SharePoint Server 2019 管理命令介面中執行下列 PowerShell 命令:

$site = get-spsite <SiteUrl>
$site.ID

如需詳細資訊,請檢查您的 ULS 記錄

類別中的下列 標籤:Engagements (PWA) 可能有實用的資訊,可協助您針對與資源計劃移轉相關聯的任何問題進行疑難排解:

  • tag_a5h65

  • tag_a5h66

  • tag_a1kg8

  • tag_a3qj3

  • tag_a1khb

  • tag_a5h67

  • tag_a1khf

  • tag_a2ifm

  • tag_a4bic

  • tag_a1khh

  • tag_a2ifo