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 

 

 

 

四:排错示例
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

本文转自斩月博客51CTO'博客,原文链接http://blog.51cto.com/ylw6006/824996如需转载请自行联系原作者


ylw6006

相关文章
|
4月前
|
程序员 数据处理 数据安全/隐私保护
Harmony 个人中心(页面交互、跳转、导航、容器组件)(上)
Harmony 个人中心(页面交互、跳转、导航、容器组件)(上)
|
4月前
|
API 索引 容器
Harmony 个人中心(页面交互、跳转、导航、容器组件)(下)
Harmony 个人中心(页面交互、跳转、导航、容器组件)(下)
|
4月前
|
前端开发
SSM整合-前后台协议联调(列表功能、添加功能、添加功能状态处理、修改功能、删除功能)
SSM整合-前后台协议联调(列表功能、添加功能、添加功能状态处理、修改功能、删除功能)
35 0
|
网络协议 数据库 数据安全/隐私保护
路由控制概述
为了保证网络的高效运行以及在路由重分布的时候避免次优路由或者路由环路,有必要 对路由更新进行控制,常用的方法有被动接口、默认路由、静态路由、路由映射表、分布列 表、前缀列表、偏移列表、Cisco IOS IP服务等级协议(SLA)和策略路由。在进行路径控制 时,可能是多种方法的组合。
212 0
路由控制概述
|
Java Linux 数据安全/隐私保护
将ABAP On-Premises系统连接到中央检查系统以进行自定义代码迁移
将ABAP On-Premises系统连接到中央检查系统以进行自定义代码迁移
122 0
将ABAP On-Premises系统连接到中央检查系统以进行自定义代码迁移
|
Web App开发 网络架构 Python
django框架--路由系统
目录 一、路由系统理解 二、路由系统功能划分 三、路由表创建 创建工具 二级路由 路由别名 动态路由及重定向 四、自定义错误页面 五、图示路由系统在框架中的定位 六、路由系统的进阶想法 一、路由系统理解 系统功能:根据用户访问的不同url,执行对应的视图函数。