VMware workstation下安装
Vmware version: 9
OS:ORACLE LINUX 5.6_64位
DATABASE: 10201_64位
一。准备工作。
1.host
more /etc/hosts
192.168.150.71 o10n1
192.168.150.72 o10n2
172.168.146.71 o10n1-priv
172.168.146.72 o10n2-priv
192.168.150.81 o10n1-vip
192.168.150.82 o10n2-vip
2.安装相关的包
yuminstall oracle*
3 打开远程rsh的rlogin
[root@rac1 ~]# chkconfig rsh on
[root@rac1 ~]# chkconfig rlogin on
[root@rac1 ~]# service xinetd reload
Reloading configuration: [ OK ]
4. 设置oracle环境变量
export PS1="`/bin/hostname-s`->"
export EDITOR=vi
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASH=/oracle
export ORA_CRS_HOME=/oracle/product/10.2.0/crs
exportORACLE_HOME=/oracle/product/10.2.0/db_1
export ORACLE_SID=t10g
exportPATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/sbin:$PATH
exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
stty erase ^H
umask 022
if [ $USER = "oracle" ]; then
if[ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
5.可以装个rlwrap(可选)
不装的话,去掉环境变量中的
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
6.配置hangcheck-timer(2节点都配)
参见时间同步部分
二。存储设置
1.vmware虚拟机共享磁盘设置
disk.locking="FALSE"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.DataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1.sharedBus="virtual"
scsi1:0.deviceType="disk"
scsi1:1.deviceType="disk"
scsi1:2.deviceType="disk"
scsi1:3.deviceType="disk"
scsi1:4.deviceType="disk"
scsi1:5.deviceType="disk"
scsi1:0.redo = ""
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo