《使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3)安装笔记》由会员分享,可在线阅读,更多相关《使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3)安装笔记(128页珍藏版)》请在金锄头文库上搜索。
1、1、环境配置服务器 linux 版本 Oracle 版本 Public_ip Private_ip Virtual_ip Scan_ipRac1 Linux 6.3 11.2.0.3 43.10.100.15 20.20.20.1 43.10.100.17Rac2 Linux 6.3 11.2.0.3 43.10.100.16 20.20.20.2 43.10.100.1843.10.100.19共享磁盘 用途 容量emapowera CRS 磁盘(CRSDG) 20Gemapowerb FRS 磁盘(FRSDG) 20Gemapowerc 数据磁盘(DATADG) 500G2、环境检查配置1
2、.rpm 包检查配置使用 rpm -qa| grep xxx 命令检查 rpm 包安装是否完整,如:使用 rpm -qa | grep binutils-2.17.50.0.6 检查 binutils-2.17.50.0.6 包是否安装,若未安装则在 RHEL 6.3 的光盘 Package 目录中找到,并使用 rpm -ivh XXX 命令安装这些包。在 oracle 官方文档中确定要安装的包如下:binutils-2.17.50.0.6compat-libstdc+-33-3.2.3compat-libstdc+-33-3.2.3 (32 bit)elfutils-libelf-0.125
3、elfutils-libelf-devel-0.125gcc-4.1.2gcc-c+-4.1.2glibc-2.5-24glibc-2.5-24 (32 bit)glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (32 bit)glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3.106 (32 bit)libaio-devel-0.3.106libaio-devel-0.3.106 (32 bit)libgcc-4.1.2libgcc-4.1.2 (32 bit)libstdc+-4.1.2li
4、bstdc+-4.1.2 (32 bit)libstdc+-devel 4.1.2make-3.81numactl-devel-0.9.8.x86_64sysstat-7.0.22.配置系统 hosts 文件在 node1 上vi /etc/hosts127.0.0.1 rac1 localhost localhost.localdomain localhost4 localhost4.localdomain4:1 rac1 localhost localhost.localdomain localhost6 localhost6.localdomain643.10.100.15 rac1#p
5、ublic43.10.100.15 rac1 rac1.localdomain43.10.100.16 rac2 rac2.localdomain#private20.20.20.1 rac1-priv rac1-priv.localdomain20.20.20.2 rac2-priv rac2-priv.localdomain#virtual43.10.100.17 rac1-vip rac1-vip.localdomain43.10.100.18 rac2-vip rac2-vip.localdomain#scan43.10.100.19 rac-cluster rac-cluster-s
6、can 在 node2 上vi /etc/hosts127.0.0.1 rac2 localhost localhost.localdomain localhost4 localhost4.localdomain4:1 rac2 localhost localhost.localdomain localhost6 localhost6.localdomain643.10.100.16 rac2#public43.10.100.15 rac1 rac1.localdomain43.10.100.16 rac2 rac2.localdomain#private20.20.20.1 rac1-pri
7、v rac1-priv.localdomain20.20.20.2 rac2-priv rac2-priv.localdomain#virtual43.10.100.17 rac1-vip rac1-vip.localdomain43.10.100.18 rac2-vip rac2-vip.localdomain#scan43.10.100.19 rac-cluster rac-cluster-scan 3.用户组与用户的创建rootnode2 # groupadd -g 1000 oinstall rootnode2 # groupadd -g 1200 asmadmin rootnode2
8、 # groupadd -g 1201 asmdba rootnode2 # groupadd -g 1202 asmoper rootnode2 # useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash -c Grid Infrastructure Owner grid rootnode2 # groupadd -g 1300 dba rootnode2 # groupadd -g 1301 oper rootnode2 # useradd -m -u 1101 -g oins
9、tall -G dba,oper,asmdba -d /home/oracle -s /bin/bash -c Oracle Software Owner oracle rootnode2 # mkdir -p /u01/app/grid rootnode2 # mkdir -p /u01/app/11.2.0/grid rootnode2 # chown -R grid:oinstall /u01 rootnode2 # mkdir -p /u01/app/oracle rootnode2 # chown oracle:oinstall /u01/app/oracle rootnode2 #
10、 chmod -R 775 /u01 rootnode2 # passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. rootnode2 # passwd grid Changing password for user gri
11、d. New password: BAD PASSWORD: it is too short BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. rootnode2 # id oracle -a uid=1101(oracle) gid=1000(oinstall) groups=1000(oinstall),1201(asmdba),1300(dba),1301(oper) rootnode2 # id grid -a uid=1100
12、(grid)gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper) 4.配置 oracle 用户和 grid 用户的环境变量在 node1 上使用 oracle 用户登录oraclenode1 $ vi .bash_profileTMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/1
13、1.2.0/db_1; export ORACLE_HOME ORACLE_SID=rac1; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORAC
14、LE_HOME/rdbms/jlib;export CLASSPATH NLS_DATE_FORMAT=yyyy-mm-dd HH24:MI:SS; export NLS_DATE_FORMAT NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG if $USER = oracle | $USER = grid ; thenif $SHELL = /bin/ksh ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fiumask 022fi在 node2 上使用 or
15、acle 用户登录oraclenode2 $ vi .bash_profileTMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=rac2; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; expor
16、t PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;export CLASSPATH NLS_DATE_FORMAT=yyyy-mm-dd HH24:MI:SS; export NLS_DATE_FORMAT NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG if $USE