太懒
分类: Oracle
2013-06-06 14:31:56
emctl 错误一例: OC4J Configuration issue
新装的系统经常会碰到这个问题,建完库以后想看看EM是不是正常启动
[oracle@node2 dbs]$ emctl status dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.2.3/db_1/oc4j/j2ee/OC4J_DBConsole_node2_MOMORAC not found.
[oracle@node2 dbs]$ ll /u01/app/oracle/product/11.2.3/db_1/oc4j/j2ee/OC4J_DBConsole_node2_MOMORAC
ls: cannot access /u01/app/oracle/product/11.2.3/db_1/oc4j/j2ee/OC4J_DBConsole_node2_MOMORAC: No such file or directory
[oracle@node2 dbs]$
[oracle@node2 dbs]$ cd /u01/app/oracle/product/11.2.3/db_1/oc4j/j2ee/
[oracle@node2 j2ee]$ ll |grep OC4J_DBConsole_node2_
drwxr-xr-x 10 oracle oinstall 4096 Jun 4 18:21 OC4J_DBConsole_node2_momorac/
[oracle@node2 j2ee]$
很简单,是因为DB_UNIQUE_NAME 大小写导致的,或者建库的时候,最好各种name都用大写,省的麻烦
简单处理,创建个链接
[oracle@node2 j2ee]$ ln -s OC4J_DBConsole_node2_momorac OC4J_DBConsole_node2_MOMORAC
[oracle@node2 j2ee]$
再次查看
[oracle@node2 j2ee]$ emctl status dbconsole
EM Configuration issue. /u01/app/oracle/product/11.2.3/db_1/node2_MOMORAC not found.
[oracle@node2 j2ee]$
还是大小写,再去建个链接
[oracle@node2 j2ee]$ cd /u01/app/oracle/product/11.2.3/db_1/
[oracle@node2 db_1]$ ll|grep node2_
drwxr-xr-x 3 oracle oinstall 4096 Jun 4 18:31 node2_momorac/
[oracle@node2 db_1]$ ln -s node2_momorac node2_MOMORAC
[oracle@node2 db_1]$ ll|grep node2_
drwxr-xr-x 3 oracle oinstall 4096 Jun 4 18:31 node2_momorac/
lrwxrwxrwx 1 oracle oinstall 13 Jun 6 14:29 node2_MOMORAC -> node2_momorac/
[oracle@node2 db_1]$
然后再次检查
[oracle@node2 db_1]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
EM Daemon is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.3/db_1/node2_MOMORAC/sysman/log
[oracle@node2 db_1]$
搞定
#END