Service Registry 3.1 管理指南

Procedure從內嵌式模式切換至網路伺服器模式

若要從內嵌式模式 (預設) 切換至網路伺服器模式,請將 registry.install.clientDatabase 特性的設定從 false 變更為 true,並且要求資料庫認證。

在編輯特性之後,重新建立資料庫資源,然後停止再重新啟動 Application Server。

  1. 變更為 Service Registry 安裝目錄︰

    cd ServiceRegistry-base/install

  2. 在文字編輯器中,開啟 install.properties 檔案副本。

  3. registry.install.clientDatabase 特性的設定從 false 變更為 true

  4. registry.install.RequireDatabaseAuthentication 特性的設定從 false 變更為 true

  5. 必要時,請編輯 registry.install.DatabaseUserID 特性的設定。

    對於網路伺服器模式,此值必須是 APP

  6. 編輯 registry.install.DatabasePassword 特性的設定。

    任何長度都有效。預設值為 app123

  7. 儲存並關閉檔案。

  8. 重新建立資料庫連線池和相關資源。若要這麼做,請執行以下指令 (全部位於同一行):

    Ant-base/ant -f build-install.xml Dinstall.properties= props-file appserver.jdbcResource.update

    其中 props-file 是您在在 [以後配置] 方式安裝之後以 Root 身份使用自訂特性配置 Service Registry在 [以後配置] 方式安裝之後以非 Root 使用者身份使用自訂特性配置 Service Registry中所編輯 install.properties 檔案副本的路徑名稱。

  9. 停止並重新啟動 Registry 的 Application Server 網域。若要這麼做,請執行以下指令 (全部位於同一行):

    Ant-base/ant -f build-install.xml Dinstall.properties= props-file appserver.domain.bounce

  10. 啟動 Java DB 資料庫。若要這麼做,請執行以下指令:

    asadmin start-database --dbhome database-directory

    依預設,此指令會將資料庫及其記錄檔放在目前的目錄中。使用 --dbhome 選項指定資料庫的位置 (通常是在 RegistryDomain-base /3.0/data/registry/soar)。

接下來的步驟

如果資料庫在網路伺服器模式中執行,您可以執行資料庫的線上備份。

稍後,如果您需要返回內嵌式模式,請按照相同步驟進行,但有以下例外狀況: