3 Replies Latest reply: Jul 29, 2013 7:01 AM by Akanksha Sheoran Kaler RSS

    Need steps to de-install 12c agent

    928411
      Hi,

      Want steps to de-install 12c agent.
      Any document or the detailed steps would be helpful.

      - Wern
        • 1. Re: Need steps to de-install 12c agent
          Venkata Thiruveedhi-Oracle
          Hi,


          12C Cloud Control: How to De-install 12C Agent
          1. Stop the Agent using command from Management Agent home:

          $ emctl stop agent
          Example:
          ../agent12c/agent_inst/bin/emctl stop agent

          2. Deinstalling using Graphical Method:
          ========================
          2.a.) Invoke the installer from Management Agent home by running the following command:
          $/oui/bin/runInstaller -removeallfiles
          Example:
          $ ../agent/core/12.1.0.1.0/oui/bin/runInstaller -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}" -invPterLoc
          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}" -invPttLoc /home/oracle/oraInst.loc

          Note: Parameter -invPtrLoc is optional

          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.

          Best Regards,
          Venkat
          • 2. Re: Need steps to de-install 12c agent
            lrp1

            I have the same question.

            Oracle Enterprise Manager Cloud Control 12c (12.1.0.2.2)

            Solaris 10 update 10 x86_64.

            No access to X-Windows so I'm doing a silent deinstall.

             

            Following docs at Venkat's recommendation:

            How to De-install the Enterprise Manager Cloud Control 12c Agent (Doc ID 1368088.1)
            Enterprise Manager Cloud control 12c Plug-ins Frequently Asked Questions (Doc ID 1394908.1)


            ## list agent plug-in homes

              echo $AGENT_HOME

              /u01/app/oracle/agent12c/core/12.1.0.2.0

             

              echo $AGENT_BASE

              /u01/app/oracle/agent12c

             

              $AGENT_HOME/bin/emctl listplugins agent

              oracle.sysman.oh    12.1.0.2.0 /u01/app/oracle/agent12c/plugins/oracle.sysman.oh.agent.plugin_12.1.0.2.0

             

              ls -l $AGENT_BASE/plugins

              drwxr-xr-x   7 oracle   oinstall      12 Jul 24 22:25 oracle.sysman.db.discovery.plugin_12.1.0.3.0

              drwxr-xr-x   9 oracle   oinstall      13 Jul 24 22:25 oracle.sysman.emas.discovery.plugin_12.1.0.3.0

              drwxr-xr-x  10 oracle   oinstall      15 Jul 24 22:25 oracle.sysman.oh.agent.plugin_12.1.0.2.0

              drwxr-xr-x   7 oracle   oinstall      13 Jul 24 22:25 oracle.sysman.oh.discovery.plugin_12.1.0.2.0

              drwxr-xr-x   7 oracle   oinstall      11 Jul 24 22:25 oracle.sysman.xa.discovery.plugin_12.1.0.3.0

             

            ## remove plugin home (FOR EACH PLUGIN FOUND)

             

            $AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={$AGENT_BASE/agent/plugins/oracle.sysman.db.discovery.plugin_12.1.0.3.0}"

            $AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={$AGENT_BASE/agent/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.3.0}"

            $AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={$AGENT_BASE/agent/plugins/oracle.sysman.oh.agent.plugin_12.1.0.2.0}"

            $AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={$AGENT_BASE/agent/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.2.0}"

            $AGENT_HOME/oui/bin/runInstaller -deinstall -silent "REMOVE_HOMES={$AGENT_BASE/agent/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.3.0}"

             

             

            ## 3 steps: REMOVE PLUG-IN HOMES, SBIN HOME, AND AGENT_HOME

             

            ## remove sbin home

              $AGENT_HOME/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={$AGENT_BASE/sbin}"

             

            ## Deinstall the Management Agent:

              $AGENT_HOME/oui/bin/runInstaller -silent -deinstall -removeallfiles "REMOVE_HOMES={$AGENT_HOME}"


            The part in RED (deleting each plugin home) is what I'm curious about: is there a better way to find & de-install the individual plugin-homes?  Has anybody come up with a sed, bash or awk script to generate the directory names?


            (Apologies if I wasn't supposed to dig up an old thread but this was the exact same question I had: 12c deinstall agent).

            • 3. Re: Need steps to de-install 12c agent
              Akanksha Sheoran Kaler

              If you are using the silent runInstaller to deinstall the agent then you have to manually remove the plugin homes as in ruInstaller we have to remove the dependent homes one by one.

              To avoid all this we have much simpler solution and single steps - use agentdeinstal.pl script silently to remove everything in a single go.

              1. $<AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>

               

              This script uses API to remove all the dependent homes for you and you don't have to worry about removing them one after the another

               

              Refer install guide for more detail and exact instructions-  Deinstalling Oracle Management Agent