安装grid时:/oracle/app/11.2.0/grid/root.sh 报line 9379.

[root@itpux1 ~]# /oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /oracle/app/oraInventory to oinstall.
The execution of the script is complete.
[root@itpux1 ~]# /oracle/app/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=  /oracle/app/11.2.0/grid

Enter 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 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: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'itpux1'
CRS-2676: Start of 'ora.mdnsd' on 'itpux1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'itpux1'
CRS-2676: Start of 'ora.gpnpd' on 'itpux1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'itpux1'
CRS-2672: Attempting to start 'ora.gipcd' on 'itpux1'
CRS-2676: Start of 'ora.cssdmonitor' on 'itpux1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'itpux1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'itpux1'
CRS-2672: Attempting to start 'ora.diskmon' on 'itpux1'
CRS-2676: Start of 'ora.diskmon' on 'itpux1' succeeded
CRS-2676: Start of 'ora.cssd' on 'itpux1' succeeded

已成功创建并启动 ASM。

已成功创建磁盘组dggrid1。

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 48b54f19e5314f14bfa0e745ec1a3f98.
Successfully replaced voting disk group with +dggrid1.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   48b54f19e5314f14bfa0e745ec1a3f98 (/dev/mapper/dggrid1p1) [DGGRID1]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'itpux1'
CRS-2676: Start of 'ora.asm' on 'itpux1' succeeded
CRS-2672: Attempting to start 'ora.DGGRID1.dg' on 'itpux1'
CRS-2676: Start of 'ora.DGGRID1.dg' on 'itpux1' succeeded
/oracle/app/11.2.0/grid/bin/srvctl start nodeapps -n itpux1 ... failed
FirstNode configuration failed at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9379.
/oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/rootcrs.pl execution failed

 

 

解决办法:

查找日志文件 :

[root@itpux1 log]# find /oracle/ -name oraagent_grid.log
/oracle/app/11.2.0/grid/log/itpux1/agent/crsd/oraagent_grid/oraagent_grid.log
/oracle/app/11.2.0/grid/log/itpux1/agent/ohasd/oraagent_grid/oraagent_grid.log

#more oraagent_grid.log

此问题是因:/etc/hosts文件配置错误,添加

127.0.0.1 localhost  

 

即可!

 

你可能感兴趣的:(安装grid时:/oracle/app/11.2.0/grid/root.sh 报line 9379.)