Oracle EM Grid Control 11g問題之EMD upload失敗 |
發(fā)布時(shí)間: 2012/7/28 18:00:56 |
在OEM grid control 11g 安裝完成后,在一個(gè)監(jiān)控服務(wù)器上重裝agent 一下,agent 就不能工作了,使用emctl upload檢查時(shí)報(bào)錯(cuò)為”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安裝指導(dǎo) 一文中介紹的安裝EM GRID CONTROL 11G結(jié)束后,配置agent時(shí)出現(xiàn)的問題。如果你需要知道如何去安裝配置grid control 11g,請(qǐng)參考此文http://www.linuxidc.com/Linux/2012-06/61632.htm。 這個(gè)問題如何解決呢? 首先,我在監(jiān)控服務(wù)器上,也就是codb2 服務(wù)器上使用emctl verifykey 校驗(yàn)一下。發(fā)現(xiàn)是OMS 將這個(gè)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 的控制臺(tái)上去解決這個(gè)block 。 在控制臺(tái)主目錄中,選擇未知的對(duì)象,代理重新同步,不成功。報(bào)錯(cuò)如下: “代理操作已完成, 但出現(xiàn)錯(cuò)誤。對(duì)于那些無法保存的目標(biāo), 請(qǐng)轉(zhuǎn)至目標(biāo)的監(jiān)視配置頁以保存它們。已成功保存所有其他目標(biāo)。仍未取消阻止代理。 與代理通信時(shí)出錯(cuò)。異常錯(cuò)誤消息 - Oracle.sysman.emSDK.emd.comm.CommException: IOException in reading Response :: Connection reset “ 在界面操作上沒辦法去取消這個(gè)代理了。于是乎,我們登錄grid control 的資料庫中,去直接修改配置信息。 使用函數(shù)mgmt_admin.cleanup_agent('host:port'); 去清理這個(gè)agent 。 參數(shù)host 和port 的值從監(jiān)控端服務(wù)器中使用emctl status agent 輸出信息中取得。 詳細(xì)信息如下: [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.htsc.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.htsc.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 請(qǐng)注意這一行 Agent URL :https://codb1.htsc.com.cn:3872/emd/main codb1.htsc.com.cn:3872 就是這些參數(shù)的值。在sqlplus 中以sysman 用戶登錄資料庫,執(zhí)行 execute mgmt_admin.cleanup_agent('codb1.htsc.com.cn:3872'); 執(zhí)行過程如下: /u01/Oracle/home@webdg2=>emrep$sqlplus sysman/htzq2012
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.htsc.com.cn:3872');
PL/SQL procedure successfully completed.
接著,我們到監(jiān)控端服務(wù)器上去清理一些文件 進(jìn)入grid control 的安裝目錄,執(zhí)行下列命令。 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
這一切都執(zhí)行完成后,檢查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 執(zhí)行結(jié)果顯示已OK 。 本篇文章來源于 Linux公社網(wǎng)站(www.linuxidc.com) 原文鏈接:http://www.linuxidc.com/Linux/2012-06/61633.htm 本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |