溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Oracle10g RAC運(yùn)行root.sh時(shí)報(bào)錯(cuò)怎么辦

發(fā)布時(shí)間:2021-08-19 10:01:32 來源:億速云 閱讀:131 作者:chen 欄目:關(guān)系型數(shù)據(jù)庫

本篇內(nèi)容主要講解“Oracle10g RAC運(yùn)行root.sh時(shí)報(bào)錯(cuò)怎么辦”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實(shí)用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“Oracle10g RAC運(yùn)行root.sh時(shí)報(bào)錯(cuò)怎么辦”吧!

這種情況下配置有些注意事項(xiàng)。 否則會(huì)在執(zhí)行root.sh命令的時(shí)候,報(bào)錯(cuò):

 

[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

 

一般出現(xiàn)這個(gè)問題的原因有幾種:

 

1 Bug

       這種情況參考:

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

 

2 raw 設(shè)備的權(quán)限問題

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

      

權(quán)限要設(shè)置成如下:

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的規(guī)則里設(shè)置, 也可以把權(quán)限添加到/etc/rc.d/rc.local  中。

 

3 raw 設(shè)備讀寫問題

本次遇到的問題主要是因?yàn)閎ug引起(p4679769)
下載該patch后,將文件覆蓋crs/bin目錄下的clsfmt.bin文件
清空ocr、voting disk的raw,再次運(yùn)行./root.sh后恢復(fù)正常

到此,相信大家對(duì)“Oracle10g RAC運(yùn)行root.sh時(shí)報(bào)錯(cuò)怎么辦”有了更深的了解,不妨來實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI