1,确认两个节点的主机名 /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
172.16.31.72 capitek1 loghost capitek1.com
172.16.31.73 capitek2 loghost capitek2.com
172.16.31.156 capitek1_vip
172.16.31.158 capitek2_vip
172.16.0.1 capitek1_priv
172.16.0.2 capitek2_priv
2,确认同上的/etc/netmask
bash-3.00# more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
172.16.0.0 255.255.0.0
3,同上/etc/defaultrouter
4,配置public和private网卡 /etc/hostname.网卡名和/etc/netmask
ifconfig -a --查看e1000g0和e1000g1是否启用
ifconfig e1000g1 plumb
ifconfig e1000g1 172.16.0.1 netmask 255.255.0.0 up --第二个节点是2,配置完private两节点互ping
bash-3.00# more /etc/hostname*
::::::::::::::
/etc/hostname.e1000g0 --注意不同节点
::::::::::::::
capitek2
::::::::::::::
/etc/hostname.e1000g1 --注意不同节点
::::::::::::::
capitek2-priv
测试下两个节点的private网络是否可以ping
5,建oracle用户及oinstall,dba组,注意group id和user id在两个节点要一样
同时建立对应的home目录,配置目录权限及用户和属组
groupadd -g 100 oinstall
groupadd -g 101 dba
mkdir -p /orainstall
useradd -u 200 -g oinstall -G dba -s /usr/bin/bash -d /orainstall -m oracle
chown -R oracle:oinstall /orainstall
chmod -R 775 /orainstall
passwd oracle
id -a oracle --查看uid ,groupid是否正常,对应两节点
6,构建节点互信关系:/etc/.rhosts或者/.rhosts内容为+吧,及/etc/hosts.equiv为+
然后rsh capitek1 date;rsh capitek2 date测试下互通性
7,在第二个节点上配置存储在主机上的映射
bash-3.00# ls -l /dev/rdsk/c2t1d0s3
lrwxrwxrwx 1 root root 89 11月 17日 16:51 /dev/rdsk/c2t1d0s3 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
crw-r----- 1 root sys 118, 19 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
bash-3.00# mknod /dev/rdsk/c2t125d0s3 c 118 19
bash-3.00# ls -l /dev/rdsk/c2t125d0s3
crw-r--r-- 1 root root 118, 19 11月 17日 20:14 /dev/rdsk/c2t125d0s3
bash-3.00# ls -l /dev/rdsk/c2t1d0s4
lrwxrwxrwx 1 root root 89 11月 17日 16:51 /dev/rdsk/c2t1d0s4 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
crw-r----- 1 root sys 118, 20 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
bash-3.00# mknod /dev/rdsk/c2t125d0s4 c 118 20
bash-3.00#
--以下在两个节点上运行
chown -RL oracle:oinstall /dev/rdsk/c2t125d0s3
chmod -R 660 /dev/rdsk/c2t125d0s3
chown -RL oracle:oinstall /dev/rdsk/c2t125d0s4
chmod -R 660 /dev/rdsk/c2t125d0s4
7,/etc/profile和/etc/system的配置,
oracle用户下的$HOME/.profile,参考下左华的诺西rac 文档
umask 022
ORACLE_BASE=/orainstall
export ORACLE_BASE
export ORA_CRS_HOME=$ORACLE_BASE/oracle/product/10.2.0/crs --注意export后面的变量不加$
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/cts/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre/lib:$ORACLE_HOME/jre/lib/rt.jar:$$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
PATH=$ORACLE_HOME/bin:$PATH:/usr/sbin
export PATH
NLS_LANG=american.zhs16gbk
export NLS_LANG
ORACLE_SID=ora10g1
export ORACLE_SID
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=8589934590
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
8, cpio -idmv < oracle包.(具体用法查下google or baidu),在第一个节点上
9,在第一个节点上,运行runcluvfy查看安装clusterware的相关条件是否具备
su - oracle
cd cluvify
./runcluvfy.sh stage -pre crsinst -n capitek1,capitek2
10,同上在第一个节点上用xmanager,以oracle用户登陆,启动runinstaller安装clusterware
#
# Internet host table
#
127.0.0.1 localhost
172.16.31.72 capitek1 loghost capitek1.com
172.16.31.73 capitek2 loghost capitek2.com
172.16.31.156 capitek1_vip
172.16.31.158 capitek2_vip
172.16.0.1 capitek1_priv
172.16.0.2 capitek2_priv
2,确认同上的/etc/netmask
bash-3.00# more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
172.16.0.0 255.255.0.0
3,同上/etc/defaultrouter
4,配置public和private网卡 /etc/hostname.网卡名和/etc/netmask
ifconfig -a --查看e1000g0和e1000g1是否启用
ifconfig e1000g1 plumb
ifconfig e1000g1 172.16.0.1 netmask 255.255.0.0 up --第二个节点是2,配置完private两节点互ping
bash-3.00# more /etc/hostname*
::::::::::::::
/etc/hostname.e1000g0 --注意不同节点
::::::::::::::
capitek2
::::::::::::::
/etc/hostname.e1000g1 --注意不同节点
::::::::::::::
capitek2-priv
测试下两个节点的private网络是否可以ping
5,建oracle用户及oinstall,dba组,注意group id和user id在两个节点要一样
同时建立对应的home目录,配置目录权限及用户和属组
groupadd -g 100 oinstall
groupadd -g 101 dba
mkdir -p /orainstall
useradd -u 200 -g oinstall -G dba -s /usr/bin/bash -d /orainstall -m oracle
chown -R oracle:oinstall /orainstall
chmod -R 775 /orainstall
passwd oracle
id -a oracle --查看uid ,groupid是否正常,对应两节点
6,构建节点互信关系:/etc/.rhosts或者/.rhosts内容为+吧,及/etc/hosts.equiv为+
然后rsh capitek1 date;rsh capitek2 date测试下互通性
7,在第二个节点上配置存储在主机上的映射
bash-3.00# ls -l /dev/rdsk/c2t1d0s3
lrwxrwxrwx 1 root root 89 11月 17日 16:51 /dev/rdsk/c2t1d0s3 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
crw-r----- 1 root sys 118, 19 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:d,raw
bash-3.00# mknod /dev/rdsk/c2t125d0s3 c 118 19
bash-3.00# ls -l /dev/rdsk/c2t125d0s3
crw-r--r-- 1 root root 118, 19 11月 17日 20:14 /dev/rdsk/c2t125d0s3
bash-3.00# ls -l /dev/rdsk/c2t1d0s4
lrwxrwxrwx 1 root root 89 11月 17日 16:51 /dev/rdsk/c2t1d0s4 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
crw-r----- 1 root sys 118, 20 11月 17日 17:12 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:e,raw
bash-3.00# mknod /dev/rdsk/c2t125d0s4 c 118 20
bash-3.00#
--以下在两个节点上运行
chown -RL oracle:oinstall /dev/rdsk/c2t125d0s3
chmod -R 660 /dev/rdsk/c2t125d0s3
chown -RL oracle:oinstall /dev/rdsk/c2t125d0s4
chmod -R 660 /dev/rdsk/c2t125d0s4
7,/etc/profile和/etc/system的配置,
oracle用户下的$HOME/.profile,参考下左华的诺西rac 文档
umask 022
ORACLE_BASE=/orainstall
export ORACLE_BASE
export ORA_CRS_HOME=$ORACLE_BASE/oracle/product/10.2.0/crs --注意export后面的变量不加$
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/cts/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre/lib:$ORACLE_HOME/jre/lib/rt.jar:$$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
PATH=$ORACLE_HOME/bin:$PATH:/usr/sbin
export PATH
NLS_LANG=american.zhs16gbk
export NLS_LANG
ORACLE_SID=ora10g1
export ORACLE_SID
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=8589934590
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
8, cpio -idmv < oracle包.(具体用法查下google or baidu),在第一个节点上
9,在第一个节点上,运行runcluvfy查看安装clusterware的相关条件是否具备
su - oracle
cd cluvify
./runcluvfy.sh stage -pre crsinst -n capitek1,capitek2
10,同上在第一个节点上用xmanager,以oracle用户登陆,启动runinstaller安装clusterware
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-620422/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-620422/