Thursday, April 15, 2010

emctl status dbconsole - OC4J Configuration issue

I was getting the following error when I try to run emctl:

oracle@myhost:~> emctl status dbconsole
OC4J Configuration issue. /opt/oracle/product/11gR2/db/oc4j/j2ee/OC4J_DBConsole_myhost.domain.local_myhost not found.

Cause
I discovered that some how the /etc/hosts file had enabled 127.0.0.2 entry.

Solution
Commented out the entry
#127.0.0.2 myhost.domain.local myhost