由于安裝oracle的時候沒有設置oracle_hostname,oracle oem在%oracle_home%下面產(chǎn)生了兩個包含我當時的ip address的目錄,192.168.1.112_epcit和oc4j\j2ee\OC4J_DBConsole_192.168.1.112_epcit 這樣一旦我的ip address改變了,運行emctl start dbcontrol會報錯:
?
C:\>emctl status dbconsole
OC4J Configuration issue. %oracle_home%/oc4j/j2ee/OC4J_DBConsole_%ip%_%sid% not found.
?
只好重新配置database control了。
?
1。數(shù)據(jù)庫和listener都必須已經(jīng)啟動并正常工作。
2。設置系統(tǒng)環(huán)境變量oracle_hostname (如果你還沒有設置的話)
2。emctl stop dbconsole (如果你的db control還在運行的話)
3。sc delete OracleDBConsoleepcit (刪除windows service,不刪除好像最后會報錯)
4。emca -config dbcontrol db -repos recreate
?
C:\>emca -config dbcontrol db -repos recreate
STARTED EMCA at Feb 6, 2009 2:50:26 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.? All rights reserved.
Enter the following information:
Database SID: epcit
Listener port number: 1521
Password for SYS user: change_on_install
Password for DBSNMP user: change_on_install
Password for SYSMAN user: change_on_install
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ D:\oracle\product
Database hostname ................ BLC05
Listener port number ................ 1521
Database SID ................ epcit
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]:y
?
...............
?
確認一切ok,沒有出現(xiàn)failed字樣。如果有錯的話,可以查看%oracle_home%\cfgtoollogs\emca\下面的log文件。
登陸 http://blc05:5500/em ?終于又看到了熟悉的頁面。
已有 0 人發(fā)表留言,猛擊->>這里<<-參與討論
JavaEye推薦