記解決OEM起不來提示C4J_DBConsole_xxxx(hostname)_xxxx(sid) not found

qqmengxue發表於2011-05-13

環境:

ORACLE10G 64BIT

REDHAT5.4 64BIT

OBJECT:

[oracle@localhost ~]$ emctl start dbconsole
TZ set to PRC
OC4J Configuration issue. /u01/app/10.2.1/db_1/oc4j/j2ee/OC4J_DBConsole_qqdb_qqdb not found.

[@more@]

今天在啟動OEM時提示:

[oracle@localhost ~]$ emctl start dbconsole
TZ set to PRC
OC4J Configuration issue. /u01/app/10.2.1/db_1/oc4j/j2ee/OC4J_DBConsole_qqdb_qqdb not found.

以上報錯中:OC4J_DBConsole_qqdb_qqdb 其組成部分分別是:OC4J_DBConsole_{hostname}_{oracle_sid}知道了這個我們就應該都明白問題怎麼解決了,首先檢查sid是否對,然後檢視hosts檔案內是否包含錯誤提示裡的hostname,如果沒有加入則可。

解決:

[root@localhost ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 qqdb localhost
127.0.0.1 localhost.localdomain localhost

[oracle@localhost ~]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

Starting Oracle Enterprise Manager 10g Database Control ........ started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/10.2.1/db_1/localhost.localdomain_qqdb/sysman/log

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

相關文章