ITPub博客

首页 > 数据库 > Oracle > Deinstall the Enterprise Manager 13c Cloud Control Agent

Deinstall the Enterprise Manager 13c Cloud Control Agent

原创 Oracle 作者:sjw1933 时间:2022-10-08 23:45:20 0 删除 编辑

 

 

  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博客 ” ,链接:https://blog.itpub.net/23825935/viewspace-2917320/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 在线重定义
请登录后发表评论 登录
全部评论
11年数据库行业经验,Oracle ACE、PG ACE、OCM、IBM Certified DBA、MySQL OCP、PolarDB技术专家、KCP、PCTP、PCSD、达梦师资认证、PolarDB开源社区技术顾问、ITPUB认证专家、某高校外聘教师

注册时间:2019-05-05

  • 博文量
    295
  • 访问量
    300770