Monday, October 28, 2013

How to Uninstall 11g Agent software

Get into the agent home.
aix_tst01 {oracle}:tstdb #cd $AGENT_HOME
aix_tst01 {oracle}:tstdb #pwd
/tstdb/app/oracle/omsagent/agent11g/oui/bin
Now we need to run the below command from the same directory.
aix_tst01 {oracle}:tstdb #./runInstaller -silent -deinstall "REMOVE_HOMES={/tstdb/app/oracle/omsagent/agent11g}" -removeallfiles

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 16384 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-10-28_12-32-10PM. Please wait ...aix_tst01 {oracle}:tstdb #.Oracle Universal Installer, Version 11.1.0.8.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

Starting deinstall


Deinstall in progress (Monday, October 28, 2013 12:32:40 PM GMT+08:00)
Configuration assistant "Agent Deinstall Assistant" succeeded
Configuration assistant "Oracle Configuration Manager Deinstall" succeeded
............................................................... 100% Done.

Deinstall successful

End of install phases.(Monday, October 28, 2013 12:34:05 PM GMT+08:00)
End of deinstallations
Please check '/tstdb/app/oracle/oraInventory/logs/silentInstall2013-10-28_12-32-10PM.log' for more details.

ksh: .: 0403-004 Specify a parameter with this command.
aix_tst01 {oracle}:tstdb #
This will remove all the agent related bianries also it will remove the entry from Inventory too.

Fyi,

From 11g onwards Agent installatin in GUI mode is deprecated, we need to do this only with Response file.