`
mikixiyou
  • 浏览: 1086491 次
  • 性别: Icon_minigender_1
  • 来自: 南京
博客专栏
C3c8d188-c0ab-3396-821d-b68331e21226
Oracle管理和开发
浏览量:349459
社区版块
存档分类
最新评论

em agent emctl upload报OMS version not checked yet错

阅读更多

Oracle EM grid control 11g 安装完成后,在一个监控服务器上重装 agent 一下, agent 就不能工作了。

使用 emctl upload 检查时报错为 ”EMD upload error: uploadXMLFiles skipped” 。如下所示:

 

[oracle@codb2 ~]$ emctl upload

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.    All rights reserved.

---------------------------------------------------------------

EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors.

 

 

这是 Oracle EM Grid Control 11g 安装指导 一文中介绍的安装 EM GRID CONTROL 11G 结束后,配置 agent 时出现的问题。如果你需要知道如何去安装配置 grid control 11g ,请参考此文。

miki 西游的文档 , 原文链接 : http://mikixiyou.iteye.com/blog/1545847 ,转载请著名作者和出处)

 

这个问题如何解决呢?

 

首先,我在监控服务器上,也就是 codb2 服务器上使用 emctl verifykey 校验一下。发现是 OMS 将这个 agent block 了。

[oracle@codb2 ~]$ emctl verifykey

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.    All rights reserved.

 

-----------------------------------------------------

verifykey: Successfully Completed communication with agent

EMD pingOMS error: Invalid ping response "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"

那么,我就去 OEM grid control 11g 的控制台上去解决这个 block

在控制台主目录中,选择未知的对象,代理重新同步,不成功。报错如下:

代理操作已完成 ,   但出现错误。对于那些无法保存的目标 ,   请转至目标的监视配置页以保存它们。已成功保存所有其他目标。仍未取消阻止代理。

与代理通信时出错。异常错误消息   - oracle.sysman.emSDK.emd.comm.CommException: IOException in reading Response :: Connection reset “

在界面操作上没办法去取消这个代理了。于是乎,我们登录 grid control 的资料库中,去直接修改配置信息。

使用函数 mgmt_admin.cleanup_agent('host:port');   去清理这个 agent

参数 host port 的值从监控端服务器中使用 emctl status agent 输出信息中取得。

详细信息如下:

 

[oracle@codb1 ~]$ emctl status agent

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.    All rights reserved.

---------------------------------------------------------------

Agent Version       : 11.1.0.1.0

OMS Version         : 11.1.0.1.0

Protocol Version    : 11.1.0.0.0

Agent Home          : /u01/app/oracle/product/10.2.0/oms/agent11g/codb1.xxyy.com.cn

Agent binaries      : /u01/app/oracle/product/10.2.0/oms/agent11g

Agent Process ID    : 21727

Parent Process ID : 21673

Agent URL           : https://codb1.xxyy.com.cn:3872/emd/main

Repository URL      : https://htwebapp1:4900/em/upload

Started at          : 2012-05-31 15:54:52

Started by user     : oracle

Last Reload         : 2012-05-31 16:05:04

Last successful upload                         : 2012-05-31 16:10:07

Total Megabytes of XML files uploaded so far :       0.39

Number of XML files pending upload             :          0

Size of XML files pending upload(MB)           :       0.00

Available disk space on upload filesystem      :      44.51%

Last successful heartbeat to OMS               : 2012-05-31 16:22:05

---------------------------------------------------------------

Agent is Running and Ready

 

请注意这一行

Agent URL           :https://codb1.xxyy.com.cn:3872/emd/main

codb1.xxyy.com.cn:3872 就是这些参数的值。在 sqlplus 中以 sysman 用户登录资料库,执行

execute mgmt_admin.cleanup_agent('codb1.xxyy.com.cn:3872');

 

执行过程如下:

/u01/oracle/home@webdg2=>emrep$sqlplus sysman/xxyy2012

 

SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 31 17:15:54 2012

 

Copyright (c) 1982, 2007, Oracle.    All Rights Reserved.

 

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, OLAP, Data Mining

and Real Application Testing options

 

SQL> execute mgmt_admin.cleanup_agent('codb1.xxyy.com.cn:3872');

 

PL/SQL procedure successfully completed.

 

 

接着,我们到监控端服务器上去清理一些文件

进入 grid control 的安装目录,执行下列命令。

rm -r ./sysman/emd/state/*

rm -r ./sysman/emd/collection/*

rm -r ./sysman/emd/upload/*

rm ./sysman/emd/lastupld.xml

rm ./sysman/emd/agntstmp.txt

rm ./sysman/emd/blackouts.xml

rm ./sysman/emd/protocol.ini

 

最后重新配置一下 agent

emctl clearstate agent

emctl secure agent

emctl start agent

 

这一切都执行完成后,检查 emctl upload 是不是正常了。

[oracle@codb1 ~]$ emctl upload

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.    All rights reserved.

---------------------------------------------------------------

EMD upload completed successfully

执行结果显示已 OK

miki 西游的文档 , 原文链接 : http://mikixiyou.iteye.com/blog/1545847 ,转载请著名作者和出处)

 

分享到:
评论

相关推荐

    使用EM12C实现DBaa服务

    。Oracle Enterprise Manager 12c 提 供的云服务作为一项开创性的技术,通过满足各种多租户架构的资源池模型,让企业用户自 助部署 IT 资源。数据库即服务 (DBaaS) 是一种范式,最终用户(DBA、开发人员、QA 工 ...

    oracle10g10204or05-em无法启动解决办法

    3、应用patch成功后,重新配置em dbconsole cmd>emctl secure dbconsole -reset 根据提示输入管理员密码,然后会有两次确认请求,两次都是输入大写的Y 4、重新启动dbconsole cmd>emctl start dbconsole 当然,如果...

    oracle10g em 重新配置

    oracle10g em 重新配置 emca -repos drop emca -repos create 建议 emca -repos recreate (当时用create 出现莫名错误,但没注意错误日志) emca -config dbcontrol db emca -config dbcontrol db emctl stop ...

    【OEM】OEM安装维护.pdf

    【OEM】OEM安装维护.pdf【OEM】OEM安装维护.pdf【OEM】OEM安装维护.pdf

    Oracle安装单机后自启动参数配置.txt

    # if the executables do not exist -- display error if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ] then echo "Oracle startup: cannot start" exit 1 fi # depending on parameter -- startup, ...

    Linux部署服务器常用命令.doc

    passwd stie2012 设置密码 chmod 777 abc.txt 777读写执行 4 2 1 chown oracl用户名:oinstall abc.txt 所有者 jdk的话 安装 java -version 查看jdk版本 emctl start dbconsole 启动控制台管理 unzip aa.zip ZIP 解...

    Enterprise Manage 配置成功,出现以下警告:

    Enterprise Manage 配置成功,出现以下警告: 启动 Database Control 时出错。请执行以下命令。 1)将环境变量 ORACLE_UNQNAME设置为...2)C:\app\Administrator\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole

    oracle 11g安装配置

    控制器emctl:开启、关闭OEM平台,默认端口1158 [oracle@dbserver ~]$ lsnrctl status [oracle@dbserver ~]$ emctl stop dbconsole [oracle@dbserver ~]$ dbshut $ORACLE_HOME [oracle@dbserver ~]$ dbstart $...

    端口扫描工具

    ORACLE EMCTL,默认的端口号为1158; Oracle XDB( XML 数据库),默认的端口号为8080; Oracle XDB FTP服务,默认的端口号为2100; MS SQL*SERVER数据库server,默认的端口号为1433/tcp 1433/udp; MS SQL*SERVER...

    oracle 10g OEM常规错误(Unknown host specified)解决

    重装了笔记本上的oracle,安装完成后,可以正常...使用命令行如下: 代码如下: C:/Users/Administrator>set ORACLE_SID=TEST C:/Users/Administrator>emctl stop dbconsol Oracle Enterprise Manager 10g Database Cont

    Oracle中手动删除数据库教程

    在很多情况下,或无法使用dbca工具的时候,我们需要手动来删除数据库。对此,可以借助drop database命令来实现,下面的描述中给出... $ emctl stop dbconsole    2.获得数据文件,日志文件及控制文件的相关信息,

    oracle rac日常基本维护命令

    $ emctl start dbconsole 使用 SRVCTL 启动/停止所有实例 启动/停止所有实例及其启用的服务。我只是觉得有意思就把此步骤作为关闭所有实例的一种方法加进来了! $ srvctl start database -d orcl $ srvctl ...

Global site tag (gtag.js) - Google Analytics