IBM Installation Manager 不會辨識與全文搜尋特性相關聯的 WebSphere Application Server 設定檔。
因此,如果您打算升級或重新安裝 IBM Rational ClearQuest,請使用 cqtsadmin.pl 指令來備份及刪除這些設定檔。升級或重新安裝 ClearQuest 之後,請再次使用 cqtsadmin.pl 指令來還原設定檔。
開始之前
本實務範例包括在升級或重新安裝 ClearQuest 前後要執行的步驟。
本實務範例假設您是使用 SAMPL 資料庫。在正式作業環境
中,前置升級或前置安裝步驟以及後置升級或後置重新安裝步驟,可能會花費數分鐘到數小時的時間來完成
,視部署中的全文搜尋 WebSphere Application Server 設定檔數目而定。針對每一個設定檔,這些步驟應該花費數分鐘的時間來完成。
請注意,您可以對伺服器上的任何全文搜尋實例執行 cqtsadmin.pl 指令,因為該指令對伺服器上的所有全文搜尋部署會全面生效。對一個全文搜尋部署完成 cqtsadmin.pl 指令之後,伺服器上的其他部署也會升級。
程序
- 執行下列前置升級或前置安裝作業。
- 編輯 cqtsadmin-TextSearch-SAMPL.xml 配置檔。將 <deleteFtsWASProfiles> 標籤的值從:
<newValue required="no"><newValue>
變更為:
<newValue required="no">true<newValue>
- 在命令提示字元視窗中,以 prep_upgd_was_profiles 選項執行 cqtsadmin.pl 指令。這個指令行選項會建立伺服器上所有全文搜尋 WebSphere Application Server 設定檔資料的備份,然後刪除這些設定檔。備份資料會儲存至 FTSBackupWASProfiles 目錄。
- 再次編輯 cqtsadmin-TextSearch-SAMPL.xml 檔。將 <deleteFtsWASProfiles> 標籤的值從:
<newValue required="no">true<newValue>
變更為:
<newValue required="no"><newValue>
這項編輯可避免您不小心重新執行這個破壞性的指令行選項。
- 升級或重新安裝 ClearQuest。
- 再次執行 cqtsadmin.pl 指令來還原所有先前已部署且已備份的全文搜尋 WebSphere
Application Server 設定檔。有兩個使用案例實務範例:
- 實務範例 A:使用 restore_was_profiles 指令行選項,將所有
先前已部署且已備份的全文搜尋 WebSphere Application Server 設定檔還原到其原始位置:
cqperl cqtsadmin.pl --username admin --password
secret --dbset TextSearch --userdb SAMPL --ftshome D:\CQ.Search --restore_was_profiles
D:\FTSBackupWASProfiles
- 實務範例 B:分別使用 restore_was_profiles 和 fts_was_profile_home 指令行選項,還原所有先前已部署且已備份的全文搜尋 WebSphere Application Server 設定檔,並將這些設定檔合併在一個目錄中:
cqperl cqtsadmin.pl --username
admin --password secret --dbset TextSearch --userdb SAMPL --ftshome
D:\CQ.Search --restore_was_profiles D:\FTSBackupWASProfiles --fts_was_profile_home
D:\FTS.wasprofiles