<a href="http://vongates.itpub.net/post/2553/271778">http://vongates.itpub.net/post/2553/271778</a>
在10g 中,我們可能會經常遇到OEM不能正常使用的問題,但導緻問題的原因不盡相同,最後絕大多數問題可以通過emca 這個指令來解決,詳細的說明可以檢視連機幫助,下面給出一些常用的指令,及執行個體步驟.
建立一個EM資料庫
emca -repos create
重建一個EM資料庫
emca -repos recreate
删除一個EM資料庫
emca -repos drop
配置資料庫的 Database Control
emca -config dbcontrol db
删除資料庫的 Database Control配置
emca -deconfig dbcontrol db
重新配置db control的端口,預設端口在1158
emca -reconfig ports
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940
先設定ORACLE_SID環境變量後,啟動EM console服務
emctl start dbconsole
先設定ORACLE_SID環境變量後,停止EM console服務
emctl stop dbconsole
先設定ORACLE_SID環境變量後,檢視EM console服務的狀态
emctl status dbconsole
配置dbconsole的步驟
重新配置dbconsole的步驟