Pull方式安装网格控制器客户端及排错

Pull方式安装网格控制器客户端及排错

   网格控制器的客户端agent安装方式主要有OUI,COLNE,PUSH,PULL等几种,11g的版本的网格控制器agent不支持OUI方式安装,因而想要使用11g版本的OMA,需要采用后面三种方式安装!这三种方式当中,最快的应该是COLNE方式,其次是PULL方式,PUSH方式安装经过测试发现比较占用OMS服务器资源!本文介绍些如何在rhel5.4上使用PULL方式安装客户端agent,这种安装方法也叫做agentdownload方式!

PUSH方式安装请参考:http://ylw6006.blog.51cto.com/470441/775477

参考文档:
http://space.itpub.net/519536/viewspace-667753
http://gavinsoorma.com/2010/10/oracle-11g-grid-control-agent-deployment/
http://oracledb-admin.blogspot.jp/2011/05/gridcontrol-11g-agent-install-on-target.html

一:确定OMS正常运行,将agentdownload脚本发送到客户端上


  1. [oracle@ora11g ~]$ $OMS_HOME/bin/emctl status oms  
  2. Oracle Enterprise Manager 11g Release 1 Grid Control    
  3. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  4. WebTier is Up  
  5. Oracle Management Server is Up  
  6.  
  7. [oracle@ora11g ~]$ $AGENT_HOME/bin/emctl status agent  
  8. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  9. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  10. —————————————————————  
  11. Agent Version     : 11.1.0.1.0  
  12. OMS Version       : 11.1.0.1.0  
  13. Protocol Version  : 11.1.0.0.0  
  14. Agent Home        : /u01/app/oracle/Middleware/agent11g  
  15. Agent binaries    : /u01/app/oracle/Middleware/agent11g  
  16. Agent Process ID  : 16766  
  17. Parent Process ID : 16746  
  18. Agent URL         : https://ora11g.yang.com:3872/emd/main/  
  19. Repository URL    : https://ora11g.yang.com:4900/em/upload  
  20. Started at        : 2012-04-02 12:00:08  
  21. Started by user   : oracle  
  22. Last Reload       : 2012-04-02 12:00:33  
  23. Last successful upload                       : 2012-04-02 13:55:29  
  24. Total Megabytes of XML files uploaded so far :    13.90  
  25. Number of XML files pending upload           :        0  
  26. Size of XML files pending upload(MB)         :     0.00  
  27. Available disk space on upload filesystem    :    16.25%  
  28. Last successful heartbeat to OMS             : 2012-04-02 14:01:38  
  29. —————————————————————  
  30. Agent is Running and Ready  
  31.  
  32. [oracle@ora11g ~]$ scp $OMS_HOME/sysman/agent_download/11.1.0.1.0/linux_x64/agentDownload.linux_x64 192.168.1.49:/home/oracle 

二:在本例中客户端只安装数据库软件,未建库;在客户端上运行脚本进行安装


  1. [oracle@server49 ~]$ env |grep ORA   
  2. ORACLE_SID=orcl 
  3. ORACLE_BASE=/u01/app/oracle  
  4. ORACLE_HOME=/u01/app/oracle/product/10.2.0/db1  
  5. [oracle@server49 ~]$ ps -ef |grep ora  
  6. root      1874  1852  0 13:59 ?        00:00:00 hald-addon-storage: polling /dev/hdc  
  7. root      2326  2295  0 14:00 pts/1    00:00:00 su – oracle  
  8. oracle    2327  2326  0 14:00 pts/1    00:00:00 -bash  
  9. oracle    2393  2327  0 14:03 pts/1    00:00:00 ps -ef  
  10. oracle    2394  2327  0 14:03 pts/1    00:00:00 grep ora  
  11.  
  12. [oracle@server49 ~]$ sh agentDownload.linux_x64 -b /u01/app/oracle -m ora11g.yang.com -r 4900 -y  
  13. ———————————————其他输出省略———————————  
  14. Provide the Agent Registration password so that the Management Agent can communicate with Secure Management Service.  
  15. Note: You may proceed with the installation without supplying the password; however, Management Agent can be secured manually after the installation.  
  16. If Oracle Management Service is not secured, agent will not be secured, so continue by pressing Enter Key.  
  17.  
  18. Enter Agent Registration Password: (此处输入密码)  
  19.  
  20. ———————————————其他输出省略———————————  
  21. Configuration assistant “Agent Add-on Plug-in” Succeeded  
  22. Querying Agent status: Agent is running  
  23. Removing the copied stuff…..  
  24. Removed: /home/oracle/agentDownload11.1.0.1.0Oui/oui_linux_x64.jar  
  25. Removed: /home/oracle/agentDownload11.1.0.1.0Oui/agent_download.rsp  
  26. Removed:/home/oracle/agentDownload11.1.0.1.0Oui/Disk1  
  27. Log name of installation can be found at: “/u01/app/oracle/agentDownload.linux_x64040212140600.log”  
  28. /u01/app/oracle/agent11g/root.sh needs to be executed by root to complete this installation.  
  29.  
  30. [root@server49 ~]# /u01/app/oracle/agent11g/root.sh 

三:验证安装后,在客户端上建库测试


  1. [oracle@server49 ~]$ /u01/app/oracle/agent11g/bin/emctl status agent  
  2. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  3. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  4. —————————————————————  
  5. Agent Version     : 11.1.0.1.0  
  6. OMS Version       : 11.1.0.1.0  
  7. Protocol Version  : 11.1.0.0.0  
  8. Agent Home        : /u01/app/oracle/agent11g  
  9. Agent binaries    : /u01/app/oracle/agent11g  
  10. Agent Process ID  : 5798  
  11. Parent Process ID : 5780  
  12. Agent URL         : https://server49.yang.com:3872/emd/main/  
  13. Repository URL    : https://ora11g.yang.com:4900/em/upload  
  14. Started at        : 2012-04-02 14:12:25  
  15. Started by user   : oracle  
  16. Last Reload       : 2012-04-02 14:12:25  
  17. Last successful upload                       : 2012-04-02 14:13:08  
  18. Total Megabytes of XML files uploaded so far :     2.11  
  19. Number of XML files pending upload           :        0  
  20. Size of XML files pending upload(MB)         :     0.00  
  21. Available disk space on upload filesystem    :    42.34%  
  22. Last successful heartbeat to OMS             : 2012-04-02 14:13:26  
  23. —————————————————————  
  24. Agent is Running and Ready 

Pull方式安装网格控制器客户端及排错 

Pull方式安装网格控制器客户端及排错 

Pull方式安装网格控制器客户端及排错 

Pull方式安装网格控制器客户端及排错

四:排错示例
1:在另外一台服务器上同样的方式安装完agent后,发现启动agent报错如下


  1. [oracle@dg1 ~]$ /u01/app/oracle/agent11g/bin/emctl secure agent  
  2. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  3. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  4. Agent is already stopped…   Done.  
  5. Securing agent…   Started.  
  6. Enter Agent Registration Password :   
  7. Securing agent…   Successful.  
  8.  
  9. [oracle@dg1 ~]$ /u01/app/oracle/agent11g/bin/emctl status  agent  
  10. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  11. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  12. —————————————————————  
  13. Agent is Not Running  
  14. [oracle@dg1 ~]$ /u01/app/oracle/agent11g/bin/emctl start  agent  
  15. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  16. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  17. Starting agent ……. failed.  
  18. Failed to initialize the Fetchlet Manager.  
  19. Consult the log files in: /u01/app/oracle/agent11g/sysman/log 

2:查看日志后,猜想是由于该数据库服务器上存在EM的问题,因而删除EM,删除后,发现错误依旧!


  1. [oracle@dg1 log]$ pwd  
  2. /u01/app/oracle/agent11g/sysman/log  
  3.  
  4. [oracle@dg1 log]$ tail -2 emagent.trc   
  5. 2012-04-02 23:56:50,680 Thread-1109120944 ERROR fetchlets: Error when initializing C Logging Package for ECID generation.   
  6. 2012-04-02 23:56:50,680 Thread-1109120944 ERROR main: nmefmgr_initialize failed sh to initialize Fetchlet Manager  
  7.  
  8. [oracle@dg1 log]$ emca -deconfig dbcontrol db -repos drop  
  9. STARTED EMCA at Apr 2, 2012 11:59:30 PM  
  10. EM Configuration Assistant, Version 11.2.0.3.0 Production  
  11. Copyright (c) 2003, 2011, Oracle.  All rights reserved.  
  12.  
  13. Enter the following information:  
  14. Database SID: Database SID: dg1  
  15. Listener port number: 1521  
  16. Password for SYS user:    
  17. Password for SYSMAN user:    
  18. Password for SYSMAN user:    
  19. ———————————————————————-  
  20. WARNING : While repository is dropped the database will be put in quiesce mode.  
  21. ———————————————————————-  
  22. Do you wish to continue? [yes(Y)/no(N)]: y  
  23.  
  24. Apr 3, 2012 12:01:14 AM oracle.sysman.emcp.EMConfig perform  
  25. INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/dg/emca_2012_04_02_23_59_28.log.  
  26. Apr 3, 2012 12:01:15 AM oracle.sysman.emcp.util.DBControlUtil stopOMS  
  27. INFO: Stopping Database Control (this may take a while) …  
  28. Apr 3, 2012 12:01:19 AM oracle.sysman.emcp.EMReposConfig invoke  
  29. INFO: Dropping the EM repository (this may take a while) …  
  30. Apr 3, 2012 12:06:01 AM oracle.sysman.emcp.EMReposConfig invoke  
  31. INFO: Repository successfully dropped  
  32. Enterprise Manager configuration completed successfully  
  33. FINISHED EMCA at Apr 3, 2012 12:06:07 AM 

3:发现该服务器的主机名解析只是单纯使用DNS,未使用hosts文件


  1. [root@dg1 ~]# hostname  
  2. dg1.yang.com  
  3.  
  4. [root@dg1 ~]# cat /etc/hosts  
  5. # Do not remove the following line, or various programs  
  6. # that require network functionality will fail.  
  7. 127.0.0.1               localhost.localdomain localhost  
  8. ::1             localhost6.localdomain6 localhost6  
  9. 192.168.1.61    dg1.yang.com dg1  #(添加这行)  
  10.  
  11. 设置下ORACLE_UNQNAME变量,启动agent,居然奇迹般的正常了!  
  12. [oracle@dg1 log]$ export ORACLE_UNQNAME=dg1.yang.com  
  13. [oracle@dg1 log]$ /u01/app/oracle/agent11g/bin/emctl start  agent  
  14. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  15. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  16. Starting agent ……. started.  
  17.  
  18. [oracle@dg1 log]$ /u01/app/oracle/agent11g/bin/emctl status  agent  
  19. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0   
  20. Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.  
  21. —————————————————————  
  22. Agent Version     : 11.1.0.1.0  
  23. OMS Version       : 11.1.0.1.0  
  24. Protocol Version  : 11.1.0.0.0  
  25. Agent Home        : /u01/app/oracle/agent11g  
  26. Agent binaries    : /u01/app/oracle/agent11g  
  27. Agent Process ID  : 4641  
  28. Parent Process ID : 4623  
  29. Agent URL         : https://192.168.1.61:3872/emd/main/  
  30. Repository URL    : https://ora11g.yang.com:4900/em/upload  
  31. Started at        : 2012-04-03 00:15:20  
  32. Started by user   : oracle  
  33. Last Reload       : 2012-04-03 00:15:20  
  34. Last successful upload                       : 2012-04-03 00:16:13  
  35. Total Megabytes of XML files uploaded so far :     9.79  
  36. Number of XML files pending upload           :        0  
  37. Size of XML files pending upload(MB)         :     0.00  
  38. Available disk space on upload filesystem    :    57.22%  
  39. Last successful heartbeat to OMS             : 2012-04-03 00:16:25  
  40. —————————————————————  
  41. Agent is Running and Ready 

结论:在使用网格控制器agent的服务器上,本机主机名的解析在hosts文件中必须指定;同一台服务器,可以同时使用EM和GC管理数据库
[root@dg1 ~]# nslookup dg1.yang.com
Server:         192.168.1.100
Address:        192.168.1.100#53

Name:   dg1.yang.com
Address: 192.168.1.61

参考:http://www.phppop.net/node/233

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/110439.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • app产品设计流程_APP流程图

    app产品设计流程_APP流程图App设计流程第一步、从APP产品需求入手,考虑我们到底要用什么主色调根据产品定位和目标用户群体选择主色调定好尺寸:设计尺寸是多大,是以640*1136设计还是750*1136还是1242*2208来设计。所有APP设计尺寸大小规范:http://www.25xt.com/appsize   第二步、配色和辅助色用什么颜色在考虑到产品气质和品牌色的同时,我们经常要考虑配合衬托产品主色调的辅助色…

    2022年8月30日
  • centos创建samba共享_docker共享目录

    centos创建samba共享_docker共享目录内容大纲:samba简介centos上部署samba服务samba服务的配置详解samba服务的共享资源部署samba服务的共享资源权限设置samba服务共享帐号映射一、介绍Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成。SMB(ServerMessagesBlock,信息服务块)是一种在局域网上共…

    2022年9月24日
  • Matlab中axis函数用法总结[通俗易懂]

    Matlab中axis函数用法总结[通俗易懂]axis主要是用来对坐标轴进行一定的缩放操作,其操作命令主要如下:1、axis([xminxmaxyminymax])设置当前坐标轴x轴和y轴的限制范围2、axis([xminxmaxyminymaxzminzmaxcmincmax])设置x,y,z轴的限制范围和色差范围。3、v=axis返回一个行向量,记录了坐标范围4、axis…

    2022年6月14日
  • 代码解读器_网页代码解读

    代码解读器_网页代码解读0写在前面在对STN的原论文进行了翻译、理解后,我打算去github上运行下源码,以加深对ST的理解。毕竟,talkischeap,showmethecode!此外,虽然论文作者发布是tf的源码,但由于我对tensorflow不如pytorch熟稔,因此这里我只看了pytorch官网复现的STN代码。发现写得非常详细,很适合小白入门,因此我放弃了自己解读的机会,打算就搬运一下原教程哈哈。1具体教程注:以下内容均为复制/翻译,不过我在代码上加了点中文注释Spatialtransfor

    2022年10月7日
  • Emgucv环境配置[通俗易懂]

        Emgucv是在.NET平台下使用OpenCV视觉库的桥梁,在使用之前需要对系统进行配置,其配置和OpenCV的配置有点不同。1、EmguCV下载下载网站:http://www.emgu.com/wiki/index.php/Main_Page该网站上有EmguCV的所有资料,包括教程。下载好之后,直接安装到电脑上,安装位置可任意。本文所配置的是EmguCV3.0.0版本。2、新建一个VS…

    2022年4月14日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号