本文共 2369 字,大约阅读时间需要 7 分钟。
Oracle网格控制agent(即OMA)的安装方式有三种,一种是OUI方式安装,一种是使用静默方式安装,还有一种是使用agentDownload下载方式安装,本讲主要介绍使用OUI方式安装gc的agent。在开始之前请先配置好OMS和OMR,并做好OMA安装准备工作,参考oracle数据库快速安装指南!
OMS和OMR的安装参考:
环境介绍:
OMS操作系统版本:centos4.8 64位
OMS版本:10.2.0.3
OMS主机名:gc.yang.com
OMS地址:192.168.1.45/24
OMA操作系统版本:rhel5.4 64位
OMA版本:10.2.0.3
OMA主机名:primary.yang.com
OMS地址:192.168.1.51/24
一:开始安装
[oracle@primary Disk1]$ ./runInstaller
这里选择第4项,安装agent
在rhel5上面安装,这里会提示gnome-lib包没有安装,无视!
填写OMS的ip或者主机名以及端口
填写OMS服务器agent注册密码
执行脚本后点击“OK”按钮
- [root@primary ~]# /u01/app/oracle/OracleHomes/agent10g/root.sh
- Running Oracle10 root.sh script...
-
- The following environment variables are set as:
- ORACLE_OWNER= oracle
- ORACLE_HOME= /u01/app/oracle/OracleHomes/agent10g
-
- Enter the full pathname of the local bin directory: [/usr/local/bin]:
- Copying dbhome to /usr/local/bin ...
- Copying oraenv to /usr/local/bin ...
- Copying coraenv to /usr/local/bin ...
-
-
- Creating /etc/oratab file...
- Entries will be added to the /etc/oratab file as needed by
- Database Configuration Assistant when a database is created
- Finished running generic part of root.sh script.
- Now product-specific root actions will be performed.
- Finished product-specific root actions
安装完成后,agent将自动启动,发现OMS并注册
- [oracle@primary Disk1]$ /u01/app/oracle/OracleHomes/agent10g/bin/emctl status agent
- Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
- Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
- ---------------------------------------------------------------
- Agent Version : 10.2.0.3.0
- OMS Version : 10.2.0.3.0
- Protocol Version : 10.2.0.2.0
- Agent Home : /u01/app/oracle/OracleHomes/agent10g
- Agent binaries : /u01/app/oracle/OracleHomes/agent10g
- Agent Process ID : 9553
- Parent Process ID : 9515
- Agent URL : https://primary.yang.com:3872/emd/main/
- Repository URL : https://gc.yang.com:1159/em/upload
- Started at : 2011-09-26 20:33:44
- Started by user : oracle
- Last Reload : 2011-09-26 20:33:44
- Last successful upload : 2011-09-26 20:34:43
- Total Megabytes of XML files uploaded so far : 1.71
- Number of XML files pending upload : 0
- Size of XML files pending upload(MB) : 0.00
- Available disk space on upload filesystem : 59.49%
- Last successful heartbeat to OMS : 2011-09-26 20:34:50
- ---------------------------------------------------------------
- Agent is Running and Ready
二:OMS上操作
administration选项卡需要安装em wrapper scripts和yast才能使用!
可以看到详细的硬件信息,这里采用的是kvm虚拟机!
转载地址:http://euwda.baihongyu.com/