这是之前安装的一套10g的RAC,现在做测试,做新安装并整理下。安装Oracle 10gR2 clusterware,在执行root.sh脚本报如下错误:
[root@rh55db1 4679769]# /u01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration
是10g的一个bug,下载补丁:http://download.csdn.net/detail/u010587433/8327499
解压后,将其复制到clusterware的bin目录下,覆盖原来文件即可(所有节点都要做)
[root@rh55db2 soft]# unzip p4679769_10201_Linux-x86-64.zip
[root@rh55db2 soft]# cd 4679769/
[root@rh55db2 4679769]# ll
总计 684
-rw-r--r-- 1 oracle oinstall 687320 2005-11-09 clsfmt.bin
-rw-rw-r-- 1 oracle oinstall 4266 2005-11-09 README.txt
[root@rh55db2 4679769]# cp clsfmt.bin /u01/app/crs/bin/
说明:
一、如果还没有执行root.sh脚本,则做如下操作(所有节点都要做)
</pre><pre name="code" class="sql">1.按照上述方式修复bug
2.vi /u01/app/crs/bin/srvctl,添加unset LD_ASSUE_KERNEL
#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL
3.vi /u01/app/crs/bin/vipca,添加unset LD_ASSUE_KERNEL
if [ "$arch" = "i686" -o "$arch" = "ia64" -o "$arch" = "x86_64" ]
then
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
fi
unset LD_ASSUME_KERNEL
4.然后再执行脚本
二、如果已经执行root.sh脚本,并报错,则做如下操作(除清共享盘在一个节点,其它操作所有节点都要做)
<pre name="code" class="sql">1.按照上述方式修复bug
2.vi /u01/app/crs/bin/srvctl,添加unset LD_ASSUE_KERNEL
#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL
3.vi /u01/app/crs/bin/vipca,添加unset LD_ASSUE_KERNEL
if [ "$arch" = "i686" -o "$arch" = "ia64" -o "$arch" = "x86_64" ]
then
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
fi
unset LD_ASSUME_KERNEL
4.清空ocr盘:dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=120,最好也清一下vote disk盘。
5.rm -rf /etc/oracle/scls_scr/rh55db1/oracle/cssfatal
不做此操作,重新执行
Oracle CRS stack is already configured and will be running under init(1M)
参考:http://blog.csdn.net/tianlesoftware/article/details/5314804
6.重新执行脚本即可