共用方式為


升級到 Project Server 2016

總結:瞭解如何升級至Project Server 2016。
適用於:Project Server 2016

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

注意事項

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

升級需求

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

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

    注意事項

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

  • 升級程式需要您在 SharePoint Server 2016 管理主控台中執行 Windows PowerShell Cmdlet。 確認您具有執行它們所需的許可權

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

    • 它們必須發佈。

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

      注意事項

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

Project Server 2016升級步驟

升級至Project Server 2016可分成六個步驟。 包括:

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

  2. 複製和移動資料庫

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

  4. 測試 SharePoint 內容資料庫

  5. 附加和升級 Project Server 2013 資料庫

  6. 停用 PWA 網站的資料庫配額限制

  7. 將 Project Server 2013 資源計劃移轉 (選擇性)

下列提供有關升級概觀中所述升級步驟的詳細資料。

建立Project Server 2016伺服器陣列

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

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

重要事項

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

注意事項

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

複製和移動資料庫

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

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

    • 包含專案資料的 SharePoint 2013 內容資料庫

    • Project Server 2013 資料庫

  2. 伺服器陣列管理員會將資料庫的備份複本還原至用來裝載Project Server 2016伺服器陣列資料庫的 SQL Server 2014 實例。

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

附加和升級 SharePoint 2013 內容資料庫

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

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

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

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

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

    例如:

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

測試內容資料庫

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

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

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

    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 2016 環境中升級的 SharePoint Web 應用程式中會發現不一致的情況。 結果並不表示 SharePoint 2013 內容資料庫升級失敗,但只會記下您在新環境中需要查看的事項。 例如,您可能會看到下列結果:

Category: MissingWebPart

Error: True

UpgradeBlocking : False

Message: WebPart class [e6002ce8-69ee-168a-8f7c-a1d98d51da29] (class [Microsoft.Office.Excel.WebUI.ExcelWebRenderer] from assembly [Microsoft.Office.Excel.WebUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c]) is referenced [1] times in the database [WSSContentContosoPWA], but is not installed on the current farm. Please install any feature/solution which contains this web part.

Remedy: One or more web parts are referenced in the database [WSSContentContosoPWA], but are not installed on the current farm. Please install any feature or solution which contains these web parts.

此訊息會指出在 SharePoint Server 2016 伺服器陣列上找不到升級內容資料庫中參考的Excel Services網頁元件。 您可能需要在 SharePoint Server 2016 伺服器陣列上安裝Office Online Server,才能使用它。

注意事項

Office Online Server支援與 Project Server 2016 搭配使用。

附加和升級 Project Server 2013 資料庫

附加、升級及測試 SharePoint 2013 內容資料庫之後,下一個步驟是將 Project Server 2013 資料庫附加並升級至 Project Server 2016 伺服器陣列。 您必須在 SharePoint 2016 管理命令介面中執行 Migrate -SPProjectDatabase PowerShell Cmdlet,才能執行此動作。

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

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

    Migrate-SPProjectDatabase -DatabaseName <database name> -SiteCollection <PWA site URL>

    例如:

    Migrate-SPProjectDatabase -DatabaseName ProjectDB1 -SiteCollection "https://contoso1/sites/PWA"

    當 Cmdlet 順利完成時,請確認您可以開啟您在 Project Server 2016 中指定的 Project 網站。

注意事項

如果您有多個想要升級的 PWA 網站,則必須同時升級內容 DB 和所有 PWA 網站中的所有網站。 這表示必須升級包含專案網站資料的內容資料庫,以及每個 PWA 月臺的任何相關聯 Project 資料庫。

停用 PWA 網站的資料庫配額限制

您必須執行下列Windows PowerShell Cmdlet,以停用預設在 Project Server 2016 中設定的資料庫配額限制限制:

Set-SPProjectDatabaseQuota -URL <https://servername/sites/pwa> -Enabled:$false -ReadOnlyLimit 10200 -ReadOnlyWarningThreshold 90 -MaxDbSize 10240

例如:

Set-SPProjectDatabaseQuota -URL https://contoso/sites/pwa -Enabled:$false -ReadOnlyLimit 10200 -ReadOnlyWarningThreshold 90 -MaxDbSize 10240

注意事項

如果未停用資料庫配額限制限制,您將會遇到下列問題: > 如果您要升級至 Project Server 2016,而且您要升級的 Project 資料庫大於 10 Gigs,您的 PWA 網站會立即設定為唯讀。 >如果您部署Project Server 2016、設定 PWA 網站,並透過每日產品使用,網站的資料最終會超過 10 Gig 限制,您的 PWA 網站將會設定為唯讀。 >如果您使用多個 PWA 網站,則必須針對每個 PWA 網站執行 Cmdlet。

注意事項

如需此問題的詳細資訊,請參閱 專案支援部落格:如果您的 PWA 網站是唯讀的

將您的資源計劃升級至 Resource Engagements

如果您想要在Project Server 2016中使用 Resource Engagements 功能,您可以選擇升級現有的 Project Server 2013 資源計劃,以作為 Resource Engagements 使用。 若要這樣做,將 Project Server 2013 資料庫升級至 Project Server 2016 之後,您也必須在 SharePoint 2016 管理命令介面中執行Migrate-SPProjectResourcePlans PowerShell Cmdlet。

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

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

    Migrate-SPProjectResourcePlans -URL <PWA site URL>

    例如:

    Migrate-SPProjectResourcePlans -URL "https://contoso1/sites/PWA"

執行 Cmdlet 之後,您應該會收到下列其中一個確認訊息:

訊息 這代表什麼
已成功移轉所有專案資源計劃
找到所有資源計劃,且全部都已移轉
已移轉 {0}{1} 專案資源計劃。 如需詳細資訊,請查看記錄。
找到資源計劃,但有些無法移轉。
不再有要移轉的專案資源計劃。 所有資源計劃都已移轉或超過重試計數上限。 請檢查已發行存放區中的資料表MSP_RESOURCE_PLANS,並確認已針對所有專案設定RESPLAN_IS_MIGRATED
找不到要移轉的資源計劃,或已通過的嘗試次數上限。

如果您的資源計劃未成功移轉 (您收到最後兩則訊息) ,您可以使用下列疑難排解步驟來尋找詳細資訊。

檢查 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 2016 管理主控台中執行下列 PowerShell Cmdlet:

$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