安装11g的集群软件的时候,在最后运行root.sh脚本时候,没有执行成功,最后提示如下错误:
[root@r2 ~]# /u01/app/11.2.0/grid_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid_1
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/11.2.0/grid_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
<font color="red">CRS-2728: A resource type with the name 'ora.daemon.type' is already registered</font>
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.haip.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.mdns.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
Failed to register Grid Infrastructure type ora.mdns.type at /u01/app/11.2.0/grid_1/crs/install/crsconfig_lib.pm line 7940.
/u01/app/11.2.0/grid_1/perl/bin/perl -I/u01/app/11.2.0/grid_1/perl/lib -I/u01/app/11.2.0/grid_1/crs/install /u01/app/11.2.0/grid_1/crs/install/rootcrs.pl execution failed
复制代码
原因分析:
由于系统资源繁忙,导致创建失败,一般情况下,跟主机性能偏差有关,该问题一般出现在虚拟机环境中
解决方法:
进入$grid_home/install/运行./roothas.pl -deconfig -force -verbose后,从新执行root.sh
[root@r2 ~]# cd /u01/app/11.2.0/grid_1/crs/install/
[root@r2 install]# ./roothas.pl -deconfig -force -verbose
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CLSU-00100: Operating System function: failed failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch3
CLSU-00104: additional error information: id doesnt exist scls_scr_setval
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'r2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'r2'
CRS-2673: Attempting to stop 'ora.crf' on 'r2'
CRS-2679: Attempting to clean 'ora.cssd' on 'r2'
CRS-2679: Attempting to clean 'ora.cssdmonitor' on 'r2'
CRS-2677: Stop of 'ora.mdnsd' on 'r2' succeeded
CRS-2677: Stop of 'ora.crf' on 'r2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'r2'
CRS-2681: Clean of 'ora.cssd' on 'r2' succeeded
CRS-2681: Clean of 'ora.cssdmonitor' on 'r2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'r2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'r2'
CRS-2677: Stop of 'ora.gpnpd' on 'r2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'r2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle Restart stack
复制代码
重新运行root.sh成功
[root@r2 install]# /u01/app/11.2.0/grid_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid_1
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/11.2.0/grid_1/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node r1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded