当前位置:首页 > 开发 > 数据库 > 正文

Grid Control服务端看不到Agent相关信息,同时OMS状态为unknown处理

发表于: 2014-11-17   作者:czmmiao   来源:转载   浏览次数:
摘要: 一次Grid Control的agent是启动的,但是在GC服务端看不到相关信息,而且OMS端状态不正确问题处理过程。oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agentOracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. &n

一次Grid Control的agent是启动的,但是在GC服务端看不到相关信息,而且OMS端状态不正确问题处理过程。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 214
Parent Process ID : 1
Agent URL         : https://gd_rdb01:3872/emd/main/
Repository URL    : https://gd-adu03:1159/em/upload
Started at        : 2011-05-26 14:11:33
Started by user   : oraagent
Last Reload       : 2011-05-26 14:11:33
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :     1045
Size of XML files pending upload(MB)         :    50.07
Available disk space on upload filesystem    :    15.79%
Collection Status                            : Disabled by Upload Manager
Last attempted heartbeat to OMS              : 2011-07-18 11:25:02
Last successful heartbeat to OMS             : unknown
---------------------------------------------------------------
Agent is Running and Ready
----这里可以看到agent其实是不正常的:Last successful heartbeat to OMS             : unknown
尝试upload,结果报错:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

参看agent日志:
 2011-07-18 14:09:30,715 Thread-94 ERROR pingManager: Did not receive valid response to ping "ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository. This most likely means that the agent was reinstalled or recovered. Please contact an EM administrator to unblock the agent by performing an agent resync from the console. Please contact EM adminstrator to unblock the agent" 
 
在GC服务器上重新Resynchronize一下。
+ Navigate to Setup -> Agents -> Click on problematic Agent name 
+ In Agent home page click on "Resynchronize" Button on right hand top of the page. 
Choose the 'Unblock Agent' option and click Continue
Ensure that the Agent is up and running when attempting the Resynchronization.
Once the re-synchronization is completed successfully, the Agent should be able to communicate with the OMS.
结果报错如下:
The Oracle Management Server(OMS) has blocked this agent because it has either been reinstalled or restored from a filesystem backup. It appears that you 
have already run an Agent Resynchronization against this agent. Please correct any errors that may have occured during that resync, and then manually unblock 
the agent using the Unblock button below. 
  Agent Operation completed with errors. For those targets that could not be saved, please go to the target's monitoring configuration page to save them. All 
other targets have been saved successfully. Agent has not been unblocked. 
  Error saving target rpt_cog0:oracle_database - Skipping target {rpt_cog0, oracle_database}: Missing properties - password
  这里点击GC端的的unlock按钮。
  然后重新secure一下:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl stop agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl secure agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Agent is already stopped...   Done.
Securing agent...   Started.
Enter Agent Registration Password :           
Securing agent...   Successful.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl start agent 
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Starting agent ................ started.

在GC服务器上重新Resynchronize一下, 然后点击GC端的的unlock按钮。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 7859
Parent Process ID : 7809
Agent URL         : https://gd_rdb01:3872/emd/main/
Repository URL    : https://gd-adu03:1159/em/upload
Started at        : 2011-07-18 14:34:53
Started by user   : oraagent
Last Reload       : 2011-07-18 14:35:57
Last successful upload                       : 2011-07-18 14:42:09
Total Megabytes of XML files uploaded so far :    10.19
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    16.19%
Last successful heartbeat to OMS             : 2011-07-18 14:43:44
---------------------------------------------------------------
Agent is Running and Ready
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload 
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
参考文档:
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=799618.1
===========================End=======================================

 

参考至:http://blog.itpub.net/24930246/viewspace-1067207/

如有错误,欢迎指正

邮箱:czmcj@163.com

Grid Control服务端看不到Agent相关信息,同时OMS状态为unknown处理

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
2.GC OMS安装(第二台机器部署) 1. 配置图形化 [oracle@ocm2 ~]$ xhost + access control disabled
RAC启动后,crs_stat -t显示有两个resource的状态为unknown,如下: Oracle@RAC1 [/home/oracle] crs
3.GC Agent安装(第一台机器部署) 安装Agent 拷贝agent,现在ocm2机器上查找agent.linux 查找文件
$ORACLE_HOME/bin/lsnrctl start $ORACLE_HOME/bin/lsnrctl stop $ORACLE_HOME/bin/lsnrctl status
设置list control 中字体大小 LOGFONT logfont;//最好弄成类成员,全局变量,静态成员 CFont *pfont1
Oracle 12C的代理是企业管理云控制器的一部分,这个代理可以使您能够在企业系统中对主机的托管宿主进
Oracle 12C的代理是企业管理云控制器的一部分,这个代理可以使您能够在企业系统中对主机的托管宿主进
问题描述:当定单状态为完成时,在定单记录下没有出现创建按钮. 直接创建相关记录时,打开定单属性Look
我们开发完应用程序一般把JAVA程序和JDK放在一起安装运行,默认是非服务的,在WINDOWS上,基本上是
客户端口实际上就是从本机访问其它计算机服务时打开的源端口,最多的应用是上网,下面就以访问baidu
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号