My Oracle Support Banner

12c Cloud Control: Error 'Failed to backup Admin Server' When Taking OMS Config Backup due to Invalid Option for Backup Dir (Doc ID 1395047.1)

Last updated on DECEMBER 13, 2019

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.
Checked for relevance on 23-Dec-2013


Attempting to backup the 12c Cloud control OMS configuration fails with:

cd <OMS_HOME>/bin
emctl exportconfig oms -dir .

Oracle Enterprise Manager Cloud Control 12c Release
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
ExportConfig started...
Machine is Admin Server host. Performing Admin Server backup...
Error: Failed to backup Admin Server!
Operation Failed...Please check <EM_INSTANCE_HOME>/em/EMGC_OMS1/sysman/log/emctl.log for details
ExportConfig failed.

Expectation from '-dir .' is to create the backup file in the current working directory, which is the <OMS_HOME>/bin, on which the OS user has sufficient privileges to create the backup file.

The <EM_INSTANCE_HOME>/em/EMGC_OMS1/sysman/log/emctl.log shows:

2012-01-06 15:06:34,858 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - Admin backup is true
2012-01-06 15:06:34,859 [main] DEBUG oms.ExportConfigOMSCmds logp.251 - admin backup cmd is <OMS_HOME>/bin/zip -q -r -9 ./ user_projects -x user_projects/domains/GCDomain/servers/EMGC_OMS1/tmp* -x user_projects/domains/GCDomain/servers/EMGC_OMS1/logs* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/tmp* -x user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs*
2012-01-06 15:06:36,439 [main] INFO oms.ExportConfigOMSCmds logp.251 - zip exited with code 0
2012-01-06 15:06:36,440 [main] INFO oms.ExportConfigOMSCmds logp.251 - whether admin pack failed: false
2012-01-06 15:06:36,443 [main] ERROR oms.ExportConfigOMSCmds logp.251 - ExportConfig failed...
2012-01-06 15:06:36,446 [main] ERROR oms.ExportConfigOMSCmds logp.251 - ExportConfig Error: Failed to backup Admin Server!
java.lang.Exception: Failed to backup Admin Server!

at oracle.sysman.emctl.oms.ExportConfigOMSCmds.backupAdminServer(
at oracle.sysman.emctl.oms.ExportConfigOMSCmds.processExportConfigOMS(
at oracle.sysman.emctl.oms.ExportConfigOMSCmds.main(


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.