Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.2.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : /u02/app/oracle/agent12c/agent_inst
Agent Binaries : /u02/app/oracle/agent12c/core/12.1.0.2.0
OMS_HOME : /u02/app/oracle/middleware/oms
> Deconfigure and delete Oracle Management Service (OMS):
$<OMS_HOME>/bin/omsca delete -full
[oracle@dgprim oms]$ /u02/app/oracle/middleware/oms/bin/omsca delete -full
You are prompted to confirm your action, and furnish the AdminServer credentials and the repository database details such as the database host name, listener port, SID, and password. Once you provide the required details, the command automatically stops the OMS, Oracle WebLogic Server, and also Oracle WebTier.[oracle@dgprim oms]$ /u02/app/oracle/middleware/oms/bin/omsca delete -full
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.2.0
Copyright (c) 1996, 2012, Oracle. All rights reserved.
Found only one OMS : EMGC_OMS1
Do You really want to delete the OMS (Y|N):Y
Enter Admin Server user name:weblogic
Enter Admin Server user password:
Enter Repository database host name:dgprim
Enter Repository database listener port:1521
Enter Repository database SID:RENZ
Enter Repository database user password:
Do You really want to delete the OMS (Y|N):Y
OMS Deleted successfully
> Shut down Oracle Management Agent (Management Agent) by running the following command from the Management Agent home:
$<AGENT_HOME>/bin/emctl stop agent
[oracle@dgprim oms]$ /u02/app/oracle/agent12c/agent_inst/bin/emctl stop agent
> If you want to deinstall the entire Enterprise Manager system, including Oracle Management Repository (Management Repository) that is configured in your database, then follow these steps:[oracle@dgprim oms]$ /u02/app/oracle/agent12c/agent_inst/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Stopping agent ...... stopped.
- Ensure that there are no SYSMAN users logged in.
- Drop the Enterprise Manager Cloud Control schema (SYSMAN schema) and the Metadata schema (MDS schema) from the Management Repository by running the following command from the OMS home:
$<OMS_HOME>/sysman/admin/emdrep/bin/RepManager <database_host> <repository_database_port> <repository_database_sid> -action dropall -dbUser <repository_database_user> -dbPassword <repository_database_password> -dbRole <repository_database_user_role> -reposName <repository_name> -mwHome <middleware_home> -mwOraHome <middleware_ora_home> -oracleHome <OMS_HOME>
- Manually delete the data files mgmt.dbf and mgmt_ecm_depot1.dbf from the database home.
> Invoke the installer from the OMS home by running the following command:
$<OMS_HOME>/oui/bin/runInstaller -jreLoc <path> -deinstall ORACLE_HOME=<absolute_path_to_oms_home> [-removeallfiles] [-invPtrLoc <absolute_path_to_oraInst.loc>] - Click on "Deinstall Products" and tick on Oracle Products that need to be deinstalled.
- Click "Yes" to confirm.