造成該原因是因為修改了本地計算的IP位址,特别是在有網絡的情況下安裝之後再切換成固定IP的情況,解決步驟如下:
1、開始-》運作cmd
2、執行 emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
提示:環境變量 ORACLE_SID 未定義,請定義; 提示資訊:Environment variable ORACLE_SID not defined. Please define it.
3、設定 ORACLE_SID =ORCL (orcl是我的執行個體名,也是服務名)
C:\Documents and Settings\xcl>set oracle_sid=orcl
4、再次執行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
提示:無法找到“E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_china-d9e3f7d07_orcl “ 提示資訊:OC4J Configuration issue. E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_china-d9e3f7d07_orcl not found.
注:china-d9e3f7d07 是我的計算機名
複制該目錄下的“OC4J_DBConsole_localhost_orcl”檔案夾放在同一目錄下,且把名稱改成“OC4J_DBConsole_china-d9e3f7d07_orcl”。
5、再次執行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
提示:無法找到 “E:\oracle\product\10.2.0\db_1/china-d9e3f7d07_orcl ” 提示資訊:EM Configuration issue. E:\oracle\product\10.2.0\db_1/china-d9e3f7d07_orcl not found.
複制該目錄下的“localhost_orcl”檔案夾放在同一目錄下,且把名稱改成“china-d9e3f7d07_orcl”。
6、再次執行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://localhost:1158/em/
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl
服務正在啟動
..............................
OracleDBConsoleorcl 服務已經啟動成功
如果啟動不成功輸入: emca -config dbcontrol db指令重新設定oracle資訊