• <ul id="mayc0"></ul>
    <ul id="mayc0"><center id="mayc0"></center></ul>
    <strike id="mayc0"><input id="mayc0"></input></strike>
    <ul id="mayc0"></ul>
  • 始創于2000年 股票代碼:831685
    咨詢熱線:0371-60135900 注冊有禮 登錄
    • 掛牌上市企業
    • 60秒人工響應
    • 99.99%連通率
    • 7*24h人工
    • 故障100倍補償
    您的位置: 網站首頁 > 幫助中心>文章內容

    Oracle EM Grid Control 11g問題之EMD upload失敗

    發布時間:  2012/7/28 18:00:56

    在OEM 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,請參考此文http://www.linuxidc.com/Linux/2012-06/61632.htm

    這個問題如何解決呢?

    首先,我在監控服務器上,也就是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.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

    請注意這一行

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

    codb1.htsc.com.cn:3872 就是這些參數的值。在sqlplus 中以sysman 用戶登錄資料庫,執行

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

    執行過程如下:

    /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.

     

     

    接著,我們到監控端服務器上去清理一些文件

    進入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 。

    本篇文章來源于 Linux公社網站(www.linuxidc.com)  原文鏈接:http://www.linuxidc.com/Linux/2012-06/61633.htm


    本文出自:億恩科技【www.vbseamall.com】

    服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經營性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經營性ICP/ISP證:贛B2-20080012
  • 服務器/云主機 24小時售后服務電話:0371-60135900
  • 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
  • 專注服務器托管17年
    掃掃關注-微信公眾號
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
      0
     
     
     
     

    0371-60135900
    7*24小時客服服務熱線