Skip to content
Home » Oracle » How to Resolve OC4J Configuration issue

How to Resolve OC4J Configuration issue

An error occurred when I tried to start up dbconsole of Oracle database 11g.

oracle@solaris11vm:~$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_localhost_ORCL not found.

Looked into the filename format:


It seemed that the server name was resolved as localhost, not the hostname (i.e. solaris11vm in this case). We should check the existence of the specified file.

oracle@solaris11vm:~$ cd $ORACLE_HOME/oc4j/j2ee/
oracle@solaris11vm:/u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee$ ll
drwxr-x---  10 oracle   oinstall      10 Jan 29 22:51 OC4J_DBConsole_solaris11vm_ORCL

Sure there is the correct file. I think emctl should take this one to start dbconsole, but it was ignored. So I suspected that the name resolution is the possible cause.

Next I checked /etc/hosts

...       localhost loghost solaris11vm   solaris11vm

Oh, someone added the hostname to, so I removed the hostname.

...       localhost loghost   solaris11vm

It's back to normal.

If your /etc/hosts is nothing wrong, I suggest that you should still focus on name resolution related configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *