重庆思庄Oracle、Redhat认证学习论坛

标题: 安装rac执行root.sh提示配置asm磁盘组失败 [打印本页]

作者: miss_puff    时间: 2017-8-10 09:15
标题: 安装rac执行root.sh提示配置asm磁盘组失败
H-VSPYY-SPGX-DBS-1:/setup/db/database/rpm # /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
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'h-vspyy-spgx-dbs-1'
CRS-2676: Start of 'ora.cssdmonitor' on 'h-vspyy-spgx-dbs-1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'h-vspyy-spgx-dbs-1'
CRS-2672: Attempting to start 'ora.diskmon' on 'h-vspyy-spgx-dbs-1'
CRS-2676: Start of 'ora.diskmon' on 'h-vspyy-spgx-dbs-1' succeeded
CRS-2676: Start of 'ora.cssd' on 'h-vspyy-spgx-dbs-1' succeeded

Creation of ASM spfile in disk group failed. Following error occured: ORA-29780: unable to connect to GPnP daemon [CLSGPNP_ERR]


Configuration of ASM ... failed
see asmca logs at /u01/app/grid/base/cfgtoollogs/asmca for details
Did not succssfully configure and start ASM at /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 6912.
/u01/app/grid/product/11.2.0/grid/perl/bin/perl -I/u01/app/grid/product/11.2.0/grid/perl/lib -I/u01/app/grid/product/11.2.0/grid/crs/install /u01/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl execution failed


原因:
在安装操作系统过程中选择了预安装数据库

解决办法:
检查root用户下是否有设置ORACLE_HOME和ORA_CRS_HOME环境变量,如果有,则删除


H-VSPYY-SPGX-DBS-1:/tmp # echo $ORACLE_HOME
/opt/oracle/product/11gR1/db
H-VSPYY-SPGX-DBS-1:/tmp # echo $ORA_CRS_HOME
/opt/oracle/product/11gR1/crs
H-VSPYY-SPGX-DBS-1:/tmp # unset ORACLE_HOME
H-VSPYY-SPGX-DBS-1:/tmp # unset ORA_CRS_HOME
H-VSPYY-SPGX-DBS-1:/tmp # ll /etc/profile.d/oracle.*
-rw-r--r-- 1 root root 2418 May  8  2010 /etc/profile.d/oracle.csh
-rw-r--r-- 1 root root 3178 May  8  2010 /etc/profile.d/oracle.sh
H-VSPYY-SPGX-DBS-1:/tmp # rm /etc/profile.d/oracle.*
H-VSPYY-SPGX-DBS-1:/tmp #






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2