Total Pageviews

Monday, December 15, 2014

How to De-install the Enterprise Manager Cloud Control 12c Agent

follow below oracle instruction if you have to uninstall EM 12c Agent.


Before you deinstall a Management Agent, do the following:
    a. Stop the Agent using command from Management Agent home:
$ emctl stop agent
Example:
../agent12c/agent_inst/bin/emctl stop agent
    b. Wait for the Management Agent to go to the unreachable state in the Cloud Control console.
    c. It is mandatory to delete the Management Agent and their monitored targets using any of the following methods:
      
Example:
$ emcli login -username=SYSMAN
$ emcli sync
$ emcli delete_target -name="example.com:1836" -type="oracle_emd" -delete_monitored_targets -async
       Or
 

2. Deinstalling using Graphical Method:

2.a.) Invoke the installer from Management Agent home by running the following command:
    
$<AGENT_HOME>/oui/bin/runInstaller -deinstall ORACLE_HOME=<absolute_path_to_agent_home> [-removeallfiles]

Example:
$ /u01/app/oracle/agent/core/12.1.0.1.0/oui/bin/runInstaller -deinstall ORACLE_HOME=/u01/app/oracle/agent/core/12.1.0.1.0 -removeallfiles

2.b.) In the Installation wizard click on "Installed Products" button.

2.c.) On the Inventory screen, select the plug-in homes, and click "Remove" button.

2.d.) On the Inventory screen, select the sbin home, and click "Remove" button.

2.e.) On the Inventory screen, select the Management Agent, and click "Remove" button.

OR
Deinstalling using Silent Method:

2.i) Deinstall the plug-in homes:
$/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={absolute_path_to_plug-in_home}" -invPtrLoc
Example:
$ ../agent/core/12.1.0.1.0/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={../agent/plugins/oracle.sysman.emas.oms.plugin_12.1.0.1.0, ../agent/plugins/oracle.sysman.emct.oms.plugin_12.1.0.1.0}" -invPtrLoc /home/oracle/oraInst.loc

2.ii) Deinstall the sbin home:
$/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={absolute_path_to_sbin_directory}" -invPtrLoc
Example:
$ ../agent/agent_inst/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={../agent/sbin}" -invPtrLoc /home/oracle/oraInst.loc

2.iii) Deinstall the Management Agent:
$/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={absolute_path_to_agent_oracle_home}" -invPtrLoc
Example:
$ ../agent/core/12.1.0.1.0/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={../agent/core/12.1.0.1.0}" -invPtrLoc /home/oracle/oraInst.loc

Note: Parameter -invPtrLoc is optional
For Windows: Instead of runInstaller use setup.exe


3. (Only for Graphical Mode) Verify whether the Oracle Homes and other directories were successfully deinstalled. To do so, follow these steps:

3.a.) Invoke the installation wizard by running the following command from the Management Agent Home:
$/oui/bin/runInstaller
Example:
$ ../agent/core/12.1.0.1.0/oui/bin/runInstaller


3.b.) In the installation wizard, on the My Oracle Support Details screen, click on "Installed Products" button.

3.c.) On the Inventory screen, check whether or not the Oracle Homes and other directories you deinstalled appears. If the deinstallation was successful then those Oracle Homes and directories should not appear.

4. Open inventory.xml and check Agent plugin home and Agent sbin home entries are removed or not. These entries should be removed during deinstallation.


Note: inventory.xml would be located under ContentsXML folder under the inventory location in oraInst.loc file.
5. Remove the Cloud Control Management Agent base directory:

For UNIX platforms:
$ rm -rf <absolute_path_to_agent_base_dir>
Example:
$ rm -rf /u01/app/oracle/product/agent12c
For Microsoft Windows platforms:
C:\app\oracle> del <absolute_path_to_agent_base_dir
Example:
C:\app\oracle> del c:\app\oracle\product\agent12c
If the Windows Service Oracleagent12c1Agent (the service name may be different) is not deleted, you can delete it using the windows command:
C:\> sc delete Oracleagent12c1Agent

No comments:

Post a Comment