Pages

Thursday, March 16, 2017

Uninstalling OEM agent via CLI Mode

Below Steps to needs to done on OMS Server::

[oracle@sivaOMS001 bin]$ ./emcli sync
Synchronized successfully
[oracle@sivaOMS001 bin]$ ./emcl delete_target -name="nj09mhf6213:3872" -type="oracle_emd" -delete_monitored_targets
-bash: ./emcl: No such file or directory
[oracle@sivaOMS001 bin]$ ./emcli delete_target -name="target001 :3872" -type="oracle_emd" -delete_monitored_targets
Target "target001 :3872:oracle_emd" deleted successfully
[oracle@sivaOMS001 bin]$

Below Steps to needs to done on Target Server where agent needs to install::

[oracle@target001  12.1.0.3.0]$ echo $ORACLE_HOME
/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0
[oracle@target001  12.1.0.3.0]$
[oracle@target001  12.1.0.3.0]$
[oracle@target001  12.1.0.3.0]$ export AGENT_HOME=/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0
[oracle@target001  12.1.0.3.0]$ perl $AGENT_HOME/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME


 Agent Oracle Home: /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0


NOTE: The agent base directory: /u01/app/oracle/product/OEM_HOME will be removed after successful deinstallation of agent home.


 DetachHome Command executed:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runInstaller -detachHome -force -depHomesOnly -silent ORACLE_HOME=/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0 -waitForCompletion -invPtrLoc /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 103422 MB    Passed
The inventory pointer is located at /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oraInst.loc
'DetachHome' was successful.
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 103422 MB    Passed
The inventory pointer is located at /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oraInst.loc
The Oracle home '/u01/app/oracle/product/OEM_HOME/sbin' could not be updated as it does not exist.


Deinstall Command executed:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0}" -waitForCompletion -removeAllFiles -invPtrLoc /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oraInst.loc
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 103422 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-03-03_04-55-28AM. Please wait ...Oracle Universal Installer, Version 11.1.0.11.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.

Starting deinstall


Deinstall in progress (Friday, March 3, 2017 4:55:32 AM EST)
Configuration assistant "Agent Deinstall Assistant" succeeded
............................................................... 100% Done.

Deinstall successful

End of install phases.(Friday, March 3, 2017 4:55:58 AM EST)
End of deinstallations
Please check '/u01/app/oraInventory/logs/silentInstall2017-03-03_04-55-28AM.log' for more details.

Do you want us to delete the old oracle home [yes/no] :yes
cannot fetch initial working directory: No such file or directory at /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl line 136.

NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager Repository by this deinstall script. Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.
[oracle@target001  12.1.0.3.0]$

Uninstalling OEM agent via CLI Mode

Below Steps to needs to done on OMS Server:: [oracle@sivaOMS001 bin]$ ./emcli sync Synchronized successfully [oracle@sivaOMS001 bin]$ ....