如果您需要解除安裝再重新安裝 Service Registry,請在重新安裝之前執行以下作業:
如果 Registry 資料庫中含有您要保留的資料,請依照管理 Java DB 資料庫中的說明備份資料庫。
停止 Registry 的 Application Server 網域,然後刪除該網域。如果不刪除網域,則重新安裝之 Registry 的安裝後配置將會失敗。
如果您需要重新安裝 Service Registry 資料庫 (例如,如果資料庫已毀壞),請按照重新安裝 Service Registry 資料庫中的指示進行操作。在重新安裝資料庫之前,您不需要解除安裝資料庫。
變更至 ServiceRegistry-base/install 目錄。
執行以下指令 (全部位於同一行):
Ant-base/ant -f build-install.xml Dinstall.properties= props-file appserver.domain.delete
其中 props-file 是您在在 [以後配置] 方式安裝之後以 Root 身份使用自訂特性配置 Service Registry或在 [以後配置] 方式安裝之後以非 Root 使用者身份使用自訂特性配置 Service Registry中所編輯 install.properties 檔案副本的路徑名稱。
此目標會停止網域,然後再將其刪除。
此作業會刪除現有的資料庫內容、納入已註冊的使用者,並且重新建立預設的資料庫。
變更至 ServiceRegistry-base/install 目錄。
執行以下指令 (全部位於同一行):
Ant-base/ant -f build-install.xml Dinstall.properties= props-file install.db
執行以下指令 (全部位於同一行):
Ant-base/ant -f build-install.xml Dinstall.properties= props-file appserver.domain.stop export.registryOperatorCert install.cacerts appserver.domain.start