系统环境
主机:Window2003R2 SP2VMWare3.1 GSX Server装了两台Redhat Linux AS3 U4
每台机器512M内存
其上装了Oracle9.2.0.4 for linux 32
问题现象:
两台机器都启动正常,oracm及gsd都启动正常
第一台启动gsd服务的机器srvctl config显示正常
但第二台启动gsd服务的机器运行srvctl时出错
出错提示如下:
[oracle@linux-yzs2 bin]$ srvctl config
PRKC-1020 : Exception while executing the operation on the remote node linux-yzs2
PRKC-1020 : Exception while executing the operation on the remote node linux-yzs2
[oracle@linux-yzs2 bin]$ srvctl start database -d rac
PRKR-1007 : getting of cluster database rac configuration failed,
PRKC-1020 : Exception while executing the operation on the remote node linux-yzs2
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: rac
问题原因:
/etc/hosts文件中的127.0.0.1多配置一下机器名,hosts 内容如下:
[root@linux-yzs2 bin]# cat /etc/hosts
127.0.0.1 linux-yzs2 localhost.localdomain localhost
192.168.0.26 linux-yzs1
192.168.0.27 linux-yzs2
192.168.1.6 linux-yzs-prv1
192.168.1.7 linux-yzs-prv2
192.168.0.27 linux-yzs2
192.168.1.6 linux-yzs-prv1
192.168.1.7 linux-yzs-prv2
解决方法:
将127.0.0.1 的机器名去了
改成如下
[root@linux-yzs2 bin]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.26 linux-yzs1
192.168.0.27 linux-yzs2
192.168.1.6 linux-yzs-prv1
192.168.1.7 linux-yzs-prv2
192.168.0.27 linux-yzs2
192.168.1.6 linux-yzs-prv1
192.168.1.7 linux-yzs-prv2