日期:2014-05-16  浏览次数:20775 次

Oracle 10g R2 RAC之Linux 安装记录
http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel4-092650.html
http://blog.csdn.net/zzuiezhangqihui/article/details/6153215

hosts文件        IP Alias Name
127.0.0.1       localhost.localdomain   localhost
#Pubilc
192.168.1.101   rac1.boobooke.com       rac1
192.168.1.102   rac2.boobooke.com       rac2
#Private
192.168.150.101   rac1-priv.boobooke.com  rac1-priv
192.168.150.102   rac2-priv.boobooke.com  rac2-priv
#Virtual
192.168.1.111   rac1-vip.boobooke.com   rac1-vip
192.168.1.112   rac2-vip.boobooke.com   rac2-vip

vi /etc/sysctl.conf                        
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

/sbin/sysctl -p

/etc/security/limits.conf
*              soft    nproc   2047
*              hard    nproc   16384
*              soft    nofile  1024
*              hard    nofile  65536

vi /etc/pam.d/login
session    required     /lib/security/pam_limits.so


cat /etc/selinux/config

service iptables status

/etc/modprobe.conf
options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180

modprobe -v hangcheck-timer

[root@rac1 rpm]# groupadd oinstall
[root@rac1 rpm]# groupadd dba
[root@rac1 rpm]# groupadd oper
[root@rac1 rpm]# useradd -g oinstall -G dba oracle
[root@rac1 rpm]# passwd oracle
[root@rac1 rpm]# mkdir -p /oracle/product/10.2.0/crs
[root@rac1 rpm]# mkdir -p /oracle/product/10.2.0/asm
[root@rac1 rpm]# mkdir -p /oracle/product/10.2.0/db_1
[root@rac1 rpm]# chown -R oracle:oinstall /oracle
[root@rac1 rpm]# chkconfig rsh on
[root@rac1 rpm]# chkconfig rlogin on
[root@rac1 rpm]# service xinetd reload

# Oracle Settions
export PS1="`/bin/hostname -s`->"
export EDITOR=vi
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/oracle
export ASM_HOME=/oracle/product/10.2.0/asm
export ORA_CRS_HOME=/oracle/product/10.2.0/crs
export ORACLE_HOME=/oracle/product/10.2.0/db_1
export ORACLE_SID=king1
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap ramn"
stty erase ^H
umask 002

if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
  else
      ulimit -u 16384 -n 65536
  fi
fi

source .bash_profile


rac1/rhel4.vmx

disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
scsi1.sharedBus = "virtual"

sc