水煮oracle24---- oracle em 啟動報錯 相關問題解決

1向2飛發表於2013-08-23
一、em 常用命令

emca -repos create    建立一個EM資料庫

emca -repos recreate 重建一個EM資料庫

emca -repos drop       刪除一個EM資料庫

emca -config dbcontrol db   配置資料庫的Database Control

emca -deconfig dbcontrol db  刪除資料庫的Database Control配置

emctl start dbconsole      啟動EM console服務

emctl stop dbconsole       停止EM console服務

emca -reconfig ports命令重新配置db controlagent的埠。

通過檢視$ORACLE_HOME/install/portlist.ini檔案可以知道當前dbcontrol正在使用的埠,預設dbcontrol http1158agent3938

如果要重新配置埠,可以使用如下命令:

emca -reconfig ports -dbcontrol_http_port 1159

emca -reconfig ports -agent_port 3939

 

除錯過程中出現的問題

(1)由於安裝資料庫是設定的shared_pool_size太小,導致emca -config dbcontrol db時出錯。後重新設定shared_pool_size=80M後解決問題。

(2)安裝完成後連線到oem速度很慢,經常報ORA-12518錯誤,已開啟listner日誌,目前尚未解決。

 

除錯過程記錄

$emctl status dbconsole

OC4J Configuration issue. ora10g/oc4j/j2ee/OC4J_DBConsole_hy.myoa.com_ora

10g not found.

 

建立資料庫

$emca -repos recreate

資料庫SID: ora10g

監聽程式埠號: 1521

SYS使用者的口令:

SYSMAN使用者的口令:

是否繼續? [yes(Y)/no(N)]: yes

 

配置資料庫控制

$emca -config dbcontrol db

資料庫SID: ora10g

監聽程式埠號: 1521

SYS使用者的口令:

DBSNMP使用者的口令:

SYSMAN使用者的口令:

以下按回車

是否繼續? [yes(Y)/no(N)]: yes

 

成功後呼叫第一條命令,對於SYS SYSMAN等系統使用者密碼請參見

http://blog.chinaunix.net/u3/97653/showart.php?id=2261980對應的預設密碼

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23890223/viewspace-769103/,如需轉載,請註明出處,否則將追究法律責任。

相關文章