背景描述:

1,当前有一套EMCC12c的监控,最近规划将EMCC12c的监控迁移到EMCC13c的监控,原有的EMCC12c监控的目标端需要重新定向到EMCC13c

2,参考资料:

(Redirecting Oracle Management Agent to Another Oracle Management Service)https://docs.oracle.com/cd/E24628_01/install.121/e24089/appdx_repoint_agent.htm#EMADV14498

13.3的版本

https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.3.1/emadv/redirecting-oracle-management-agent-another-oracle-management-service.html#GUID-5FBE50D6-2DE4-4420-A11A-D41B5E543A63

步骤:

将Oracle管理代理重定向到另一个Oracle管理服务(OMS)

1,确保新的OMS版本和管理的代理版本一致,或者更高的版本

2,确保新的OMS上部署了和老OMS相同的插件集(plug-ins),或者版本更高的插件集

查看OMS插件集:(设置——可扩展性——插件)

查看agent代理插件集:$<AGENT_INSTANCE_HOME>/bin/emctl listplugins agent -type all

3,确保需要重定向的代理软件已启动并运行,然后运行以下命令重建 plugins.txt文件

$AGENT_HOME/perl/bin/perl $AGENT_HOME/sysman/install/create_plugin_list.pl -instancehome <AGENT_INSTANCE_HOME>

(默认情况下,在create_plugin_list.pl中将perl安装位置指定为/usr/local/bin。如果perl安装在管理代理主机的其他位置,请确保编辑create_plugin_list.pl的第一行,并指定安装perl的位置。)

4,停止管理代理

$<AGENT_INSTANCE_HOME>/bin/emctl stop agent

5,在旧的OMS上删除代理(可不做)

$<OMS_HOME>/bin/emcli delete_target -delete_monitored_targets -name=<name_of_agent_target> -type="oracle_emd"

6,移除代理实例目录

rm -rf <absolute_path_to_agent_instance_home>

7,运行带有 -configOnly 选项的agentDeploy.sh (agentDeploy.bat for Microsoft Windows hosts) 脚本,创建一个新的实例指向新的OMS

$<AGENT_BASE_DIR>/core/12.1.0.5.0/sysman/install/agentDeploy.sh AGENT_BASE_DIR=<absolute_path_to_agent_base_dir> AGENT_INSTANCE_HOME=<absolute_path_to_agent_base_dir>/agent_inst AGENT_PORT=<port_for_agent_process> OMS_HOST=<new_oms_host_name> EM_UPLOAD_PORT=<upload_port> AGENT_REGISTRATION_PASSWORD=<agent_reg_password> b_upgrade=false b_12cupgrade=false b_agentUpgrade=false b_noUpgrade=true -configOnly

linux目标的重定向

1,目标端配置环境变量

[oracle@zg ~]$ vi .bash_profile
目录根据实际情况配置
添加如下:
export AGENT_HOME=/agent/core/12.1.0.5.0
export AGENT_INSTANCE_HOME=/agent/agent_inst

2,看目标端agent状态以及插件版本

[oracle@zg ~]$ $AGENT_INSTANCE_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.5.0
OMS Version            : 12.1.0.5.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /agent/agent_inst
Agent Log Directory    : /agent/agent_inst/sysman/log
Agent Binaries         : /agent/core/12.1.0.5.0
Agent Process ID       : 87472
Parent Process ID      : 87220
Agent URL              : https://zg:3872/emd/main/
Local Agent URL in NAT : https://zg:3872/emd/main/
Repository URL         : https://gridcontrol:1159/empbs/upload
Started at             : 2018-12-27 14:01:26
Started by user        : oracle
Operating System       : Linux version 2.6.32-431.el6.x86_64 (amd64)
Last Reload            : (none)
Last successful upload                       : 2019-08-13 10:35:47
Last attempted upload                        : 2019-08-13 10:35:47
Total Megabytes of XML files uploaded so far : 234.65
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 79.07%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2019-08-13 10:37:48
Last successful heartbeat to OMS             : 2019-08-13 10:37:48
Next scheduled heartbeat to OMS              : 2019-08-13 10:38:48---------------------------------------------------------------
Agent is Running and Ready
[oracle@zg ~]$ $AGENT_INSTANCE_HOME/bin/emctl listplugins agent -type all
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
oracle.sysman.oh    12.1.0.5.0           /agent/plugins/oracle.sysman.oh.agent.plugin_12.1.0.5.0
oracle.sysman.db    12.1.0.8.0           /agent/plugins/oracle.sysman.db.agent.plugin_12.1.0.8.0
oracle.sysman.xa    12.1.0.6.0           /agent/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.6.0
oracle.sysman.db    12.1.0.8.0           /agent/plugins/oracle.sysman.db.discovery.plugin_12.1.0.8.0
oracle.sysman.emas  12.1.0.8.0           /agent/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.8.0
oracle.sysman.oh    12.1.0.5.0           /agent/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.5.0

3,目标端重建 plugins.txt文件

[oracle@zg install]$ cd /agent/
[oracle@zg agent]$ find . -name plugins.txt
./plugins.txt
[oracle@zg agent]$ more plugins.txt
oracle.sysman.xa|12.1.0.6.0||discoveryPlugin
oracle.sysman.db|12.1.0.8.0||discoveryPlugin
oracle.sysman.emas|12.1.0.8.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||agentPlugin
[oracle@zg agent]$ $AGENT_HOME/perl/bin/perl $AGENT_HOME/sysman/install/create_plugin_list.pl -instancehome /agent/agent_inst
The agent Base Dir is /agentCreating file : /agent/rwFile
Removed the /agent/rwFile file.
oracle.sysman.xa|12.1.0.6.0||discoveryPlugin
oracle.sysman.db|12.1.0.8.0||discoveryPlugin
oracle.sysman.emas|12.1.0.8.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||agentPlugin
oracle.sysman.db|12.1.0.8.0||agentPlugin
[oracle@zg agent]$ more plugins.txt
oracle.sysman.xa|12.1.0.6.0||discoveryPlugin
oracle.sysman.db|12.1.0.8.0||discoveryPlugin
oracle.sysman.emas|12.1.0.8.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||discoveryPlugin
oracle.sysman.oh|12.1.0.5.0||agentPlugin
oracle.sysman.db|12.1.0.8.0||agentPlugin

4,目标端停止agent

[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
You have new mail in /var/spool/mail/oracle
[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent is Not Running

5,旧OMS上删除目标(未做)

6,目标端修改hosts

[oracle@zg agent]$ su - root
Password:
[root@zg ~]# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.3  zg
10.1.1.2  em13cc

7,新的OMS上修改hosts

[root@em13cc ~]# vi /etc/hosts
添加:
10.1.1.3  zg

8,目标端移除agent instance home

[oracle@zg agent]$ pwd
/agent
[oracle@zg agent]$ ls
agentimage.properties  agent_inst  core  plugins  plugins.txt  plugins.txt.status  sbin
[oracle@zg agent]$ mv agent_inst del_agent_inst/
[oracle@zg agent]$ ls
agentimage.properties  core  del_agent_inst  plugins  plugins.txt  plugins.txt.status  sbin
(后续安装完成后,自行删除del_agent_inst目录)

9,目标端创建新的instance

[oracle@zg agent]$ core/12.1.0.5.0/sysman/install/agentDeploy.sh AGENT_BASE_DIR=/agent AGENT_INSTANCE_HOME=/agent/agent_inst AGENT_PORT=3872 OMS_HOST=gridcontrol EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=****** b_upgrade=false b_12cupgrade=false b_agentUpgrade=false b_noUpgrade=true -configOnly       Executing command : /agent/core/12.1.0.5.0/jdk/bin/java -classpath /agent/core/12.1.0.5.0/oui/jlib/OraInstaller.jar:/agent/core/12.1.0.5.0/oui/jlib/xmlparserv2.jar:/agent/core/12.1.0.5.0/oui/jlib/srvm.jar:/agent/core/12.1.0.5.0/oui/jlib/emCfg.jar:/agent/core/12.1.0.5.0/jlib/agentInstaller.jar:/agent/core/12.1.0.5.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /agent/core/12.1.0.5.0 core/12.1.0.5.0/sysman/install /agent /agent/agent_inst AGENT_BASE_DIR=/agentExecuting command: /agent/core/12.1.0.5.0/oui/bin/runConfig.sh ORACLE_HOME=/agent/core/12.1.0.5.0 RESPONSE_FILE=/agent/core/12.1.0.5.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Agent Configuration completed successfullyThe following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run/agent/core/12.1.0.5.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
Agent Deployment Successful.
Agent deployment log location: /agent/core/12.1.0.5.0/cfgtoollogs/agentDeploy/agentDeploy_2019-08-13_11-45-11-AM.log
Agent deployment completed successfully.
[oracle@zg agent]$ su - root
Password:
[root@zg ~]# /agent/core/12.1.0.5.0/root.sh
Finished product-specific root actions.
/etc exist

10,启动agent

[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Starting agent ............ started.
[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.5.0
OMS Version            : 13.3.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /agent/agent_inst
Agent Log Directory    : /agent/agent_inst/sysman/log
Agent Binaries         : /agent/core/12.1.0.5.0
Agent Process ID       : 69154
Parent Process ID      : 68823
Agent URL              : https://zg:3872/emd/main/
Local Agent URL in NAT : https://zg:3872/emd/main/
Repository URL         : https://gridcontrol:4903/empbs/upload
Started at             : 2019-08-13 11:48:00
Started by user        : oracle
Operating System       : Linux version 2.6.32-431.el6.x86_64 (amd64)
Last Reload            : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 79.07%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2019-08-13 11:48:04
Last successful heartbeat to OMS             : 2019-08-13 11:48:04
Next scheduled heartbeat to OMS              : 2019-08-13 11:49:08---------------------------------------------------------------
Agent is Running and Ready
[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl upload
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully

11,配置agent网络目标

[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl config agent addinternaltargets
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
[oracle@zg agent]$ ll /agent/agent_inst/sysman/log/
total 1596
-rw-r----- 1 oracle oinstall     42 Aug 13 11:47 agabend.log
-rw-r----- 1 oracle oinstall   1276 Aug 13 11:48 emagent.nohup
-rw-r----- 1 oracle oinstall     19 Aug 13 11:47 emagent.nohup.lr
-rw-r----- 1 oracle oinstall  87010 Aug 13 11:59 emagent_perl.trc
-rw-r----- 1 oracle oinstall      0 Aug 13 11:47 emctlLockFile.lck
-rw-r----- 1 oracle oinstall  16069 Aug 13 11:59 emctl.log
-rw-r----- 1 oracle oinstall 656455 Aug 13 11:58 emdctlj.log
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_ajts.log
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_errors.log
-rw-r----- 1 oracle oinstall 813000 Aug 13 12:00 gcagent.log
-rw-r----- 1 oracle oinstall    968 Aug 13 11:59 gcagent_mdu.log
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_opss_cfg.log.0
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_opss_cfg.log.0.lck
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_opss.log.0
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_opss.log.0.lck
-rw-r----- 1 oracle oinstall    121 Aug 13 11:48 gcagent_pfu.log
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_sdk.trc
-rw-r----- 1 oracle oinstall      0 Aug 13 11:45 gcagent_targetinstaller.log
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_wsm.log.0
-rw-r----- 1 oracle oinstall      0 Aug 13 11:48 gcagent_wsm.log.0.lck
-rw-r----- 1 oracle oinstall      0 Aug 13 11:47 patchAgtStPlugin.log
-rw-r----- 1 oracle oinstall    492 Aug 13 11:48 patchList.info
-rw-r----- 1 oracle oinstall   6921 Aug 13 11:45 secure.log
-rw-r----- 1 oracle oinstall   9099 Aug 13 11:48 startup.info
drwxr----- 5 oracle oinstall   4096 Aug 13 11:59 targets
[oracle@zg agent]$ $AGENT_INSTANCE_HOME/bin/emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
[zg, host]
[zg:3872, oracle_emd]
[agent12c1_3_zg, oracle_home]
You have new mail in /var/spool/mail/oracle

Oracle Enterprise Manager Cloud Control 13c 配置——Linux目标重定向(EMCC12c代理升级EMCC13c)相关推荐

  1. Oracle Enterprise Manager Cloud Control 13c 配置——设置页面不失效

    默认情况下Oracle Enterprise Manager Cloud Control 13c   数据库控件的会话超时为45分钟. 这意味着,如果HTTP客户机会话空闲45分钟或更长时间,它将断开 ...

  2. Oracle Enterprise Manager Cloud Control 13c部署文档

    一.软件准备 名称 版本号 软件包 OS 7.6 CentOS Linux release 7.6.1810 (Core) Oracle Database 19c 19.3 LINUX.X64_193 ...

  3. Oracle Enterprise Manager Cloud Control 13c部署文档(二)——LINUX添加目标代理

    在EMCC13c中部署agent的方法分两种,一种是通过EMCC13c的控制台通过ssh直接把agent"推送"安装到被管理端.这样的方法在linux平台的OMS和被管理端比较简单 ...

  4. 使用 Oracle Enterprise Manager Cloud Control 12c 安装和管理 Oracle Data Guard

    2019独角兽企业重金招聘Python工程师标准>>> 使用 Oracle Enterprise Manager Cloud Control 12c 安装和管理 Oracle Dat ...

  5. Oracle Enterprise Manager Cloud Control最新文档合集

    2019独角兽企业重金招聘Python工程师标准>>> Oracle Enterprise Manager Cloud Control最新文档合集 Oracle企业管理器系列产品为当 ...

  6. 安装Oracle Enterprise Manager Cloud Control 客户端

    把Cloud Control Server的ip加入解析: root@datagard121-2 oracle]# cat $_ 127.0.0.1 localhost localhost.local ...

  7. oracle linux7.9安装 Oracle Enterprise Manager Cloud Control13.5

    本章介绍如何在使用现有的.经过认证的 Oracle 数据库来存储 Oracle 管理信息库(管理信息库)的同时安装新的企业管理器系统. 安装软件下载 Oracle Enterprise Manager ...

  8. 快速部署Enterprise Manager Cloud Control 12c(12.1) Agent

    在<OEL 5上快速部署Enterprise Manager Cloud Control 12c(12.1)>中我介绍了如何安装配置Oracle Enterprise Manager Cl ...

  9. Enterprise Manager Cloud Control 安装

    参考文件: https://docs.oracle.com/cd/cloud-control-13.3/index.htm 软件需求: 系统版本: Red Hat Enterprise Linux S ...

最新文章

  1. OSPF-LSA数据包头
  2. The Illustrated Transformer:中英文(看原文,很多翻译是错误的)
  3. Js Array数组ES5/ES6常用方法
  4. python调用可执行文件
  5. 【MFC】Windows窗口样式
  6. 数据湖之iceberg系列(四)iceberg-spark编程
  7. python代码书写_Python代码的优雅写法,让代码更简洁
  8. Spring_01 spring容器、控制反转(IOC)、依赖注入(DI)
  9. 如何在 NET 程序万种死法中有效的生成 Dump (下)
  10. linear在HTML的作用,CSS3里的linear-gradient()函数
  11. SurvivalShooter学习笔记(八.敌人管理器)
  12. excel数据平均分配给多人_excel表格 怎样均分数据-用Excel怎么才能将组数据平均分配给几个人...
  13. cmd中输入net start mysql 提示:服务名无效或者MySQL正在启动 MySQL无法启动
  14. win10远程关机命令
  15. 如何在ionic官网打包自己的App
  16. 科学网—世界上最神奇的30个经典定律——读书笔记 - 贾琳的博文 http://blog.sciencenet.cn/blog-455749-859616.html
  17. 复合文档格式(一)- Excel XLS文件格式
  18. python 实现自动化点击界面方案
  19. 云主机搭建Git服务器
  20. java与sqlserver 2008_Java连SqlServer 2008

热门文章

  1. 计算机硬件评分系统,win7系统使用自带windows体验指数给计算机硬件评分的操作方法...
  2. Lotus产品组合-单页
  3. JQuery的45个经典插件应用
  4. EQ笔记1-什么叫均衡器-百度百科 转载
  5. 海南大学软件工程考研复试经验分享
  6. 最强.NET SQLServer 操作类 SqlExecuteXY 源代码发布 使用教程文档
  7. 聊一聊游戏服务器架构设计-聊天功能的那些事
  8. 《精通数据仓库设计》中英对照_第三章
  9. 黑色遮罩引导蒙版 CSS实现方式
  10. 云栖科技评论第72期:医疗AI,医疗健康产业的“核按钮”