1.安裝clusterware software 10.2.0.1
@node1, As root run $ORACLE_CRS_HOME/root.sh
@node2, As root run fix_srvctl.sh, fix_vipca.sh, then run $ORACLE_CRS_HOME/root.sh
2.@node2, As root, run vipca 來建立虛擬ip與clusterware resources
3.clusterware安裝畫面結束
4.安裝database software 10.2.0.1,
@node1, As root run $ORACLE_HOME/root.sh
@node2, As root run $ORACLE_HOME/root.sh
5.netca
6.dbca.
以下是我所寫的scripts
script fix_srvctl.sh:
----------------------------------------------------------------------------
flag=`grep -q "unset LD_ASSUME_KERNEL" /u01/crs_1/bin/srvctl && echo $?`
if [ $flag -eq 0 ]; then
echo "srvctl has been fixed !"
exit 0
fi
mv -f /u01/crs_1/bin/srvctl /u01/crs_1/bin/srvctl.orig
cat /u01/crs_1/bin/srvctl.orig |sed '/export LD_ASSUME_KERNEL/ a\unset LD_ASSUME_KERNEL' > /u01/crs_1/bin/srvctl
echo "srvctl fixed finished..."
----------------------------------------------------------------------------
script fix_vipca.sh:
----------------------------------------------------------------------------
flag=`grep -q "unset LD_ASSUME_KERNEL" /u01/crs_1/bin/vipca && echo $?`
if [ $flag -eq 0 ]; then
echo "vipca has been fixed !"
exit 0
fi
mv -f /u01/crs_1/bin/vipca /u01/crs_1/bin/vipca.orig
cat /u01/crs_1/bin/vipca.orig |sed '/\#End workaround/ a\unset LD_ASSUME_KERNEL' > /u01/crs_1/bin/vipca
echo "vipca fixed finished..."
----------------------------------------------------------------------------
沒有留言:
張貼留言