emctl start oms Fails and EMGC_OMS1.out File Reports "emcli set for "EMCLI_STATE_DIR" internal environment variable is not a valid directory".

(Doc ID 2349098.1)

Last updated on JANUARY 16, 2018

Applies to:

Enterprise Manager Base Platform - Version 13.2.0.0.0 and later
Information in this document applies to any platform.

Symptoms

$OMS_HOME/bin>./emctl start oms

Fails to start OMS and gives Oracle Management Service Could not be started.

$EM_INSTANCE_BASE/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/EMGC_OMS1.out reports following errors:

Error: Value /u01/app/oracle/middleware/agent/agent_inst/emcli set for "EMCLI_STATE_DIR" internal environment variable is not a valid directory.
Action: Unset the environment variable or correct it to the directory that was specified
as the client directory when emcli was setup for the OMS.
<Jan 10, 2018 1:50:22 PM EST> <Error> <WebLogicServer> <BEA-000381> <ServerLifeCycle operation failed.
Message: halt call on WseeServiceActivator failed
java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at weblogic.wsee.runtime.JMSStoreRoutableIDMapper.shutdown(JMSStoreRoutableIDMapper.java:546)
at weblogic.wsee.runtime.WebServicesRuntime.shutdown(WebServicesRuntime.java:645)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms