Oracle10g RAC运行root.sh 时报错

这种情况下配置有些注意事项。 否则会在执行root.sh命令的时候,报错:

 

[root@rac1 init.d]# /u01/app/oracle/product/crs/root.sh

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

PROT-1: Failed to initialize ocrconfig

Failed to upgrade Oracle Cluster Registry configuration

 

 

一般出现这个问题的原因有几种:

 

1 Bug

       这种情况参考:

       Executing root.sh errors with "Failed To Upgrade Oracle Cluster Registry Configuration" [ID 466673.1]

 

2 raw 设备的权限问题

crwxrwxr-x 1 oracle oinstall 162, 4 Aug 22 11:19 raw4
crwxrwxr-x 1 oracle oinstall 162, 3 Aug 22 11:19 raw3
crw-r----- 1 root   oinstall 162, 1 Aug 22 14:53 raw1
crw-r--r-- 1 oracle oinstall 162, 2 Aug 22 14:55 raw2

      

权限要设置成如下:

chown root.oinstall /dev/raw/raw[1-2]
chown oracle.oinstall /dev/raw/raw[3-5]


chmod 775 /dev/raw/raw[1-2] 
chmod 775 /dev/raw/raw[3-5]

 

可以在udev的规则里设置, 也可以把权限添加到/etc/rc.d/rc.local  中。

 

3 raw 设备读写问题


本次遇到的问题主要是因为bug引起(p4679769)
下载该patch后,将文件覆盖crs/bin目录下的clsfmt.bin文件
清空ocr、voting disk的raw,再次运行./root.sh后恢复正常

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29108856/viewspace-2143950/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29108856/viewspace-2143950/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值