My Oracle Support Banner

EM 13c:When Attempting to Deinstall Primary OMS Is Failing With Error:"OMSCA-ERR:Can not delete complete environment.Delete OMS EMGC_OMS2 first" (Doc ID 2819292.1)

Last updated on NOVEMBER 08, 2021

Applies to:

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


When attempting to delete the primary oms getting the following error

$ORACLE_HOME/perl/bin/perl /tmp/tmp_deinstall/ -mwHome $ORACLE_HOME -stageLoc /tmp/tmp_deinstall/

Refer to /tmp/tmp_deinstall/deinstall_2021-10-20_14-04-48.log for deinstall
Substring valuye is <OMS_HOME>gc_inst
This is a First OMS install. So, this deinstalls the OMS , Repository and
Agent. Confirm (y/n)y
User confirmed for deinstallation.

Enter the SYS Password :
Enter the sysman Password :
Enter the Admin Server password :
$ $ORACLE_HOME/perl/bin/perl
/tmp/tmp_deinstall/ -mwHome $ORACLE_HOME -stageLoc

log4j:WARN No appenders could be found for logger
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more
Oracle Enterprise Manager Cloud Control 13c Release
Copyright (c) 1996, 2021, Oracle. All rights reserved.
OMSCA-ERR:Can not delete complete environment. Delete OMS EMGC_OMS2 first

Enter Administration Server user password:
return value is : 256

The OMS delete of EMGC_OMS1 has failed. Rectify the error and try again



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.