首页 > 代码库 > EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
今天想通过手动的方式上传下信息到GRID CONTROL MANAGEMENT REPOSITORY里,出现如下的错误(红色部分):
[oracle@vmoel5u4 bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /u01/app/oracle/product/10.2.0/agent10g
Agent binaries : /u01/app/oracle/product/10.2.0/agent10g
Agent Process ID : 4254
Parent Process ID : 4239
Agent URL : http://vmoel5u4.oracle.com:3872/emd/main/
Repository URL : http://even.oracle.com:4889/em/upload/
Started at : 2012-12-03 20:12:41
Started by user : oracle
Last Reload : 2012-12-03 21:42:59
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 508
Size of XML files pending upload(MB) : 24.03
Available disk space on upload filesystem : 54.38%
Last attempted heartbeat to OMS : 2012-12-04 00:10:18
Last successful heartbeat to OMS : unknown
---------------------------------------------------------------
Agent is Running and Ready
[oracle@vmoel5u4 bin]$ ./emctl upload
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
具体的解决方法如下 :
步骤一,查看客户端的AGENT服务是否启动:
[oracle@vmoel5u4 bin]$ $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /u01/app/oracle/product/10.2.0/agent10g
Agent binaries : /u01/app/oracle/product/10.2.0/agent10g
Agent Process ID : 4254
Parent Process ID : 4239
Agent URL : http://vmoel5u4.oracle.com:3872/emd/main/
Repository URL : http://even.oracle.com:4889/em/upload/
Started at : 2012-12-03 20:12:41
Started by user : oracle
Last Reload : 2012-12-03 21:42:59
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 508
Size of XML files pending upload(MB) : 24.03
Available disk space on upload filesystem : 54.38%
Last attempted heartbeat to OMS : 2012-12-04 00:10:18
Last successful heartbeat to OMS : unknown
---------------------------------------------------------------
Agent is Running and Ready
从上面的Agent is Running and Ready就知道,客户端的agent是正常的。
步骤二:查看服务器端的OMS 服务是否都正常。
[oracle@even bin]$ cd $OMS_HOME/opmn/bin
[oracle@even bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.even.oracle.com
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 0 | NONE
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | 3634 | Alive
OC4J | home | 3635 | Alive
OC4J | OC4J_EM | 3638 | Alive
OC4J | OC4J_EMPROV | 3636 | Alive
WebCache | WebCache | 3648 | Alive
WebCache | WebCacheAdmin | 3633 | Alive
从上面的红色部分可以看出HTTP_SERVER服务是不正常的,他的状态既然是NONE。
步骤三:关闭OMS的所有服务。
[oracle@even bin]$ ./opmnctl stopall
opmnctl: stopping opmn and all managed processes...
步骤四:重新启动所有服务如下:
[oracle@even bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
[oracle@even bin]$ ./opmnctl status
Processes in Instance: EnterpriseManager0.even.oracle.com
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 32125 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 32126 | Alive
OC4J | OC4J_EM | 32129 | Alive
OC4J | OC4J_EMPROV | 32131 | Alive
WebCache | WebCache | 32164 | Alive
WebCache | WebCacheAdmin | 32132 | Alive
从上面可以看出HTTP_SERVER现在是Alive的状态了。此状态时正常的。
步骤5,重新从客户端上传信息
[oracle@vmoel5u4 bin]$ ./emctl upload
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
[oracle@vmoel5u4 bin]$ ./emctl upload
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
步骤6,查看下信息是否上传成功:
[oracle@vmoel5u4 bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /u01/app/oracle/product/10.2.0/agent10g
Agent binaries : /u01/app/oracle/product/10.2.0/agent10g
Agent Process ID : 4254
Parent Process ID : 4239
Agent URL : http://vmoel5u4.oracle.com:3872/emd/main/
Repository URL : http://even.oracle.com:4889/em/upload/
Started at : 2012-12-03 20:12:41
Started by user : oracle
Last Reload : 2012-12-03 21:42:59
Last successful upload : 2012-12-04 00:43:27
Total Megabytes of XML files uploaded so far : 24.50
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 54.47%
Last successful heartbeat to OMS : 2012-12-04 00:45:07
---------------------------------------------------------------
Agent is Running and Ready
从上面的红色的部分可以看出信息上传成功(pending upload = 0)。
从这个案例可以看出如果OMS的某些重要的服务不正常的话,可能会有一些奇怪的错误。