Oracle Enterprise Manager (EM) 開啟時出現 503 Service Unavailable….The Em Key is not configured properly 的錯誤
如果安裝設定完 Oracle Enterprise Manager (EM) 後,
開啟http://localhost:5500/em/時出現以下錯誤:
1 |
503 Service Unavailable. Service is not initialized correctly. The Em Key is not configured properly. Run "emctl status emkey" for more details. |
此時最有可能是因為 Oracle Enterprise Manager (EM) 找不到Key或者Key損毀了。
* 如果有備份emkey.ora,先將emkey.ora複製到$ORACLE_HOME/sysman/config/
再執行下列指令進行修復。
1 |
emctl config emkey -emkeyfile $ORACLE_HOME/sysman/config/emkey.ora -force oracle |
* 如果沒備份,只能先完全刪除EM並清除REPO,然後重建之。
1 2 |
emca -deconfig dbcontrol db -repos drop emca -config dbcontrol db -repos create |
最後再重新連結 https://localhost:5500/em 進行測試即可。