將您的環境升級至 System Center 2016-Service ManagerUpgrade your environment to System Center 2016 - Service Manager

如果有任何資料倉儲作業或工作流程正在執行,您就無法開始升級至 System Center 2016-Service Manager。You cannot start an upgrade to System Center 2016 - Service Manager if any data warehouse jobs or workflows are running. 您可以使用本節中的程序來停止資料倉儲作業排程並等候排程完成,然後再升級資料倉儲管理伺服器。You can use the procedures in this section to stop the data warehouse job schedules and wait for them to complete before you upgrade the data warehouse management server. 在升級 Service Manager 管理伺服器之前,請先停止自助入口網站(如果已安裝),然後等候10分鐘,讓任何執行中的工作流程完成,再開始升級。Before you upgrade the Service Manager management server, stop the Self-Service Portal, if it is installed, and then wait 10 minutes to let any running workflows finish before you start the upgrade.

請依序完成下一節中的程式,以升級至 System Center 2016-Service Manager。Complete the procedures in the following section, in order, to upgrade to System Center 2016 - Service Manager.

升級準備Upgrade preparation

  • 進行 Service Manager 資料倉儲資料庫還原時,您也必須在安裝資料倉儲之後,還原報表資料庫。For Service Manager data warehouse database restoration, the Reporting database also needs to be restored after you install the data warehouse.

  • 請參閱將System center 2012 R2-Service Manager 升級至 System center 2016中的 system center 元件的排序。Refer to the upgrade sequencing of System Center components at Upgrading System Center 2012 R2 - Service Manager to System Center 2016.

  • 請不要混合使用 Service Manager 2016 和 Service Manager 2012 R2 Service Manager 的不同元件,全部都應使用相同的版本。Do not mix Service Manager 2016 and Service Manager 2012 R2 with different Service Manager components - all should use the same version. 例如,自助入口網站和 Service Manager 管理伺服器皆應使用相同的版本。For example, both the Self Service portal and the Service Manager management server should use the same version.

  • 從 Service Manager 2012 R2 升級至 Service Manager 2016 時,您不應啟用或停用任何 Active Directory 連接器的 Active Directory 群組擴充。When upgrading from Service Manager 2012 R2 to Service Manager 2016, you should not enable or disable the Active Directory group expansion for any of the Active Directory connectors.

    換句話說,如果原本為關閉,就讓它保持關閉狀態;如果原本為開啟,就讓它保持開啟,直到第一次執行連接器為止。In other words, if it is off, let it remain off and if it is on, let it remain on until the connector runs for the first time. 請參閱以下螢幕擷取畫面。See the screenshot below. 這只適用於升級後第一次執行 Active Directory 連接器的情況。This applies only to the first time that the Active Directory connector runs after you upgrade. 在第一次 Active Directory 連接器同步處理完成之後,您即可變更 Active Directory 群組擴充工作流程的喜好設定。You can change your preferences for Active Directory group expansion workflow after the first time that the Active Directory connector sync completes.

    Active Directory 連接器精靈

準備 Service Manager 2012 R2 以進行升級Prepare Service Manager 2012 R2 for upgrade

本主題說明如何準備您的 System Center 2012 R2 Service Manager 環境以進行升級。This topic describes how to prepare your System Center 2012 R2 - Service Manager environment for an upgrade. 若要執行這項作業,請執行下列程序來升級資料倉儲管理伺服器:To do this, perform the following procedures for upgrading the data warehouse management server:

  1. 列出正在執行的資料倉儲作業,並將它們停用。List the data warehouse jobs that are running and disable them.

  2. 確認資料倉儲作業已停止執行。Confirm that the data warehouse jobs have stopped running.

  3. 當資料倉儲作業已完成時,開始升級資料倉儲管理伺服器。When the data warehouse jobs have completed, start the upgrade of the data warehouse management server.

  4. 升級資料倉儲之後,請在第一個 Service Manager 管理伺服器上執行下列程式:After the data warehouse has been upgraded, perform the following procedures on the first Service Manager management server:

  5. 等待10分鐘,然後開始升級 Service Manager 管理伺服器。Wait 10 minutes, and then start the upgrade of the Service Manager management server.

若要使用 Windows PowerShell Cmdlet 列出資料倉儲作業並予以停用To list the data warehouse jobs by using Windows PowerShell cmdlets and disable them

  1. 在裝載資料倉儲管理伺服器的電腦上,按一下 [開始],按一下 [所有程式],按一下 [ Microsoft System Center 2012 R2],然後按一下 [ Service Manager Shell]。On the computer that hosts the data warehouse management server, click Start, click All Programs, click Microsoft System Center 2012 R2, and then click Service Manager Shell.

  2. 輸入下列命令,然後在輸入每個命令後按一下 ENTER 鍵:Type the following commands, and then press ENTER after each command:

    Set-ExecutionPolicy -force RemoteSigned  
    
    cd (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\').InstallDirectory
    Import-Module .\Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1
    
    cd 'C:\Program Files\Microsoft System Center 2012 R2\Service Manager'  
    Import-Module .\Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1  
    
    
    get-scdwjob | ? {$_.Name -match 'Extract_'}  | foreach {Disable-SCDWJobSchedule -JobName $_.Name}  
    
  3. 資料倉儲作業清單隨即出現。A list of the data warehouse jobs appears.

若要確認資料倉儲作業已停止執行To confirm that the data warehouse jobs have stopped running

  1. 在 Service Manager 主控台中,按一下 [資料倉儲]。In the Service Manager console, click Data Warehouse.

  2. 展開 [資料倉儲] 窗格中的 [資料倉儲],然後按一下 [資料倉儲作業]。In the Data Warehouse pane, expand Data Warehouse, and then click Data Warehouse Jobs.

  3. 在 [資料倉儲作業] 窗格中,觀察每個資料倉儲作業的 [狀態] 欄。In the Data Warehouse Jobs pane, observe the Status column for each data warehouse job. 當每個工作的狀態列為 [未啟動] 時,請繼續進行下一個程式來停止自助入口網站。When the status for each job is listed as Not Started, proceed to the next procedure to stop the Self-Service Portal. 如果您的環境中沒有自助入口網站存在,您可以開始進行升級程式。If no Self-Service Portal exists in your environment, you can start the upgrade process.

若要避免 MPSync 作業失敗To prevent MPSync jobs from failing

  • 在 DWRepository 資料庫上執行下列 SQL 指令碼,取得可在 DWRepository 資料庫中事實資料表裡的主要索引鍵上卸除或新增條件約束的 SQL 指令碼,以更正問題。Run the SQL script below on the DWRepository database to get the SQL scripts that drop and add a constraint on the primary key in fact tables in the DWRepository database to correct the problem

    ;WITH FactName  
    AS (  
           select w.WarehouseEntityName from etl.WarehouseEntity w  
           join etl.WarehouseEntityType t on w.WarehouseEntityTypeId = t.WarehouseEntityTypeId  
           where t.WarehouseEntityTypeName = 'Fact'  
    ),FactList  
    AS (  
        SELECT  PartitionName, p.WarehouseEntityName,  
                RANK() OVER ( PARTITION BY p.WarehouseEntityName ORDER BY PartitionName ASC ) AS RK  
        FROM    etl.TablePartition p  
           join FactName f on p.WarehouseEntityName = f.WarehouseEntityName  
    )  
    , FactPKList  
    AS (  
        SELECT  f.WarehouseEntityName, a.TABLE_NAME, a.COLUMN_NAME, b.CONSTRAINT_NAME, f.RK,  
                CASE WHEN b.CONSTRAINT_NAME = 'PK_' + f.WarehouseEntityName THEN 1 ELSE 0 END AS DefaultConstraints  
        FROM    FactList f  
        JOIN    INFORMATION_SCHEMA.KEY_COLUMN_USAGE a ON f.PartitionName = a.TABLE_NAME  
        JOIN    INFORMATION_SCHEMA.TABLE_CONSTRAINTS b ON a.CONSTRAINT_NAME = b.CONSTRAINT_NAME AND b.CONSTRAINT_TYPE = 'Primary key'  
    )  
    , FactWithoutDefaultConstraints  
    AS (  
        SELECT  a.*  
        FROM    FactPKList a  
        LEFT JOIN FactPKList b ON b.WarehouseEntityName = a.WarehouseEntityName AND b.DefaultConstraints = 1  
        WHERE   b.WarehouseEntityName IS NULL AND a.RK = 1  
    )  
    , FactPKListStr  
    AS (  
        SELECT  DISTINCT f1.WarehouseEntityName, f1.TABLE_NAME, f1.CONSTRAINT_NAME, F.COLUMN_NAME AS PKList  
        FROM    FactWithoutDefaultConstraints f1  
        CROSS APPLY (  
                        SELECT  '[' + COLUMN_NAME + '],'  
                        FROM    FactWithoutDefaultConstraints f2  
                        WHERE   f2.TABLE_NAME = f1.TABLE_NAME  
                        ORDER BY COLUMN_NAME  
                    FOR  
                       XML PATH('')  
                    ) AS F (COLUMN_NAME)  
    )  
    SELECT  'ALTER TABLE [dbo].[' + f.TABLE_NAME + '] DROP CONSTRAINT [' + f.CONSTRAINT_NAME + ']' + CHAR(13) + CHAR(10) +  
            'ALTER TABLE [dbo].[' + f.TABLE_NAME + '] ADD CONSTRAINT [PK_' + f.WarehouseEntityName + '] PRIMARY KEY NONCLUSTERED (' + SUBSTRING(f.PKList, 1, LEN(f.PKList) -1) + ')' + CHAR(13) + CHAR(10)  
    FROM    FactPKListStr f  
    

升級至 System Center 2016 - Service ManagerUpgrade to System Center 2016 - Service Manager

使用下列程式,將您的 Service Manager 環境升級至 System Center 2016-Service Manager。Use the following procedures to upgrade your Service Manager environment to System Center 2016 - Service Manager. 這些套裝程式括升級資料倉儲管理伺服器、Service Manager 管理伺服器,以及 Service Manager 主控台的步驟。These procedures include steps for upgrading the data warehouse management server, the Service Manager management server, and the Service Manager console.

升級 Service Manager 自助入口網站Upgrade the Service Manager Self Service portal

請參閱升級 Service Manager 自助入口網站文章中所述的指示。Refer the instructions mentioned in the Upgrading the Service Manager Self-Service Portal article. 在某些升級案例中,當您升級管理伺服器時,自助入口網站也會一併升級。In some upgrade scenarios, when you upgrade a management server, the Self Service Portal is also upgraded. 在這些情況下,您必須在升級之前先套用修補程式。In these cases, you need to apply a patch before you upgrade.

自訂開發的升級步驟Upgrade steps for custom development

在 System Center 2016 - Service Manager 發行時,產品已進展為支援 .Net 4.5.1。With the System Center 2016 - Service Manager release, the product has moved to support .Net 4.5.1. 為了支援這項 .Net 4.5.1 進展,設定的工具必須打破幾個相依性,以讓類別可跨組件移動。The tool set to support this movement to .Net 4.5.1 required to break a few dependencies and has led to the movement of classes across the assemblies. 因此,升級至 Service Manager 2016 時可能會破壞內部或協力廠商 (非 Microsoft) 所開發的自訂解決方案。Hence, the upgrade to Service Manager 2016 may break the custom solutions made in house or by 3rd party (non-Microsoft). 若要避免此問題,請參閱 SCSM 2016 – Upgrade steps for custom development (SCSM 2016 – 升級自訂解決方案的步驟)。Please refer the steps to upgrade your custom solutions, to avoid getting into this problem.

升級資料倉儲管理伺服器Upgrade the data warehouse management server

請使用下列程序升級資料倉儲管理伺服器。Use the following procedure to upgrade the data warehouse management server.

重要

在繼續操作之前,請確認您已停止資料倉儲作業。Make sure that you have stopped the data warehouse jobs before you continue.

若要升級資料倉儲管理伺服器To upgrade the data warehouse management server

  1. 使用屬於系統管理員群組成員的帳戶,登入即將裝載資料倉儲管理伺服器的電腦。Log on to the computer that will host the data warehouse management server by using an account that is a member of the Administrators group. 此帳戶也必須是本機系統管理員。This account must also be a local administrator.

  2. 在 Service Manager 安裝媒體上,-按兩下 [ Setup.exe ] 以啟動 [Service Manager 安裝程式]。On the Service Manager installation media, double-click the Setup.exe to start the Service Manager Setup Wizard.

  3. 在 [ Microsoft System Center 2016 ] 頁面上,按一下 [升級 Service Manager 資料倉儲管理伺服器]。On the Microsoft System Center 2016 page, click Upgrade Service Manager data warehouse management server.

  4. 在 [準備升級] 頁面上,選取兩個代表您已閱讀《 System Center 2016-Service Manager 升級指南》中適當章節的專案,然後按 [下一步]On the Prepare for upgrade page, select the two items indicating that you have read the appropriate sections in the System Center 2016 - Service Manager Upgrade Guide, and then click Next.

  5. 在 [產品註冊] 頁面的方塊中輸入適當資訊。On the Product registration page, type the appropriate information in the boxes. 閱讀 Microsoft 軟體授權條款,並且如果適用的話,按一下 [我已經閱讀、瞭解並同意授權合約的條款],然後按 [下一步]。Read the Microsoft Software License Terms; if applicable, click I have read, understood, and agree with the terms of the license agreement; and then click Next.

  6. 在 [ 系統檢查結果 ] 頁面上,確定已經通過必要條件檢查 (至少必須是已通過檢查但有警告),然後按 [ 下一步]。On the System check results page, ensure that the prerequisite check passed or at least passed with warnings, and then click Next.

  7. 在 [針對 OLAP Cube 設定 Analysis services ] 頁面的 [資料庫伺服器] 方塊中,輸入將裝載 SQL server Analysis Services (SSAS) 資料庫的伺服器的電腦名稱稱,然後按下 tab 鍵。On the Configure Analysis Service for OLAP cubes page, in the Database server box, type the computer name of the server that will host the SQL Server Analysis Services (SSAS) database, and then press the Tab key. 當 [ SQL Server 執行個體 ] 方塊中出現 [ 預設值 ] 時,按 [ 下一步]。When Default appears in the SQL Server instance box, click Next.

    重要

    如果您要將 SSAS 安裝在非裝載資料倉儲管理伺服器的電腦上,且環境中有裝設防火牆,必須確認適當的防火牆連接埠已開啟。If you are installing SSAS on a computer other than the computer that hosts the data warehouse management server and there is a firewall in your environment, you must make sure that the proper firewall ports are opened. 如需詳細資訊,請參閱System center 2016-Service Manager 規劃指南中的For more information, see "Port Assignments for System Center 2016 - Service Manager" in the Planning Guide for System Center 2016 - Service Manager.

  8. 在 [ 設定 Analysis Services 認證 ] 頁面上,指定帳戶的使用者名稱、密碼和網域,然後按一下 [ 測試認證]。On the Configure Analysis Services credential page, specify the user name, password, and domain for the account, and then click Test Credentials. 當您收到訊息指出「已接受認證」之後,請按 [下一步]。After you receive a message saying "The credentials were accepted," click Next.

  9. 在 [診斷與使用方式資料] 頁面上,表示您是否有意願與 Microsoft 共用 Service Manager 診斷與使用方式資料。On the Diagnostic and usage data page, indicate your preference for sharing your Service Manager diagnostic and usage data with Microsoft. 您可以選擇按一下 [System Center Service Manager 隱私權聲明],然後按一下 [下一步]。As an option, click Privacy statement for System Center Service Manager, and then click Next.

  10. 在 [使用 Microsoft Update 協助您的電腦保持在安全和最新狀態] 頁面上,表示您是否有意願使用 Microsoft Update 檢查 Service Manager 更新,然後按一下 [下一步]。On the Use Microsoft Update to help keep your computer secure and up-to-date page, indicate your preference for using Microsoft Update to check for Service Manager updates, and then click Next.

  11. 閱讀 設定摘要 頁面提供的資訊,如果正確無誤,請按一下 安裝On the Configuration Summary page, read the information that is provided, and, if it is accurate, click Install.

  12. 在 [ 升級已成功完成 ] 頁面上,如果您已備份加密金鑰,請清除 [ 開啟加密備份或還原精靈 ] 核取方塊,然後按一下 [ 關閉]。On The upgrade was completed successfully page, if you have already backed up the encryption key, clear the Open the Encryption Backup or Restore Wizard check box, and then click Close.

升級 Service Manager 管理伺服器Upgrade the Service Manager management server

請使用下列程式來升級 Service Manager 管理伺服器。Use the following procedure to upgrade the Service Manager management server.

若要升級 Service Manager 管理伺服器To upgrade the Service Manager management server

  1. 使用屬於系統管理員群組成員的帳戶,登入將裝載 Service Manager 管理伺服器的電腦。Log on to the computer that will host the Service Manager management server by using an account that is a member of the Administrators group.

  2. 在 Service Manager 安裝媒體上,-按兩下 [ Setup.exe ] 以啟動 [Service Manager 安裝程式]。On the Service Manager installation media, double-click the Setup.exe to start the Service Manager Setup Wizard.

  3. 在 [ Microsoft System Center 2016 ] 頁面上,按一下 [升級 Service Manager 管理伺服器]。On the Microsoft System Center 2016 page, click Upgrade Service Manager management server.

  4. 在 [準備升級] 頁面上,選取兩個代表您已閱讀《 System Center 2016-Service Manager 升級指南》中相關章節的專案,然後按 [下一步]On the Prepare for upgrade page, select the two items indicating that you have read the appropriate sections in the Upgrade Guide for System Center 2016 - Service Manager, and then click Next.

  5. 在 [產品註冊] 頁面的方塊中輸入適當資訊。On the Product registration page, type the appropriate information in the boxes. 閱讀 Microsoft 軟體授權條款,並且如果適用的話,按一下 [ 我已經閱讀、瞭解並同意授權合約的條款],然後按一下 [ 下一步]。Read the Microsoft Software License Terms, and, if applicable, click I have read, understood, and agree with the terms of the license agreement, and then click Next.

  6. 在 [ 系統檢查結果 ] 頁面上,確定已經通過必要條件檢查 (至少必須是已通過檢查但有警告),然後按 [ 下一步]。On the System check results page, ensure that the prerequisite check passed or at least passed with warnings, and then click Next.

  7. 閱讀 設定摘要 頁面提供的資訊,如果正確無誤,請按一下 安裝On the Configuration Summary page, read the information that is provided, and, if it is accurate, click Install.

  8. 在 [ 升級已成功完成 ] 頁面上,如果您已備份加密金鑰,請清除 [ 開啟加密備份或還原精靈 ] 核取方塊,然後按一下 [ 關閉]。On the The upgrade was completed successfully page, if you have already backed up the encryption key, clear the Open the Encryption Backup or Restore Wizard check box, and then click Close.

升級 Service Manager 主控台Upgrade the Service Manager console

請使用下列程式來升級 Service Manager 主控台。Use the following procedure to upgrade the Service Manager console.

升級 Service Manager 主控台To upgrade the Service Manager console

  1. 使用屬於系統管理員群組成員的帳戶,登入將裝載 Service Manager 主控台的電腦。Log on to the computer that will host the Service Manager console by using an account that is a member of the Administrators group.

  2. 在 Service Manager 安裝媒體上,-按兩下 [ Setup.exe ] 以啟動 [Service Manager 安裝程式]。On the Service Manager installation media, double-click the Setup.exe to start the Service Manager Setup Wizard.

  3. 在 [ Microsoft System Center 2016 ] 頁面上,按一下 [升級 Service Manager 主控台]。On the Microsoft System Center 2016 page, click Upgrade Service Manager console.

  4. 在 [準備升級] 頁面上,選取兩個代表您已閱讀《 System Center 2016-Service Manager 升級指南》中相關章節的專案,然後按 [下一步]On the Prepare for upgrade page, select the two items indicating that you have read the appropriate sections in the Upgrade Guide for System Center 2016 - Service Manager, and then click Next.

  5. 閱讀 [ 產品註冊 ] 頁面上的 Microsoft 軟體授權條款,如果適用的話,按一下 [ 我已經閱讀、瞭解並同意授權合約的條款],然後按 [ 下一步]。On the Product registration page, read the Microsoft Software License Terms, and, if applicable, click I have read, understood, and agree with the terms of the license agreement, and then click Next.

  6. 在 [ 系統檢查結果 ] 頁面上,確定已經通過必要條件檢查 (至少必須是已通過檢查但有警告),然後按 [ 下一步]。On the System check results page, ensure that the prerequisite check passed or at least passed with warnings, and then click Next.

  7. 閱讀 設定摘要 頁面提供的資訊,如果正確無誤,請按一下 安裝On the Configuration Summary page, read the information that is provided, and, if it is accurate, click Install.

  8. 按一下 [ 升級已成功完成 ] 頁面上的 [ 關閉]。On The upgrade was completed successfully page, click Close.

後續步驟Next steps