Shutdown the agent:
export AGENT_HOME=/u01/app/oracle/agent11g $AGENT_HOME/bin/emctl stop agent
Delete the related targets from Enterprise Manager.
Run the deinstaller (silent mode):
$AGENT_HOME/oui/bin/runInstaller -invPtrLoc $AGENT_HOME/oraInst.loc -deinstall -silent "REMOVE_HOMES={$AGENT_HOME}" -removeallfiles
NOTE: I’ve included the ‘invPtrLoc’ flag above. This is optional, but if you ever come across a server where multiple inventories are used, you’re going to have to supply this.
Once you see “Deinstall Successful”, you’re pretty much done.
You can if you prefer, perform the deinstall graphically using the following command:
$AGENT_HOME/oui/bin/runInstaller -invPtrLoc $AGENT_HOME/oraInst.loc
Check the oratab entry for agent11g and ensure it’s ORACLE_HOME directory have been removed:
grep agent11g /etc/oratab ls $AGENT_HOME
Job done!
Thanks, for the explanation and steps. Worked like magic 🙂