Oracle OEM13c 如何卸载
基本概念:Oracle Enterprise Manager Cloud Control-EMCC是OEM家族的优秀产品,日常运维过程中由于OEM升级或者安装失败等场景需要卸载OEM。
EMCC的主要组件:
Oracle Management Repository (OMR)
Oracle Management Service (OMS)
包含特定于目标的插件的 Oracle Management Agent(OMA 或代理)
Cloud Control Console
Oracle Management Agent 在主机上运行,并搜集有关这些主机环境的度量数据,以及使 用插件来监视可用性、配置和性能并管理在主机上运行的目标。这些代理可与 Oracle Management Service 进行通信,以便上载它们及其插件所收集的度量数据。然后,OMS 会将其收集的数据存储在 Oracle Management Repository 中,OMS 可以从中访问这些数 据以执行自动和手动报告和监视。OMS 还可以与代理进行通信,以便组织对所监视目标 的管理。除了协调代理之外,OMS 还可运行 Cloud Control Console Web 页面,管理员 和用户可使用这些页面来监视和管理 Cloud Control 通过代理及其插件可见的计算环境并 生成相关报告。
基础环境:Linux 7.9+EMCC 13.5
卸载步骤:
一、拷贝脚本到执行目录
[oracle@oem install]$ cp EMDeinstall.pl /home/oracle/em
二、卸载OMS
OMS_HOME=/u01/app/oracle/oms
Refer to /home/oracle/em/deinstall_2024-02-12_11-24-24.log for deinstall log
Substring valuye is /u01/app/oracle/gc_inst
This is a First OMS install. So, this deinstalls the OMS , Repository and Agent. Confirm (y/n)y
User confirmed for deinstallation.
Enter the SYS Password : 输入SYS用户密码
Enter the sysman Password :输入sysman用户密码
Enter the Admin Server password :输入admin密码
dbConnectStr - (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host02.example.com)(PORT=1521)))(CONNECT_DATA=(SID=EMREP)))
The command executed is /u01/app/oracle/agent/agent_13.5.0.0.0/perl/bin/perl /u01/app/oracle/agent/agent_13.5.0.0.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/oracle/agent/agent_13.5.0.0.0
Feb 12, 2024 11:24:40 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Oracle Enterprise Manager Cloud Control 13c Release 5
Feb 12, 2024 11:24:40 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Stopping agent ... stopped.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Plugin homes:
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run
INFO: Plugin homes:
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentInstaller execCommand
SEVERE: STDERR:
STDOUT=
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Creating directory /u01/app/oracle/agent/agent_13.5.0.0.0/install/tmp completed successfully.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: File /etc/oragchomelist exists.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: File /etc/oragchomelist is writable.
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Index :-1 for line : /u01/app/oracle/oms
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Index :0 for line : /u01/app/oracle/agent/agent_13.5.0.0.0:/u01/app/oracle/agent/agent_inst
Feb 12, 2024 11:24:46 AM oracle.sysman.agent.installer.AgentDeinstallation main
INFO: Overwriting the contents since oracle home:/u01/app/oracle/agent/agent_13.5.0.0.0 entry already exists.
The command is /u01/app/oracle/oms/bin/emctl stop oms
Stopping oms............ Wait for the completion of the execution.
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
return value is : 0
The command is /u01/app/oracle/oms/bin/omsca delete -full -OMSNAME EMGC_OMS1 -AS_USERNAME weblogic -REP_CONN_STR "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host02.example.com)(PORT=1521)))(CONNECT_DATA=(SID=EMREP)))"
The oms delete will take sometime. Wait for the completion of the execution. Don't abort the execution.
log4j:WARN No appenders could be found for logger (emctl.secure.oms.SecureOMSCmds).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Oracle Enterprise Manager Cloud Control 13c Release 13.5.0.0.0
Copyright (c) 1996, 2021, Oracle. All rights reserved.
Do You really want to delete the OMS (Y|N):
RCU Logfile: /u01/app/oracle/oms/cfgtoollogs/cfgfw/logs/emsecrepmgr.log
Processing command line ....
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Drop
Repository Drop in progress.
Percent Complete: 22
Percent Complete: 47
Dropping Oracle Platform Security Services(OPSS)
Percent Complete: 49
Dropping tablespaces in the repository database
Percent Complete: 100
Repository Creation Utility: Drop - Completion Summary
Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host02.example.com)(PORT=1521)))(CONNECT_DATA=(SID=EMREP)))
Connected As : sys
Prefix for (prefixable) Schema Owners : SYSMAN122140
RCU Logfile : /u01/app/oracle/oms/cfgtoollogs/cfgfw/logs/emsecrepmgr.log
Component schemas dropped:
-----------------------------
Component Status Logfile
Oracle Platform Security Services Success /u01/app/oracle/oms/cfgtoollogs/cfgfw/logs/opss.log
Repository Creation Utility - Drop : Operation Completed
OMS Deleted successfully
return value is : 0
Running the command /u01/app/oracle/oms/sysman/admin/emdrep/bin/RepManager -action drop -dbUser sys -dbRole sysdba -connectString "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host02.example.com)(PORT=1521)))(CONNECT_DATA=(SID=EMREP)))" -mwHome /u01/app/oracle/oms -mwOraHome /u01/app/oracle/oms -oracleHome /u01/app/oracle/oms
Repository drop will take sometime. Wait for the completion of the execution. Don't abort the execution.
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device