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:
c. It is mandatory to delete the Management Agent and their monitored targets using any of the following methods:
2. Deinstalling using Graphical Method:
2.a.) Invoke the installer from Management Agent home by running the following command:
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
2.ii) Deinstall the sbin home:
$/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={absolute_path_to_sbin_directory}" -invPtrLoc
2.iii) Deinstall the Management Agent:
$/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={absolute_path_to_agent_oracle_home}" -invPtrLoc
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
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.
For UNIX platforms:
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.Example:
../agent12c/agent_inst/bin/emctl stop agent
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$ emcli login -username=SYSMAN
$ emcli sync
$ emcli delete_target -name="example.com:1836" -type="oracle_emd" -delete_monitored_targets -async
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
$ ../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
$ ../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
$ ../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
$ ../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:Example:
$ rm -rf /u01/app/oracle/product/agent12c
C:\app\oracle> del <absolute_path_to_agent_base_dir
If the Windows Service Oracleagent12c1Agent (the service name may be different) is not deleted, you can delete it using the windows command:Example:
C:\app\oracle> del c:\app\oracle\product\agent12c
C:\> sc delete Oracleagent12c1Agent
No comments:
Post a Comment