Oracle11gR2 RAC installation error-HOSTS file error system environment: Operating System: RedHatEL5Cluster: OracleGI (GridInfrastructure) Oracle: Oracle11.2.0.1.0: RAC system architecture 650) this. srcwww.68idc. cnhelpuploadsallimg151214
Oracle 11gR2 RAC installation error-HOSTS file error system environment: Operating System: RedHat EL5 Cluster: Oracle GI (Grid Infrastructure) Oracle: Oracle 11.2.0.1.0: RAC system architecture 650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214
Oracle 11gR2 RAC installation error -- HOSTS file Error
System Environment:
Operating System: RedHat EL5
Cluster: Oracle GI (Grid Infrastructure)
Oracle: Oracle 11.2.0.1.0
: RAC System Architecture
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/10063M950-0.jpg "title =" RAC.png "alt =" wKioL1OQLjuxVHmmAAHMpFKmO50370.jpg "width =" 650 "style =" padding: 0px; margin: 0px; vertical-align: top; border: none; "/>
For Oracle 11g RAC, the first thing to do is to build the GI (Grid Infrastructure) architecture.
Error:
Node 2 run the root. sh Script Error:
[Root @ hk2 ~] #/U01/11.2.0/grid/root. sh
Running Oracle 11g root.sh script...The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2014-07-07 17:04:37: Parsing the host name2014-07-07 17:04:37: Checking for super user privileges2014-07-07 17:04:37: User has super user privilegesUsing configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_paramsCreating trace directoryLOCAL ADD MODE Creating OCR keys for user 'root', privgrp 'root'..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingCRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node hk1, number 1, and is terminatingAn active cluster was found during exclusive startup, restarting to join the clusterCRS-2672: Attempting to start 'ora.mdnsd' on 'hk2'CRS-2676: Start of 'ora.mdnsd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.gipcd' on 'hk2'CRS-2676: Start of 'ora.gipcd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.gpnpd' on 'hk2'CRS-2676: Start of 'ora.gpnpd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.cssdmonitor' on 'hk2'CRS-2676: Start of 'ora.cssdmonitor' on 'hk2' succeededCRS-2672: Attempting to start 'ora.cssd' on 'hk2'CRS-2672: Attempting to start 'ora.diskmon' on 'hk2'CRS-2676: Start of 'ora.diskmon' on 'hk2' succeededCRS-2676: Start of 'ora.cssd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.ctssd' on 'hk2'CRS-2676: Start of 'ora.ctssd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.drivers.acfs' on 'hk2'CRS-2676: Start of 'ora.drivers.acfs' on 'hk2' succeededCRS-2672: Attempting to start 'ora.asm' on 'hk2'CRS-2676: Start of 'ora.asm' on 'hk2' succeededCRS-2672: Attempting to start 'ora.crsd' on 'hk2'CRS-2676: Start of 'ora.crsd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.evmd' on 'hk2'CRS-2676: Start of 'ora.evmd' on 'hk2' succeededTimed out waiting for the CRS stack to start.
View logs:
[Root @ hk2 crsd] # ls
Core.12152 core.15934 core.16128 crsd. log crsdOUT. log crsd. trc
[Root @ hk2 crsd] # tail crsdOUT. log
Unable to resolve address for localhost: 2016
ONS runtime exiting
Fatal error: eONS: eonsapi. c: Aug 4 2009 21:09:36
17:55:31
Changing directory to/u01/11.2.0/grid/log/hk2/crsd
17:55:31
CRSD REBOOT
Unable to resolve address for localhost: 2016
ONS runtime exiting
Fatal error: eONS: eonsapi. c: Aug 4 2009 21:09:36
[Root @ hk2 crsd] # more crsdOUT. log
17:08:23
Changing directory to/u01/11.2.0/grid/log/hk2/crsd
17:08:23
CRSD REBOOT
Unable to resolve address for localhost: 2016
ONS runtime exiting
Fatal error: eONS: eonsapi. c: Aug 4 2009 21:09:36
......
Error message: Unable to parse localhost host!
View the/etc/hosts file:
[Root @ hk2 crsd] # cat/etc/hosts
# Do not remove the following line, or various programs# that require network functionality will fail.192.168.56.101 hk1192.168.56.103 hk210.10.10.101 hk1-priv10.10.10.103 hk2-priv192.168.56.104 hk1-vip192.168.56.105 hk2-vip192.168.56.106 hk-scan
The localhost Parsing is missing!
Solution:
1. Edit the/etc/hosts file
[Root @ hk1 bin] # cat/etc/hosts
# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost192.168.56.101 hk1192.168.56.103 hk210.10.10.101 hk1-priv10.10.10.103 hk2-priv192.168.56.104 hk1-vip192.168.56.105 hk2-vip192.168.56.106 hk-scan
2. Delete the CRS configuration and run root. sh again.
[Root @ hk2 install] # perl rootcrs. pl-deconfig-force
2014-07-07 18:09:51: Parsing the host name2014-07-07 18:09:51: Checking for super user privileges2014-07-07 18:09:51: User has super user privilegesUsing configuration parameter file: ./crsconfig_paramsPRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1PRCR-1068 : Failed to query resourcesCannot communicate with crsdPRCR-1070 : Failed to check if resource ora.gsd is registeredCannot communicate with crsdPRCR-1070 : Failed to check if resource ora.ons is registeredCannot communicate with crsdPRCR-1070 : Failed to check if resource ora.eons is registeredCannot communicate with crsdACFS-9200: SupportedCRS-4535: Cannot communicate with Cluster Ready ServicesCRS-4000: Command Stop failed, or completed with errors.CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hk2'CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'hk2'CRS-2673: Attempting to stop 'ora.mdnsd' on 'hk2'CRS-2673: Attempting to stop 'ora.gpnpd' on 'hk2'CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'hk2'CRS-2673: Attempting to stop 'ora.ctssd' on 'hk2'CRS-2673: Attempting to stop 'ora.evmd' on 'hk2'CRS-2673: Attempting to stop 'ora.asm' on 'hk2'CRS-2677: Stop of 'ora.cssdmonitor' on 'hk2' succeededCRS-2677: Stop of 'ora.mdnsd' on 'hk2' succeededCRS-2677: Stop of 'ora.gpnpd' on 'hk2' succeededCRS-2677: Stop of 'ora.evmd' on 'hk2' succeededCRS-2677: Stop of 'ora.ctssd' on 'hk2' succeededCRS-2677: Stop of 'ora.drivers.acfs' on 'hk2' succeededCRS-2677: Stop of 'ora.asm' on 'hk2' succeededCRS-2673: Attempting to stop 'ora.cssd' on 'hk2'CRS-2677: Stop of 'ora.cssd' on 'hk2' succeededCRS-2673: Attempting to stop 'ora.diskmon' on 'hk2'CRS-2673: Attempting to stop 'ora.gipcd' on 'hk2'CRS-2677: Stop of 'ora.gipcd' on 'hk2' succeededCRS-2677: Stop of 'ora.diskmon' on 'hk2' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hk2' has completedCRS-4133: Oracle High Availability Services has been stopped.error: package cvuqdisk is not installedSuccessfully deconfigured Oracle clusterware stack on this node
Run root. sh again:
[Root @ hk2 install] #/u01/11.2.0/grid/root. sh
Running Oracle 11g root.sh script...The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2014-07-07 18:11:35: Parsing the host name2014-07-07 18:11:35: Checking for super user privileges2014-07-07 18:11:35: User has super user privilegesUsing configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_paramsLOCAL ADD MODE Creating OCR keys for user 'root', privgrp 'root'..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingCRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node hk1, number 1, and is terminatingAn active cluster was found during exclusive startup, restarting to join the clusterCRS-2672: Attempting to start 'ora.mdnsd' on 'hk2'CRS-2676: Start of 'ora.mdnsd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.gipcd' on 'hk2'CRS-2676: Start of 'ora.gipcd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.gpnpd' on 'hk2'CRS-2676: Start of 'ora.gpnpd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.cssdmonitor' on 'hk2'CRS-2676: Start of 'ora.cssdmonitor' on 'hk2' succeededCRS-2672: Attempting to start 'ora.cssd' on 'hk2'CRS-2672: Attempting to start 'ora.diskmon' on 'hk2'CRS-2676: Start of 'ora.diskmon' on 'hk2' succeededCRS-2676: Start of 'ora.cssd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.ctssd' on 'hk2'CRS-2676: Start of 'ora.ctssd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.drivers.acfs' on 'hk2'CRS-2676: Start of 'ora.drivers.acfs' on 'hk2' succeededCRS-2672: Attempting to start 'ora.asm' on 'hk2'CRS-2676: Start of 'ora.asm' on 'hk2' succeededCRS-2672: Attempting to start 'ora.crsd' on 'hk2'CRS-2676: Start of 'ora.crsd' on 'hk2' succeededCRS-2672: Attempting to start 'ora.evmd' on 'hk2'CRS-2676: Start of 'ora.evmd' on 'hk2' succeededhk2 2014/07/07 18:13:53 /u01/11.2.0/grid/cdata/hk2/backup_20140707_181353.olrPreparing packages for installation...cvuqdisk-1.0.7-1Configure Oracle Grid Infrastructure for a Cluster ... succeededUpdating inventory properties for clusterwareStarting Oracle Universal Installer...Checking swap space: must be greater than 500 MB. Actual 4095 MB PassedThe inventory pointer is located at /etc/oraInst.locThe inventory is located at /u01/app/oraInventory'UpdateNodeList' was successful.
@ Script runs successfully!
3. Verification
[Root @ hk2 bin] #./crs_stat-t
Name Type Target State Host ------------------------------------------------------------ora.eons ora.eons.type ONLINE ONLINE hk1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora.hk1.gsd application OFFLINE OFFLINE ora.hk1.ons application ONLINE ONLINE hk1 ora.hk1.vip ora....t1.type ONLINE ONLINE hk1 ora.hk2.gsd application OFFLINE OFFLINE ora.hk2.ons application ONLINE ONLINE hk2 ora.hk2.vip ora....t1.type ONLINE ONLINE hk2 ora....network ora....rk.type ONLINE ONLINE hk1 ora.ons ora.ons.type ONLINE ONLINE hk1
@ Now, the problem is solved!