Windchill 基礎原理 > PDM Essentials 與 Global Product Development Package 1 > Windchill PDM Essentials > 繼續進展:進行中的 Windchill 管理 > 系統管理任務 > 更新、升級與上移 > 升級至 Windchill PDM Essentials 的新發行版本 > 從 Windchill PDM Essentials 10.2 升級
  
從 Windchill PDM Essentials 10.2 升級
在升級之前,請務必根據 Windchill PDM Essentials 先決條件設定目標系統。如需詳細資訊,請參閱先決條件
* 
在升級流程期間,「來源系統」一詞是指 Windchill PDM Essentials 的現有安裝,「目標系統」一詞是指您要安裝並升級至的 Windchill PDM Essentials 的新安裝。
您可以使用下列兩種方法之一完成 Windchill PDM Essentials 升級流程:
來源與目標系統位於相同主機上時升級 (就地升級) - 當來源與目標系統位於相同的實體或虛擬機器上時,會使用此升級方法。如果您未作為升級的一部份變更硬體,此方法很有用。在升級生產伺服器本身之前,請務必先在複製的生產伺服器上執行測試升級。
來源與目標系統位於不同主機機器上時升級 - 如果您要升級至新硬體,此升級方法是最佳作法,它可讓您先測試升級目標系統後,再開放到實際生產。您可利用此方法在升級過程中順便升級至 SQL Server 2014 (隨附於 Windchill PDM Essentials 11.1),或者選擇繼續使用 SQL Server 2012:
來源與目標系統位於不同主機機器上時升級 - 升級至 SQL Server 2014
來源與目標系統位於不同主機機器上時升級 - 保持在 SQL Server 2012 上
來源與目標系統位於相同主機上時升級 (就地升級)
當來源與目標系統位於相同的實體或虛擬機器上時,會使用此升級方法。如果您未作為升級的一部份變更硬體,此方法很有用。在升級生產伺服器本身之前,請務必先在複製的生產伺服器上執行測試升級。
1. 在執行測試或生產升級之前,關閉 Windchill 伺服器並備份資料庫 (Windchill Directory Server) 與檔案儲存庫。
2. 從下列 URL 針對來源系統發行版本層級下載並安裝最新 WinDU 與 WinRU 修正檔:http://www.ptc.com/support/windu.htmWindchill Diagnostic Utility (WinDU) 可偵測會導致升級失敗或資料損毀的損毀或問題。Windchill Repair Utility (WinRU) 是用來修復 WinDU 所報告之各種資料完整性問題的工具。您可以按一下 Windchill Diagnostic Utility 的連結並下載最新文件集來尋找 Windchill Diagnostic Utility 的文件集。
3. 在來源系統上,請確保 Windchill 伺服器、Apache 伺服器與 LDAP 處於執行中狀態,然後從 Windchill shell 中執行 WinDU.bat 指令集來啟動 WinDU。
4. 在來源系統執行強制升級的 Windchill Diagnostic Utility (WinDU) 任務,並解決任何報告的問題。略過 ESI Schema Detector 任務。如需詳細資訊,請參閱 WinDU 與 WinRU 指南,可從下列 URL 找到:http://www.ptc.com/support/windu.htm
為了協助在 Upgrade Manager 中輸入正確的資訊,在來源系統上執行升級前 Windchill Diagnostic Utility (WinDU) 任務 Upgrade Property Viewer。此 WinDU 任務聚合有關來源系統的資訊並將其新增至 <Windchill>/Upgrade/ 目錄的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案。
Windchill Repair Utility (WinRU) 任務可用於修復問題。請聯絡 PTC 技術支援來協助解決問題。PTC eSupport 入口網站提供資源與工具來支援 Windchill 實行:https://www.ptc.com/appserver/cs/portal/
5. 關閉 Apache 與 Windchill 伺服器。
6. 同時備份來源資料庫並匯出 LDAP:
* 
在執行此步驟之前,您必須先關閉 Windchill
如需有關匯出與備份 SQL Server 資料庫的詳細資訊,請參閱備份 SQL Server 來源資料庫
使用如下圖所示的 LDAP 匯出設定:
如需詳細資訊,請參閱 Exporting Target LDAP Structure from Windchill Directory Server
7. 針對您要升級至的 Windchill PDM Essentials 目標發行版本,啟動「Windchill 安裝助理」
「Windchill 安裝助理」可偵測 Windchill PDM Essentials 的現有安裝,並在「選項」頁上自動選取「安裝選項」下的「升級安裝」
指定所有必要資訊並完成 Windchill PDM Essentials 目標發行版本的「Windchill 安裝助理」。您不必執行「Windchill 安裝助理」,因為會從來源資料庫移轉組態資訊。如需詳細資訊,請參閱安裝與組態
8. 已升級的 SQL Server 資料庫實例必須配置為使用 '包含資料庫驗證'。在 SQL Server 資料庫實例上執行下列陳述式:
use master
GO
sp_configure 'contained database authentication', 1;
GO
RECONFIGURE
GO
9. 將來源系統的 LDAP 資料匯入目標系統 Windchill Directory Server。在 <Windchill>\WindchillDS 執行安裝之後,會在目標系統安裝並執行 Windchill Directory Server。使用如下圖所示的 LDAP 匯入設定:
如需詳細資訊,請參閱 Importing Source LDAP Using the Command Line
10. 啟動目標系統 Windchill Apache。
11. 執行下列步驟,以使用由 Upgrade Property Viewer WinDU 任務輸出的檔案:
a. 在目標系統的下列位置建立 GatherUpgradeProperties 資料夾:<Windchill>/Upgrade/UpgradePhases
b. autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案從來源系統複製到目標系統的下列位置:<Windchill>/Upgrade/UpgradePhases/GatherUpgradeProperties/
c. 將目標位置中的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案重新命名為 upgradeUser.properties
如需 Windchill Diagnostic Utility 的詳細資訊,請參閱此
12. Windchill shell 執行 UpgradeManager.bat,啟動 Upgrade Manager。
13. 根據說明中心升級一節中的步驟執行 Upgrade Manager。
14. 針對使用 SQL Server 資料庫的系統,在升級之後,必須將已升級的資料庫配置為使用包含的資料庫驗證。在目標系統上執行下列指令集:<WT_HOME>\db\SqlServer\Convert_ToContainedDB.bat
Windchill 支援 SQL Server 包含的資料庫和包含的資料庫驗證。包含的資料庫可以驗證使用者,不需要使用者在資料庫引擎層級登入。但是,相較於 SQL Server 登入,資料庫層級驗證有一些限制。只有資料庫已認證的使用者才能存取和修改資料庫包含的物件,但是無法執行資料庫頂層任務,例如備份、還原、修改及收縮。資料庫頂層任務必須由資料庫實例管理員 (亦即 sa) 執行。如需有關 SQL Server 包含的資料庫與包含的資料庫驗證伺服器組態選項的詳細資訊,請參閱下列 URL 的 Microsoft 線上文件集:
包含的資料庫
包含的資料庫驗證伺服器組態選項
15. 驗證目標系統後,使用 ServiceTool 公用程式來為 Apache、Windchill Directory ServerWindchill 重新建立 Windows 服務:
a. 停止 Apache、Windchill Directory ServerWindchill 伺服器。
b. 在 Windows 指令提示中,導覽至下列位置,其中 <Installation>Windchill PDM Essentials 安裝程式資料夾:<Installation>\Scripts
c. 執行下列指令,其中 <Windchill> 是新目標 Windchill PDM Essentials 安裝的位置:ServiceTool <Windchill>\Windchill
來源與目標系統位於不同的機器上時升級 - 升級為 SQL Server 2014
在不同機器上升級來源與目標系統,涉及到將來源資料庫備份移動到目標系統上的 SQL Server 2014 資料庫。如果您要升級至新硬體,此升級方法為最佳,它可讓您先測試目標系統的升級,然後再將其開放生產。
以下是 Windchill PDM Essentials 升級流程的高階概觀:
1. 在執行測試或生產升級之前,關閉 Windchill 伺服器並備份資料庫 (Windchill Directory Server) 與檔案儲存庫。
2. 從下列 URL 針對來源系統發行版本層級下載並安裝最新 WinDU 與 WinRU 修正檔:http://www.ptc.com/support/windu.htmWindchill Diagnostic Utility (WinDU) 可偵測會導致升級失敗或資料損毀的損毀或問題。Windchill Repair Utility (WinRU) 是用來修復 WinDU 所報告之各種資料完整性問題的工具。您可以按一下 Windchill Diagnostic Utility 的連結並下載最新文件集來尋找 Windchill Diagnostic Utility 的文件集。
3. 在來源系統上,請確保 Windchill 伺服器、Apache 伺服器與 LDAP 處於執行中狀態,然後從 Windchill shell 中執行 WinDU.bat 指令集來啟動 WinDU。
4. 在來源系統執行強制升級的 Windchill Diagnostic Utility (WinDU) 任務,並解決任何報告的問題。略過 ESI Schema Detector 任務。如需詳細資訊,請參閱 WinDU 與 WinRU 指南,可從下列 URL 找到:http://www.ptc.com/support/windu.htm
為了協助在 Upgrade Manager 中輸入正確的資訊,在來源系統上執行升級前 Windchill Diagnostic Utility (WinDU) 任務 Upgrade Property Viewer。此 WinDU 任務聚合有關來源系統的資訊並將其新增至 <Windchill>/Upgrade/ 目錄的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案。
Windchill Repair Utility (WinRU) 任務可用於修復問題。請聯絡 PTC 技術支援來協助解決問題。PTC eSupport 入口網站提供資源與工具來支援 Windchill 實行:https://www.ptc.com/appserver/cs/portal/
5. 關閉 Apache 與 Windchill 伺服器。
6. 同時備份來源資料庫並匯出 LDAP:
* 
在執行此步驟之前,您必須先關閉 Windchill
如需有關匯出與備份 SQL Server 資料庫的詳細資訊,請參閱備份 SQL Server 來源資料庫
使用如下圖所示的 LDAP 匯出設定:
如需詳細資訊,請參閱 Exporting Target LDAP Structure from Windchill Directory Server
7. 在目標系統上安裝 Windchill PDM Essentials 11.1。有關詳細資訊,請參閱安裝與組態。您不必執行「Windchill 安裝助理」,因為會從來源系統移轉組態資訊。
8. 在目標伺服器上,將 SQL Server 2012 來源伺服器資料庫的備份還原為 SQL Server 2014 伺服器,並根據下列程序重新配置使用者登入:還原 SQL Server 資料庫
9. 將來源系統的 LDAP 資料匯入目標系統 Windchill Directory Server。在 <Windchill>\WindchillDS 執行安裝之後,會在目標系統安裝並執行 Windchill Directory Server。使用如下圖所示的 LDAP 匯入設定:
如需詳細資訊,請參閱 Importing Source LDAP Using the Command Line
10. 啟動目標系統 Windchill Apache。
11. 執行下列步驟,以使用由 Upgrade Property Viewer WinDU 任務輸出的檔案:
a. 在目標系統的下列位置建立 GatherUpgradeProperties 資料夾:<Windchill>/Upgrade/UpgradePhases
b. autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案從來源系統複製到目標系統的下列位置:<Windchill>/Upgrade/UpgradePhases/GatherUpgradeProperties/
c. 將目標位置中的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案重新命名為 upgradeUser.properties
如需 Windchill Diagnostic Utility 的詳細資訊,請參閱此
12. shell 中執行 UpgradeManager.batWindchill,在目標系統上啟動 Upgrade Manager。
13. 根據說明中心的升級 一節所載步驟,以目標系統上的還原 SQL Server 2014 實例執行升級。
14. 針對使用 SQL Server 資料庫的系統,在升級之後,必須將已升級的資料庫配置為使用包含的資料庫驗證。在目標系統上執行下列指令集:<WT_HOME>\db\SqlServer\Convert_ToContainedDB.bat
* 
Windchill 支援 SQL Server 包含的資料庫和包含的資料庫驗證。包含的資料庫可以驗證使用者,不需要使用者在資料庫引擎層級登入。但是,相較於 SQL Server 登入,資料庫層級驗證有一些限制。只有資料庫已認證的使用者才能存取和修改資料庫包含的物件,但是無法執行資料庫頂層任務,例如備份、還原、修改及收縮。資料庫頂層任務必須由資料庫實例管理員 (亦即 sa) 執行。如需有關 SQL Server 包含的資料庫與包含的資料庫驗證伺服器組態選項的詳細資訊,請參閱下列 URL 的 Microsoft 線上文件集:
來源與目標系統位於不同的機器上時升級 - 保持在 SQL Server 2012
在來源與目標系統位於不同機器上時升級,您必須具備來源主機、目標主機與第三個主機 (過渡主機)。如果您要升級至新硬體,此升級方法為最佳,它可讓您先測試目標系統的升級,然後再將其開放生產。
以下是 Windchill PDM Essentials 升級流程的高階概觀:
1. 在執行測試或生產升級之前,關閉 Windchill 伺服器並備份資料庫 (Windchill Directory Server) 與檔案儲存庫。
2. 從下列 URL 針對來源系統發行版本層級下載並安裝最新 WinDU 與 WinRU 修正檔:http://www.ptc.com/support/windu.htmWindchill Diagnostic Utility (WinDU) 可偵測會導致升級失敗或資料損毀的損毀或問題。Windchill Repair Utility (WinRU) 是用來修復 WinDU 所報告之各種資料完整性問題的工具。您可以按一下 Windchill Diagnostic Utility 的連結並下載最新文件集來尋找 Windchill Diagnostic Utility 的文件集。
3. 在來源系統上,請確保 Windchill 伺服器、Apache 伺服器與 LDAP 處於執行中狀態,然後從 Windchill shell 中執行 WinDU.bat 指令集來啟動 WinDU。
4. 在來源系統執行強制升級的 Windchill Diagnostic Utility (WinDU) 任務,並解決任何報告的問題。略過 ESI Schema Detector 任務。如需詳細資訊,請參閱 WinDU 與 WinRU 指南,可從下列 URL 找到:http://www.ptc.com/support/windu.htm
為了協助在 Upgrade Manager 中輸入正確的資訊,在來源系統上執行升級前 Windchill Diagnostic Utility (WinDU) 任務 Upgrade Property Viewer。此 WinDU 任務聚合有關來源系統的資訊並將其新增至 <Windchill>/Upgrade/ 目錄的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案。
Windchill Repair Utility (WinRU) 任務可用於修復問題。請聯絡 PTC 技術支援來協助解決問題。PTC eSupport 入口網站提供資源與工具來支援 Windchill 實行:https://www.ptc.com/appserver/cs/portal/
5. 關閉 Apache 與 Windchill 伺服器。
6. 同時備份來源資料庫並匯出 LDAP:
* 
在執行此步驟之前,您必須先關閉 Windchill
如需有關匯出與備份 SQL Server 資料庫的詳細資訊,請參閱備份 SQL Server 來源資料庫
使用如下圖所示的 LDAP 匯出設定:
如需詳細資訊,請參閱 Exporting Target LDAP Structure from Windchill Directory Server
7. 在目標系統上安裝 Windchill PDM Essentials 11.1。如需詳細資訊,請參閱安裝與組態。您不必執行「Windchill 安裝助理」,因為會從來源系統移轉組態資訊。
8. 在過渡伺服器上,還原 SQL Server 2012 來源伺服器資料庫的備份,並根據下列程序重新配置使用者登入:還原 SQL Server 資料庫
9. 過渡的 SQL Server 2012 資料庫實例必須配置為使用 '包含資料庫驗證'。在 SQL Server 資料庫實例上執行下列陳述式:
use master
GO
sp_configure 'contained database authentication', 1;
GO
RECONFIGURE
GO
將來源系統的 LDAP 資料匯入目標系統 Windchill Directory Server。在 <Windchill>\WindchillDS 執行安裝之後,會在目標系統安裝並執行 Windchill Directory Server。使用如下圖所示的 LDAP 匯入設定:
如需詳細資訊,請參閱 Importing Source LDAP Using the Command Line
10. 啟動目標系統 Windchill Apache。
11. 執行下列步驟,以使用由 Upgrade Property Viewer WinDU 任務輸出的檔案:
a. 在目標系統的下列位置建立 GatherUpgradeProperties 資料夾:<Windchill>/Upgrade/UpgradePhases
b. autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案從來源系統複製到目標系統的下列位置:<Windchill>/Upgrade/UpgradePhases/GatherUpgradeProperties/
c. 將目標位置中的 autoUpgrade.propertiesReviewedSourceUpgrade.properties 檔案重新命名為 upgradeUser.properties
如需 Windchill Diagnostic Utility 的詳細資訊,請參閱此
12. Windchill shell 中執行 UpgradeManager.bat,在過渡系統上啟動 Upgrade Manager。
13. 根據說明中心的升級 一節所載步驟,如同「目標」系統般,以過渡系統上的還原 SQL Server 2012 實例執行升級。
14. 針對使用 SQL Server 資料庫的系統,在升級之後,必須將已升級的資料庫配置為使用包含的資料庫驗證。在目標系統上執行下列指令集:<WT_HOME>\db\SqlServer\Convert_ToContainedDB.bat
Windchill 支援 SQL Server 包含的資料庫和包含的資料庫驗證。包含的資料庫可以驗證使用者,不需要使用者在資料庫引擎層級登入。但是,相較於 SQL Server 登入,資料庫層級驗證有一些限制。只有資料庫已認證的使用者才能存取和修改資料庫包含的物件,但是無法執行資料庫頂層任務,例如備份、還原、修改及收縮。資料庫頂層任務必須由資料庫實例管理員 (亦即 sa) 執行。如需有關 SQL Server 包含的資料庫與包含的資料庫驗證伺服器組態選項的詳細資訊,請參閱下列 URL 的 Microsoft 線上文件集:
包含的資料庫
包含的資料庫驗證伺服器組態選項