32 Deinstalling Oracle Management Agent in Silent Mode

This chapter describes how you can deinstall Oracle Management Agent (Management Agent). In particular, this chapter covers the following:

Prerequisites

Before you deinstall a Management Agent, meet the prerequisites described in Prerequisites.

Deinstallation Procedure

This section describes the following:

Deinstalling Standalone or Cluster-Based Oracle Management Agents

To deinstall standalone Management Agents or cluster-based Management Agents from all nodes of a cluster, run the following command from the Oracle home of the Management Agent:

$<ORACLE_HOME>/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={absolute_path_to_agent_oracle_home}" -removeallfiles

For example:

$<ORACLE_HOME>/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={/u01/app/Oracle/Middleware/agent11g}" -removeallfiles

Note:

For Microsoft Windows, invoke setup.exe. Also, when you runInstaller -help, you will see the option -nowarningonremovefiles listed. This option is currently not supported and has no effect even if you use it.

Deinstalling Cluster-Based Oracle Management Agent from Only One Node of a Cluster

To deinstall a cluster-based Management Agent from only one node of a cluster, follow these steps:

  1. On the node from where you want to deinstall the Management Agent, run the following commands:

    1. Update the node list by running the following command from the Oracle home of the Management Agent:

      $<ORACLE_HOME>/oui/bin/runInstaller -updateNodeList ORACLE_HOME=<absolute_path_to_agent_oracle_home> "CLUSTER_NODES={<local_node_name>}" -local

      For example (assuming that node1 is one of the five nodes of a cluster):

      $<ORACLE_HOME>/oui/bin/runInstaller -updateNodeList ORACLE_HOME=</u01/app/Oracle/Middleware/agent11g> "CLUSTER_NODES={node1}" -local

      Note:

      For Microsoft Windows, invoke setup.exe.
    2. Deinstall the Management Agent by the running the following command from the Oracle home of the Management Agent:

      $<ORACLE_HOME>/oui/bin/runInstaller -silent "REMOVE_HOMES={absolute_path_to_agent_oracle_home}" -deinstall -waitForCompletion -removeallfiles -local -forceDeinstall

      For example:

      $<ORACLE_HOME>/oui/bin/runInstaller -silent "REMOVE_HOMES={/u01/app/Oracle/Middleware/agent11g}" -deinstall -waitForCompletion -removeallfiles -local -forceDeinstall

      Note:

      For Microsoft Windows, invoke setup.exe. Also, when you runInstaller -help, you will see the option -nowarningonremovefiles listed. This option is currently not supported and has no effect even if you use it.
  2. On each of the other nodes of the cluster, run the following command from the Oracle home of the Management Agent:

    ./runInstaller -updateNodeList ORACLE_HOME=<absolute_path_to_agent_oracle_home> "CLUSTER_NODES={<comma-separated_list_of_other_nodes>}"

    For example (node2, node3, node4, and node5 are the other nodes of a five-node cluster):

    ./runInstaller -updateNodeList ORACLE_HOME=</u01/app/Oracle/Middleware/agent11g> "CLUSTER_NODES=<node2, node3, node4, node5>"

    Note:

    For Microsoft Windows, invoke setup.exe.

Deinstalling Shared Oracle Management Agent

To deinstall a shared Management Agent (Shared Agent), that is, a Management Agent that was installed using a shared Oracle home of an existing Management Agent (Master Agent), run the following command from the Oracle home of the Management Agent (Shared Agent). In this command, -InvPtrLoc need not be specified if the inventory pointer is Central Inventory.

<ORACLE_HOME>sysman/install/nfs_agent_deinstall -EMStateDir <EMSTATE_Directory_Location> [ -InvPtrLoc <Inventory pointer location> ]

After You Deinstall

After you deinstall the Oracle homes, follow the steps described in After You Deinstall.