ITPub博客

首页 > 数据库 > Oracle > Oracle10g RAC运行root.sh 时报错

Oracle10g RAC运行root.sh 时报错

原创 Oracle 作者:cqvienet 时间:2017-08-22 15:19:41 0 删除 编辑

这种情况下配置有些注意事项。 否则会在执行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博客 ” ,链接:https://blog.itpub.net/29108856/viewspace-2143950/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: show_space源码
请登录后发表评论 登录
全部评论

注册时间:2014-03-03

  • 博文量
    86
  • 访问量
    101531