温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Oracle10g RAC运行root.sh时报错怎么办

发布时间:2021-08-19 10:01:32 来源:亿速云 阅读:119 作者:chen 栏目:关系型数据库

本篇内容主要讲解“Oracle10g RAC运行root.sh时报错怎么办”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“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后恢复正常

到此,相信大家对“Oracle10g RAC运行root.sh时报错怎么办”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI