EMCA 11.2 Fails With SEVERE: Error instantiating EM configuration files and CONFIG: OpenSCManager FAILED: Access is denied. Service creation failed. Aborting...

(Doc ID 1168783.1)

Last updated on OCTOBER 18, 2013

Applies to:

Enterprise Manager for Oracle Database - Version 10.2.0.4 to 11.2.0.3 [Release 10.2 to 11.2]
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)

Symptoms

When attempting to reconfigure EM DBConsole with EMCA, it fails with:
emca -config dbcontrol db -repos create

Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: OpenSCManager FAILED: Access is denied.

Service creation failed. Aborting...

Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing CMD /C %ORACLE_HOME%\bin\emctl.bat deploy dbconsole -d MYSID %ORACLE_HOME\myhost.mydomain_MYSID myhost.mydomain:3938 myhost.mydomain MYSID
Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.EMAgentConfig instantiateEMConfigFiles
CONFIG: Failed to deploy state dirs
Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error instantiating EM configuration files
Refer to the log file at C:\app\oracle\cfgtoollogs\emca\MYSID\emca_2013_01_04_17_04_49.log for more details.
Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error instantiating EM configuration files
    at oracle.sysman.emcp.EMAgentConfig.updateAgentConfigFiles(EMAgentConfig.java:3481)
    at oracle.sysman.emcp.EMAgentConfig.performConfiguration(EMAgentConfig.java:1465)
    at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:300)
    at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:278)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:259)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:599)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1482)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:583)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:529)
Jan 4, 2013 5:07:08 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to %ORACLE_HOME%\oui

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