CentOS 4.7+RAC+Oracle 10g + ASM安装遇到问题


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
  • 下一页

相关内容