Oracle 11g网格控制器安装指南

  先前对oracle 10g的网格控制器有着十分痛苦的使用经历,总是问题百出!先是安装需要打补丁,未升级前硬盘灯总是狂闪,然后CPU的I/O等待严重!  升级到10g的最高版本且在agent端安装好yast后,网格控制器的administration选项卡上只出现“系统服务”和“网络”两项!具体情况查看以下链接:
http://www.itpub.net/thread-1497851-1-1.html, 研究网格控制器的初衷就是为了简化rac和dg的管理,让我始料不及的是研究过程如此的一波三折,哎!看来有必要将学习的重点转移到11g上了,前几天 Oracle还出了12c版本的网格控制器呢,学无止境呐!废话不扯了,11g的网格控制器同10g的相比,区别很大,首先是从oc4j过渡到j2ee,需要独立安装中间件weblogic,麻烦事还一大堆…
 
环境介绍:
OMS操作系统版本:rhel5.4 64位
OMS版本:11.1.0.1.0
OMS服务器IP:192.168.1.55/24
OMS服务器名:grid5.yang.com

OMR操作系统版本:rhel5.4 64位
OMR数据库版本:11.2.0.1
OMR服务器IP:192.168.1.44/24  


一:安装准备工作
安装jdk和相关的rpm包,相关软件可以google下,或者在oracle官网上下载 

 [root@grid5 ~]# chmod +x jdk-6u18-linux-x64-rpm.bin
[root@grid5 ~]# ./jdk-6u18-linux-x64-rpm.bin
[root@grid5 ~]# rpm -qa |grep jdk
jdk-1.6.0_18-fcs
[root@grid5 ~]# yum -y install compat-*
[root@grid5 ~]# yum -y install sysstat numactl-devel libaio-devel

以下的rpm包都是要必须安装的:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
numactl-devel-0.9.8.x86_64
sysstat-7.0.2

调整内核参数
[root@grid5 ~]# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

调整系统资源使用限制
[root@grid5 ~]# grep 'limit' /etc/pam.d/login
session    required     pam_limits.so

[root@grid5 ~]# vi /etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
oracle              soft    stack   10240

添加用户和组,设定用户密码
[root@grid5 ~]# groupadd  dba
[root@grid5 ~]# groupadd  oinstall
[root@grid5 ~]# groupadd  oper
[root@grid5 ~]# useradd -g oinstall -G dba,oper oracle
[root@grid5 ~]# echo oracle |passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.

[root@grid5 ~]# mkdir /u01
[root@grid5 ~]# chown -R oracle.oinstall /u01
 

二:OMR数据库设置,oracle11g数据库的安装就不废话了,google一下,教程一大把!

 SQL> alter system set log_buffer=10485760 scope=spfile;
System altered.

SQL> alter system set processes=500 scope=spfile;
System altered.

SQL> alter system set session_cached_cursors=200 scope=spfile;
System altered.

SQL> shutdown immediate
SQL> startup
ORACLE instance started.

SQL> create undo tablespace undotbs2 datafile '/u01/app/oracle/oradata/ora11g/undotbs2.dbf' size 500M autoextend on maxsize 20G; 
Tablespace created.

SQL> alter system set undo_tablespace='UNDOTBS2';
System altered.

[oracle@ora11g ~]$ emca -deconfig dbcontrol db -repos drop -silent -PORT 1521 -SID ora11g-SYS_PWD 123456 -DBSNMP_PWD 123456 -SYSMAN_PWD 123456
 

三:安装weblogic

 [root@grid5 ~]# su - oracle
[oracle@grid5 ~]$ ls /u01/
wls1032_generic.jar
[oracle@grid5 ~]$ /usr/java/jdk1.6.0_18/bin/java -jar /u01/wls1032_generic.jar
 

 

 

 

 

 

 

 

 

 

四:安装GC

 设定环境变量
[oracle@grid5 ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/Middleware/db11g
export OMS_HOME=$ORACLE_BASE/Middleware/oms11g
export AGENT_HOME=$ORACLE_BASE/Middleware/agent11g
export ORACLE_SID=ora11g
export ORACLE_HOSTNAME=grid5
export ORACLE_OWNER=oracle
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/X11R6/lib:$LD_LIBRARY_PATH
export PATH=.:/usr/sbin:$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$PATH
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$CLASSPATH
export NLS_LANG="american_america.AL32UTF8"
export LC=en_US
export EDITOD=vim
export WLS_HOME=/u01/app/oracle/Middleware/wlserver_10.3
export WT_HOME=/u01/app/oracle/Middleware/Oracle_WT

解压软件包,并开始安装!
[oracle@grid5 gc_unzip]$ unzip ../gc/GridControl_11.1.0.1.0_Linux_x86-64_1of3.zip
[oracle@grid5 gc_unzip]$ unzip ../gc/GridControl_11.1.0.1.0_Linux_x86-64_2of3.zip
[oracle@grid5 gc_unzip]$ unzip ../gc/GridControl_11.1.0.1.0_Linux_x86-64_3of3.zip
[oracle@grid5 gc_unzip]$ ./runInstaller
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  
  
  
  
  1. [root@grid5 ~]# /u01/app/oraInventory/orainstRoot.sh   
  2. [root@grid5 ~]# /u01/app/oracle/Middleware/oms11g/allroot.sh 

 

 

 启动OMS和agent
[oracle@grid5 ~]$ $OMS_HOME/bin/emctl  start oms
Oracle Enterprise Manager 11g Release 1 Grid Control 
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up

oracle@grid5 ~]$ $AGENT_HOME/bin/emctl start agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting agent ................................ started.

 

登陆: 

 

 

 

 

本文出自 “斩月” 博客,谢绝转载!

你可能感兴趣的:(oracle,oracle,weblogic,11g,installation,gridcontrol)