Oracle PRKC-1002錯誤原因和解決方案

來源:互聯網
上載者:User

小編在 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.

其實 PRKC-1002 錯誤關鍵是解決時間同步問題,儘管我在安裝 VMware-tools 之後,勾選 vmware-toolbox 的 Miscellaneous Options 選項,但 node1 的時間還是比 node2 的快十幾秒。參考了一下《大話Oracle RAC》這本書,決定選用 NTP 服務來使時間同步。 剛開始我是用 node1 來做 NTP 服務的,但做完後發現 node1 的時間還是比 node2 的快幾秒,為了保守起見, 我用 node2 來做 NTP 服務。

在 node2 用 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

然後在 node1 用 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

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.