PRKC-1002錯誤問題原因和解決方法

jackson198574發表於2013-12-13

PRKC-1002錯誤問題原因和解決方法 

在VMWare Server 1.0.8中安裝Oracle RAC時, 碰到到了PRKC-1002錯誤:

WARNING: Error while copying directory /u01/oracle/product/10.2.0/db_1 with exclude file list 'null' to nodes 'rac2'. [PRKC-1002 : All the submitted commands did not execute successfully]

到Oracle技術支援找到了問題的原因如何解決:

Cause

This is because the date on the local node is higher than the date on the remote node(s). 

Solution

To fix this, set the times of the nodes to be the same.  You can do this with "ntpupdate " to sync the dates.

就是解決時間同步後即可. 儘管我安裝VMWare的tools之後,並勾選vmware-toolbox的Miscellaneous Options選項,但節點1的時間還是比節點2的快十幾秒. 參考了一下《大話Oracle RAC》這本書, 決定選用NTP服務來使時間同步. 剛開始我是用節點1來做NTP服務的,但做完後發現節點1的時間還是比節點2的快幾秒,為了保守起見, 我用節點2來做NTP服務.

在節點2用root用記編輯/etc/ntp.conf,加入下面這段

## add for rac
server 127.127.1.0 
fudge  127.127.1.0 stratum 11
driftfile /var/lib/ntp/drift
broadcastdelay 0.008

然後在節點1用root用記編輯/etc/ntp.conf,加入下面這段

## add for rac
server 192.168.1.131 prefer
driftfile /var/lib/ntp/drift
broadcastdelay 0.008

#注意是127.127.1.0而不是127.0.0.1,還有就是192.168.1.131 是節點一的IP地址

然後在兩個節點執行下面的命令使NTP服務啟動

/etc/init.d/ntpd start

若這樣還不可以,那就要把安裝資料庫的節點1的時間調得比節點2慢點

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20802110/viewspace-1063188/,如需轉載,請註明出處,否則將追究法律責任。

相關文章