依預設,不需要資料庫認證。當資料庫在內嵌式模式中執行時,可能會要求認證,而當資料庫在網路伺服器模式中執行時,則必須要求認證。
變更為 Service Registry 安裝目錄︰
cd ServiceRegistry-base/install
在文字編輯器中,開啟 install.properties 檔案副本。
將 registry.install.RequireDatabaseAuthentication 特性的設定從 false 變更為 true。
編輯 registry.install.DatabaseUserID 特性的設定。
對於內嵌式模式,此值可以是 APP 或空白:
registry.install.DatabaseUserID=APP
registry.install.DatabaseUserID=
對於網路伺服器模式,此值必須是 APP。
編輯 registry.install.DatabasePassword 特性的設定。
密碼必須至少包含 6 個字元。預設值為 app123。
儲存並關閉檔案。
停止並重新啟動 Registry 的 Application Server 網域。若要這麼做,請執行以下指令 (全部位於同一行):
Ant-base/ant -f build-install.xml Dinstall.properties= props-file appserver.domain.bounce
其中 props-file 是您在在 [以後配置] 方式安裝之後以 Root 身份使用自訂特性配置 Service Registry或在 [以後配置] 方式安裝之後以非 Root 使用者身份使用自訂特性配置 Service Registry中所編輯 install.properties 檔案副本的路徑名稱。