CentOS 4.7+RAC+Oracle 10g + ASM安裝遇到問題

來源:互聯網
上載者:User

1. 在Oracle 10G在安裝cluster時,第到61%的時候,就提示如下錯誤:

WARNING: Error while copying directory /home/oracle/app/oracle/10R2/crs with exclude file list 'null' to nodes 'rac2'.
[PRKC-1002 : All the submitted commands did not execute successfully](類似)

解決:

這個錯誤可以忽略

原因: 在安裝 Oracle 叢集件、資料庫以及隨附 CD 期間,Oracle Universal Installer(OUI)將首先安裝本地節點的軟體(運行該安裝程式的本地節點,我在rac1上啟動並執行安裝程式)。然後,將該軟體以遠程方式複製到叢集中的其餘節點(即rac2).

在遠程複製過程中,OUI將在每個遠程節點上執行 UNIX“tar”命令,以提取進行了存檔和複製的檔案。如果執行安裝的節點(即本地節點rac1)上的日期和時間大於其要進行複製的節點(遠程節點rac2)上的日期和時間,那麼OUI將在“tar”中引發一個錯誤,以指示其在試圖提取帶有時間戳記的檔案時失敗。

Error while copying directory
/u01/app/oracle/product/crs with exclude file list 'null' to nodes 'rac2'.
[PRKC-1002 :All the submitted commands did not execute successfully]
---------------------------------------------
rac2:
/bin/tar:./bin/lsnodes:time stamp 2010-09-13 09:21:34 is 735 s in the future
/bin/tar:./bin/olsnodes:time stamp 2010-09-13 09:21:34 is 735 s in the future
...(more errors on this node)

請注意,儘管這看起來像OUI中一個嚴重的錯誤,但您完全可以將其看作是一個警告而忽略。“tar”命令 DOES確實提取了檔案;然而,
當您在遠程節點上執行檔案清單時(使用ls -l),它們將缺少時間欄位,直到伺服器上的時間大於該檔案的時間戳記。
 
在啟動以上任何一個所述安裝之前,確保儘可能將叢集的每個成員節點設定為相同的時間和日期,做好時間同步,但是我為了安裝的順利
一般讓本地安裝節點比遠程複製節點慢10分鐘

[root@rac1 ~]# date -s "Thu Dec 23 12:22:28 CST 2010"
[root@rac2 ~]# date -s "Thu Dec 23 12:32:28 CST 2010"

2. 當已經成功安裝完clusterware後,再安裝oracle software的過程中,會報如下的錯誤:

You have chosen to configure Automatic Storage Management (ASM) on the
following nodes:

rac1
rac2
Though there is no ASM instance configured for the local node, the
Oracle Universal Installer has detected the existence of an ASM instance
on the following remote nodes:
rac1
rac2
If you want to configure ASM on this node, you must extend the ASM
cluster of instances to this node (using the Add Instance procedure),
rather than choosing to configure a new ASM instance during the install.

這個錯誤的原因是第一次安裝沒有卸載乾淨,導致這次安裝識別到已經安裝的錯誤,解決方案是重新徹底卸載,
還要清空asm的磁碟頭部資訊,用如下命令:

for example: dd if=/dev/zero of=/dev/<asm_disk_name> bs=1024k count=50


# dd if=/dev/zero of=/dev/sdb bs=1024k count=200

3. 當遇到類似下面的錯誤時

Command = /u01/app/oracle/crs10g/bin/racgons has failed
 Execution Error : WARNING: rac1:6200 already configured.
WARNING: rac2:6200 already configured.

可以用如下方式解決, 移除後retry

[oracle@rac1 bin]$ racgons  remove_config rac1:6200
racgons: Existing key value on rac1 = 6200.
racgons: rac1:6200 removed from OCR.
[oracle@rac1 bin]$ racgons  remove_config rac2:6200
racgons: Existing key value on rac2 = 6200.
racgons: rac2:6200 removed from OCR.

4. 添加網關

[root@rac2 ~]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac2.aibo.com
GATEWAY=192.168.2.1

[root@rac2 ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.255
HWADDR=00:0C:29:81:22:38
IPADDR=192.168.2.21
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.2.1
[root@rac2 ~]#

說明:在安裝時,需要和網關通訊;所以在檔案”/etc/sysconfig/network“和”/etc/sysconfig/network-scripts/ifcfg-eth0“裡添加網關”GATEWAY=192.168.2.1“

5. 修改hosts檔案

[root@rac2 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost

# Public
192.168.2.11    rac1.aibo.com   rac1
192.168.2.21    rac2.aibo.com   rac2
#Private
10.10.0.11      rac1-priv.aibo.com      rac1-priv
10.10.0.21      rac2-priv.aibo.com      rac2-priv
#Virtual
192.168.2.80    rac1-vip.aibo.com       rac1-vip
192.168.2.81    rac2-vip.aibo.com       rac2-vip
[root@rac2 ~]#

在”/etc/hosts“檔案裡的第一行”127.0.0.1       localhost.localdomain   localhost“是需要的,不要寫錯。
在hosts檔案裡,私人ip(private ip)需要公網地址,我一般用10.10.0.11/255這個網段

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.