Deinstall the Enterprise Manager 13c Cloud Control Agent

sjw1933發表於2022-10-08

 

 

  Example for Step 1

export AGENT_HOME=/u01/app/agent_13.1.0.0.0

perl $AGENT_HOME/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME

Agent Oracle Home: /u01/app/agent_13.1.0.0.0

agentHome = /u01/app/agent_13.1.0.0.0

value of skip flag is false

NOTE: The agent base directory: /u01/app will be removed after successful deinstallation of agent home.

The command is

/u01/app/agent_13.1.0.0.0/oracle_common/jdk/jre/bin/java -classpath /u01/app/agent_13.1.0.0.0/oui/modules/OraInstaller.jar:/u01/app/agent_13.1.0.0.0/oui/modules/emCfg.jar:/u01/app/agent_13.1.0.0.0/jlib/agentInstaller.jar

oracle.sysman.agent.installer.AgentDeinstallation

/u01/app/agent_13.1.0.0.0 /u01/app /u01/app/agent_inst Jan 09, 2016 7:36:04 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run

INFO: Oracle Enterprise Manager Cloud Control 13c Release 1 Jan 09, 2016 7:36:04 PM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run

INFO: Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run

INFO: Agent is Not Running

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run

INFO: Plugin homes:

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run

INFO: Plugin homes:

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentDeinstallation main

INFO: Creating directory /u01/app/agent_13.1.0.0.0/install/tmp

completed successfully.

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentDeinstallation main

INFO: File /etc/oragchomelist exists.

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentDeinstallation main

INFO: File /etc/oragchomelist is writable.

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentDeinstallation main

INFO: Index :0 for line : /u01/app/agent_13.1.0.0.0:/u01/app/agent_inst

Jan 09, 2016 7:36:07 PM

oracle.sysman.agent.installer.AgentDeinstallation main

INFO: Overwriting the contents since oracle

home:/u01/app/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:/u01/app/agent_13.1.0.0.0/oui/bin/detachHome.sh -silent

ORACLE_HOME=/u01/app/agent_13.1.0.0.0

Launcher log file is

/tmp/OraInstall2016-01-09_07-36-09PM/launcher2016-01-09_07-36-09PM.log.

Starting Oracle Universal Installer

Checking swap space: must be greater than 500 MB. Actual 8191 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 /u01/app/oraInventory/logs.

Removing other files ...

NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager Repository by this deinstall script. Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.

 

 Example for Step 2

[oracle@Host bin]$ ./emcli login -username=sysman Enter password

Login successful

[oracle@host bin]$ ./emcli sync

Synchronized successfully

[oracle@host bin]$ ./emcli delete_target -name="hostname:3872"

-type="oracle_emd" -delete_monitored_targets Target "hostname:3872:oracle_emd" deleted successfully

 

b. Using an RPM File

Note: 

  1. You can use this option only to deinstall agents installed using the .rpm file 
  2. Resource Package Manager (RPM) must be installed on the Management Agent host

 

Run the following command on the Management Agent host to obtain the RPM name:

 

          rpm -qa | grep oracle-agt

 

 

Run the following command as a root user to deinstall the Management Agent:

        

          rpm -e <rpm_name>

 

 

Here, <rpm_name> is the RPM name that is displayed in the output of the command you ran in Step 1.


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23825935/viewspace-2917320/,如需轉載,請註明出處,否則將追究法律責任。

相關文章