检查 /u01/app/grid/product/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid/oraagent_grid.log ,发现以下内容:
(:CLSN00010:)getaddrinfo(localhost, 6100, 1) failed (Name or service not known):
(:CLSN00010:)Can not resolve localhost for interface any
(:CLSN00010:)
(:CLSN00010:)getaddrinfo(localhost, 6100, 1) failed (Name or service not known):
(:CLSN00010:)Can not resolve localhost for interface any
(:CLSN00010:)onsctl start: ons failed to start
(:CLSN00010:)
(:CLSN00010:)Utils:execCmd scls_process_join() uret 2
ping localhost,不通
检查 /etc/hosts文件,
10.0.0.11 rac1-priv
10.0.0.12 rac2-priv
192.168.0.11 rac1
192.168.0.12 rac2
192.168.0.13 rac1-vip
192.168.0.14 rac2-vip
192.168.0.15 scanip
缺少localhost的字段
马上在两个节点上加上这个
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
之后,再去第一个节点执行:
rac1:~ # /u01/app/grid/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/grid/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
PRKO-2190 : VIP exists for node rac1, VIP name rac1-vip
PRCS-1037 : Single Client Access Name VIPs already exist
PRCS-1028 : Single Client Access Name listeners already exist
OC4J could not be created as it already exists
PRCR-1086 : resource ora.oc4j is already registered
PRCR-1086 : resource ora.cvu is already registered
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
执行成功,
看来,/etc/hosts文件中localhost不能随便删除.
|