使用 codepageutil 公用程式來評估現有的資料庫集並轉換任何不受支援的字元之後,您可以利用 installutil 公用程式來設定 Rational® ClearQuest® 資料字碼頁值。
開始之前
設定資料字碼頁值之前,必須先執行下列步驟:
- 切斷綱目儲存庫和使用者資料庫的所有 Rational ClearQuest Client 連線。如果不切斷連線,在您設定 Rational ClearQuest 資料字碼頁值之後,已連接的用戶端仍然會輸入新字碼頁之外的資料。
- 備份綱目儲存庫及所有使用者資料庫。
關於這項作業
從 ClearQuest 7.0 版開始,為新的綱目儲存庫或連線設定
Rational ClearQuest 資料字碼頁的標準方法是使用 Maintenance Tool。然而,您也可以使用
installutil 公用程式來設定資料字碼頁值。
在這個範例中,指令使用 MyDBset 作為資料庫集的名稱。
程序
- 在 Windows 系統,執行 installutil lscodepage 指令來判斷作業系統的區域字集及綱目儲存庫的資料字碼頁。
installutil lscodepage -dbset MyDBset admin_user admin_password
Code page of MyDBset: 932 (Japanese (Shift-JIS))
Code page of client: 1252 (MS Windows Latin 1)
在這個範例中,區域字集是
1252(MS Windows 拉丁文 1。MyDBset 綱目儲存庫的 Rational ClearQuest 資料字碼頁值目前設為 932 (日文
(Shift-JIS))。
- 接著,執行 installutil setdbcodepage 次指令將 Rational ClearQuest 資料字碼頁設為偏好的值。 如需 Rational ClearQuest 支援的字碼頁清單,請參閱支援的資料字碼頁
installutil
setdbcodepage -dbset MyDBset 1252 admin_user admin_password
結果
綱目儲存庫的資料字碼頁現在已設定,您所建立的任何使用者資料庫都會繼承這個資料字碼頁設定。