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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 关于ASIC、CPLD和FPGA介绍

    关于ASIC、CPLD和FPGA介绍关于ASIC、CPLD和FPGA介绍ASIC(ApplicationSpecificIntergratedCircuits)即专用集成电路,是指应特定用户要求和特定电子系统的需要而设计、制造的集成电路。目前用CPLD(复杂可编程逻辑器件)和FPGA(现场可编程逻辑阵列)来进行ASIC设计是最为流行的方式之一,它们的共性是都具有用户现场可编程特性,都支持边界扫描技术,但两者在集成度、速

    2022年5月4日
    60
  • 第十五篇 Python之文件处理

    第十五篇 Python之文件处理一文件操作计算机系统分为:计算机硬件,操作系统,应用程序三部分。我们用python或其他语言编写的应用程序若想要把数据永久保存下来,必须要保存于硬盘中,这就涉及到应用程序要操作硬件,众所周知,应

    2022年7月5日
    19
  • goland 2021.3.1激活破解方法「建议收藏」

    goland 2021.3.1激活破解方法,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月15日
    845
  • Vue 实例之数据绑定,事件,组件,生命周期!!![通俗易懂]

    Vue 实例之数据绑定,事件,组件,生命周期!!![通俗易懂]今天写了34个例子,希望通过这些例子和效果图,帮助大家了解和使用Vue的数据绑定,Vue事件,Vue组件,Vue生命周期。文章写的非常详细,一看就能看懂。如果有问题,可以即时指正,十分感谢~

    2022年10月30日
    0
  • 解决Pycharm和pip都安装TensorFlow失败的问题(Windows 10)

    解决Pycharm和pip都安装TensorFlow失败的问题(Windows 10)pip报错:Couldnotfindaversionthatsatisfiestherequirementtensorflow(fromversions:)NomatchingdistributionfoundfortensorflowPycharm报错:Erroroccuredwheninstallingpackage‘tensorflow’解决…

    2022年8月26日
    2
  • Web.xml配置说明

    Web.xml配置说明1. web.xml配置详解:     <web-app> <!–指定WEB应用的名字–> <display-name>MyWeb</display-name> <!–WEB应用描述信息–> <description>MyWeb demo</description&gt

    2022年6月17日
    28

发表回复

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

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