Deinstall Oracle Cloud Control 12c Agent

In previous posts I explain how to perform quick installation of the agent software, Agent software using rpm and configure the agent.  This post explains the deinstallation of the Oracle agent using the Oracle provided perl script.

As the Agent 12c is based on several components, the plugins, the agent instance and the core agent software, you are also able to delete those parts separately. But in this case we will remove everything.

$ <AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>

To keep the core software of the agent you can add the option -skipRemoval

When I tried to use the -skipRemoval statement it was still remove everything.  In the case I only want to remove the agent_inst location I remove the directories using rm statement.

In addition manually remove the targets from Cloud Control

Remark: delete the software with rpm -erase <package name>  is also possible.

 

Example:

[oracle@server43 ~]$ /usr/lib/oracle/agent/core/12.1.0.2.0/
perl/bin/perl /usr/lib/oracle/agent/core/12.1.0.2.0/sysman/
install/AgentDeinstall.pl -agentHome /usr/lib/oracle/agent/
core/12.1.0.2.0 

Agent Oracle Home: /usr/lib/oracle/agent/core/12.1.0.2.0 

NOTE: The agent base directory: /usr/lib/oracle/agent will be 
removed after successful deinstallation of agent home. 

DetachHome Command executed:/usr/lib/oracle/agent/core/
12.1.0.2.0/oui/bin/runInstaller -detachHome -force -depHomesOnly 
-silent ORACLE_HOME=/usr/lib/oracle/agent/core/12.1.0.2.0 
-waitForCompletion -invPtrLoc /usr/lib/oracle/agent/core/
12.1.0.2.0/oraInst.loc 
Starting Oracle Universal Installer... 

Checking swap space: must be greater than 500 MB. Actual 3942 
MB Passed 
The inventory pointer is located at /usr/lib/oracle/agent/core/
12.1.0.2.0/oraInst.loc 
The inventory is located at /u01/app/oraInventory 
'DetachHome' was successful. 
Starting Oracle Universal Installer... 

Checking swap space: must be greater than 500 MB. Actual 3942 MB 
Passed 
The inventory pointer is located at /usr/lib/oracle/agent/core/
12.1.0.2.0/oraInst.loc 
The inventory is located at /u01/app/oraInventory 
'DetachHome' failed. 

Deinstall Command executed:/usr/lib/oracle/agent/core/12.1.0.2.0/
oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/usr/lib
/oracle/agent/core/12.1.0.2.0}" -waitForCompletion 
-removeAllFiles -invPtrLoc /usr/lib/oracle/agent/core/12.1.0.2.0/
oraInst.loc 
Starting Oracle Universal Installer... 

Checking swap space: must be greater than 500 MB. Actual 3942 MB
 Passed 
Preparing to launch Oracle Universal Installer from /tmp/
OraInstall2013-04-01_08-50-40PM. Please wait ...Oracle 
Universal Installer, Version 11.1.0.9.0 Production 
Copyright (C) 1999, 2012, Oracle. All rights reserved. 

Starting deinstall 

Deinstall in progress (Monday, April 1, 2013 8:50:43 PM CEST) 
Configuration assistant "Agent Deinstall Assistant" succeeded 
............................................................... 
100% Done. 
Deinstall successful End of install phases.(Monday, April 1, 2013
 8:51:19 PM CEST) 
End of deinstallations 
Please check '/u01/app/oraInventory/logs/
silentInstall2013-04-01_08-50-40PM.log' for more details.
This entry was posted in Linux, Real Application Cluster, Training. Bookmark the permalink.

Comments are closed.