记录一下在Oracle Enterprise Linux 4.8上部署安装Grid Control的过程。
Grid Control需要有自己的数据库用来存放管理数据,此处我们使用已经建立好的数据库实例来安装Grid Control。
GC安装在ocmdb2主机上,GC的repository database已经事先在ocmdb1主机上上安装完毕。
1.调整repository database数据库
1)数据库参数调整
参考《【GC】安装GC之前需要调整的几个参数》(http://space.itpub.net/519536/viewspace-667627)
SQL> alter system set session_cached_cursors = 201 scope=spfile;
SQL> alter system set job_queue_processes = 11 scope=spfile;
SQL> alter system set open_cursors = 301 scope=spfile;
2)执行脚本dbmspool.sql脚本
@?/rdbms/admin/dbmspool
脚本注释信息如下:
rem
rem $Header: dbmspool.sql 15-jun-99.08:54:18 mjungerm Exp $
rem
Rem Copyright (c) 1991, 1996, 1997, 1998, 1999 by Oracle Corporation
Rem NAME
Rem dbmspool.sql - dbms_shared_pool utility package.
Rem DESCRIPTION
Rem This package allows you to display the sizes of objects in the
Rem shared pool, and mark them for keeping or unkeeping in order to
Rem reduce memory fragmentation.
3)解锁DBSNMP用户
SQL> alter user DBSNMP identified by oracle1 account unlock;
2.检查/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.190.32 ocmdb2.localdomain ocmdb2
192.168.190.31 ocmdb1.localdomain ocmdb1
3.GC安装过程
1)root用户下执行“xhost +”命令保证图形化安装界面可以启动
[root@ocmdb2 ~]# xhost +
access control disabled, clients can connect from any host
2)切换到oracle用户进行安装
[root@ocmdb2 ~]# su - oracle
[oracle@ocmdb2 ~]$ cd /hsw_media/Disk1/
[oracle@ocmdb2 Disk1]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, redhat-4, redhat-5, redhat-5.1, SuSE-9, SuSE-10, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
3)这里选择“Enterprise Manager 10g Grid Control Using an Existing Database”选项,点击“Next”
4)修改Parent Directory内容为“/u01/app/oracle/OracleHomes”,点击“Next”
5)系统自动完成先决条件的检查,确保无误,点击“Next”
6)提供事先准备好的Repository Database的基本信息,点击“Next”
注意:下面表空间的位置需要重点修改一下,保证Repository Database所在的主机上存在相应的目录!
7)其他可选配置页,这里保持默认,不进行配置,点击“Next”
8)密码安全设定,设置完成后,点击“Next”
注意:给定的密码要求至少是5位,并且需要包含数字,我们这里统一设置为“oracle1”!
9)安装配置总结页面,确保无误后点击“Install”进行安装
10)安装完成后,需要在root用户下执行allroot.sh脚本,执行完成后点击“OK”进入到漫长的配置页面
[root@ocmdb2 ~]# sh /u01/app/oracle/OracleHomes/oms10g/allroot.sh
Starting to execute allroot.sh .........
Starting to execute /u01/app/oracle/OracleHomes/oms10g/root.sh ......
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/OracleHomes/oms10g
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 ...
Adding entry to /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 execution of /u01/app/oracle/OracleHomes/oms10g/root.sh ......
Starting to execute /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]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
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.
Finished execution of /u01/app/oracle/OracleHomes/agent10g/root.sh ......
11)配置页面,这里是耗时,但是省心的无人值守的阶段,可以小憩一下
注意:一定要保证这个配置过程的完整和正确,否则会对使用产生重大的影响,如发现问题,按照提示查看报错日志中给出的内容。
可以使用“find . -cmin 1”命令辅助获得涉及到的安装日志文件。
12)配置结束界面。部署安装GC完成。
13)打开FireFox,地址栏中输入“http://ocmdb2.localdomain:4889/em”进入到Grid Control登陆页面
14)输入用户名“sysman”,密码“oracle1”进入到Grid Control的首页
15)点击“Targets”,因为没有添加其他Agent,此时只能看到本机的信息
4.小结
整个安装GC的过程比较耗时,请做好心理准备。需要配置的参数好一次性的设置正确,否则在报错后排查问题比较耗时。
Good luck.
secooler
10.07.09
-- The End --
【GC】OEL4.8部署安装 Grid Control OMS
分享好友
分享这个小栈给你的朋友们,一起进步吧。
订阅须知
• 所有用户可根据关注领域订阅专区或所有专区
• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询
• 专区发布评论属默认订阅所评论专区(除付费小栈外)