Showing posts with label ORACLE_HOME. Show all posts
Showing posts with label ORACLE_HOME. Show all posts

Monday, 17 November 2014

Emctl Status/start Dbconsole Failed with Can't Locate CompEMdbconsole.pm

Symptoms

The DB Control fails to start with:

Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /oracle/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /oracle/11.2.0/grid/perl/lib/5.10.0 /oracle/11.2.0/grid/perl/lib /oracle/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /oracle/11.2.0/grid/perl/lib/site_perl/5.10.0 /oracle/11.2.0/grid/perl/lib/site_perl /oracle/11.2.0/grid/perl/libwww-perl/lib /oracle/11.2.0/grid/perl/ext/POSIX /oracle/11.2.0/grid/perl/URI /oracle/11.2.0/grid/perl/HTML_Parser /oracle/11.2.0/grid/perl/HTML-Parser/lib /oracle/11.2.0/grid/sysman/admin/scripts /oracle/11.2.0/grid/bin /oracle/11.2.0/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /oracle/11.2.0/grid/sysman/admin/scripts/libnet-1.19/ .) at /oracle/11.2.0/grid/bin/EmctlCommon.pm line 598.

Cause

The environment variables ORACLE_HOME, ORACLE_SID and PATH are not set or incorrectly set.

Without the environment set up correctly, the DB Control will fail to start.

From the error output it is seen that the dbcontrol startup is looking for the configuration files in the wrong ORACLE_HOME.

Solution

Set the environment correctly for the Database ORACLE_HOME:

Unix:

export ORACLE_HOME=
export ORACLE_SID=
export PATH=$ORACLE_HOME/bin:$PATH

$ORACLE_HOME/bin: emctl start dbconsole

Windows:

set ORACLE_HOME=
set ORACLE_SID=
set PATH=$ORACLE_HOME\bin:$PATH

$ORACLE_HOME\bin: emctl start dbconsole

Reference: Doc ID 1510867.1