Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

HOW TO DEINSTALL THE ENTERPRISE MANAGER 13C CLOUD CONTROL AGENT

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 18 Sep, 2023
  • 0 Comments
  • 3 Mins Read

HOW TO DEINSTALL THE ENTERPRISE MANAGER 13C CLOUD CONTROL AGENT

Follow the below steps to deinstall the enterprise Manager 13c cloud control Agent.
1. Locate the Central Inventory by reviewing the inventory pointer file.
1
2
3
4
[oracle@prim ~] cat /etc/oraInst.loc
 
inventory_loc=/etc/oraInventory
inst_group=dba
2. Get the agent’s home from the Inventory file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[oracle@prim ~] cat /etc/oraInventory/ContentsXML/inventory.xml
     
    <?xml version="1.0" standalone="yes" ?>
    <!-- Copyright (c) 1999, 2015, Oracle. All rights reserved. -->
    <!-- Do not modify the contents of this file by hand. -->
    <INVENTORY>
    <VERSION_INFO>
       <SAVED_WITH>13.6.0.0.0</SAVED_WITH>
       <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
    </VERSION_INFO>
    <HOME_LIST>
    <HOME NAME="OraDB12Home1" LOC="/oracle/product/12.2.0.1" TYPE="O" IDX="1"/>
    <HOME NAME="agent13c1" LOC="/agent13c/agent_13.1.0.0.0" TYPE="O" IDX="2"/>
    </HOME_LIST>
    <COMPOSITEHOME_LIST>
    </COMPOSITEHOME_LIST>
    </INVENTORY>
  1. Set the AGENT_HOME variable to the value found in step 2
1
[oracle@prim ~] export AGENT_HOME=/agent13c/agent_13.1.0.0.0
4. Stop the Agent.
1
2
3
4
5
[oracle@prim ~] $AGENT_HOME/bin/emctl stop agent
 
Oracle Enterprise Manager Cloud Control 13c Release 1
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
5. Run the AgentDeinstall.pl script to detach the agent’s home from the Inventory file. The script removes the agent’s home directory as well. For instance :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[oracle@prim ~] $AGENT_HOME/perl/bin/perl $AGENT_HOME/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME
 
 Agent Oracle Home: /agent13c/agent_13.1.0.0.0
 
agentHome = /agent13c/agent_13.1.0.0.0
value of skip flag is false
NOTE: The agent base directory: /agent13c will be removed after successful deinstallation of agent home.
The command is /agent13c/agent_13.1.0.0.0/oracle_common/jdk/jre/bin/java
-classpath /agent13c/agent_13.1.0.0.0/oui/modules/OraInstaller.jar:/agent13c/agent_13.1.0.0.0/oui/modules/emCfg.jar:
/agent13c/agent_13.1.0.0.0/jlib/agentInstaller.jar oracle.sysman.agent.installer.AgentDeinstallation
/agent13c/agent_13.1.0.0.0 /agent13c /agent13c/agent_inst
May 04, 2018 2:12:33 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Oracle Enterprise Manager Cloud Control 13c Release 1
May 04, 2018 2:12:33 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Agent is Not Running
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Plugin homes:
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Plugin homes:
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Creating directory /agent13c/agent_13.1.0.0.0/install/tmp completed successfully.
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: File /etc/oragchomelist exists.
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: File /etc/oragchomelist is writable.
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Index :0 for line : /agent13c/agent_13.1.0.0.0:/agent13c/agent_inst
May 04, 2018 2:12:35 PM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Overwriting the contents since oracle home:/agent13c/agent_13.1.0.0.0 entry already exists.
The output is Agent Deinstall:agent deintall has been started
Executing status :0
Agent service stopped successfully.
 and the exit code is 0
Agent deconfiguration completed successfully. 0
 
 
 DetachHome Command executed:/agent13c/agent_13.1.0.0.0/oui/bin/detachHome.sh -silent ORACLE_HOME=/agent13c/agent_13.1.0.0.0
Launcher log file is /tmp/OraInstall2018-05-04_02-12-35PM/launcher2018-05-04_02-12-35PM.log.
Starting Oracle Universal Installer
 
Checking swap space: must be greater than 500 MB.   Actual 24575 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
 
 
'detachHome' was successful.
Logs successfully copied to /etc/oraInventory/logs.
 
 Removing other files ...
Can't locate Carp.pm in @INC (@INC contains: /agent13c/agent_13.1.0.0.0/perl/lib/5.10.0/x86_64-linux-thread-multi
/agent13c/agent_13.1.0.0.0/perl/lib/5.10.0 /agent13c/agent_13.1.0.0.0/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi
/agent13c/agent_13.1.0.0.0/perl/lib/site_perl/5.10.0 .) at /agent13c/agent_13.1.0.0.0/perl/lib/5.10.0/File/Path.pm line 32.
  1. Verify the agent’s home directory is removed.
1
2
3
4
5
[oracle@prim ~] ls -l /agent13c/agent_13.1.0.0.0
ls: cannot access /agent13c/agent_13.1.0.0.0: No such file or directory
 
[oracle@prim ~] ls -l /agent13c
total 0

PLEASE NOTE that If the agent’s home directory is not removed by the script, then we need to remove it manually.

7. Verify the agent’s home is detached from the Central Inventory successfully.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[oracle@prim ~] cat /etc/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2015, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>13.6.0.0.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraDB12Home1" LOC="/oracle/product/12.2.0.1" TYPE="O" IDX="1"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

8. perform Agent Decommission of the uninstalled agent from Enterprise Manager Cloud Control console.

Targets -> All Targets -> Search Target Name -> right click on the agent -> Target Setup -> Agent Decommission.

Confirm the Agent Decommission by clicking “Continue” button.

 

Verify the agent is not shown in the Enterprise Manager Cloud Control.

 

That’s All !