安装11g的集群软件的时候,在最后运行root.sh脚本时候,没有执行成功,最后提示如下错误:

  1. [root@r2 ~]# /u01/app/11.2.0/grid_1/root.sh

  2. Performing root user operation for Oracle 11g


  3. The following environment variables are set as:

  4.     ORACLE_OWNER= grid

  5.     ORACLE_HOME=  /u01/app/11.2.0/grid_1


  6. Enter the full pathname of the local bin directory: [/usr/local/bin]:

  7. The contents of "dbhome" have not changed. No need to overwrite.

  8. The contents of "oraenv" have not changed. No need to overwrite.

  9. The contents of "coraenv" have not changed. No need to overwrite.


  10. Entries will be added to the /etc/oratab file as needed by

  11. Database Configuration Assistant when a database is created

  12. Finished running generic part of root script.

  13. Now product-specific root actions will be performed.

  14. Using configuration parameter file: /u01/app/11.2.0/grid_1/crs/install/crsconfig_params

  15. Creating trace directory

  16. User ignored Prerequisites during installation

  17. Installing Trace File Analyzer

  18. OLR initialization - successful

  19. CRS-2728: A resource type with the name 'ora.daemon.type' is already registered

  20. CRS-4000: Command Add failed, or completed with errors.

  21. CRS-2728: A resource type with the name 'ora.haip.type' is already registered

  22. CRS-4000: Command Add failed, or completed with errors.

  23. CRS-2728: A resource type with the name 'ora.mdns.type' is already registered

  24. CRS-4000: Command Add failed, or completed with errors.

  25. Failed to register Grid Infrastructure type ora.mdns.type at /u01/app/11.2.0/grid_1/crs/install/crsconfig_lib.pm line 7940.

  26. /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

  1. [root@r2 ~]# cd /u01/app/11.2.0/grid_1/crs/install/

  2. [root@r2 install]# ./roothas.pl -deconfig -force -verbose

  3. Using configuration parameter file: ./crsconfig_params

  4. CRS-4535: Cannot communicate with Cluster Ready Services

  5. CRS-4000: Command Stop failed, or completed with errors.

  6. CRS-4535: Cannot communicate with Cluster Ready Services

  7. CRS-4000: Command Delete failed, or completed with errors.

  8. CLSU-00100: Operating System function: failed failed with error data: 2

  9. CLSU-00101: Operating System error message: No such file or directory

  10. CLSU-00103: error location: scrsearch3

  11. CLSU-00104: additional error information: id doesnt exist scls_scr_setval

  12. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'r2'

  13. CRS-2673: Attempting to stop 'ora.mdnsd' on 'r2'

  14. CRS-2673: Attempting to stop 'ora.crf' on 'r2'

  15. CRS-2679: Attempting to clean 'ora.cssd' on 'r2'

  16. CRS-2679: Attempting to clean 'ora.cssdmonitor' on 'r2'

  17. CRS-2677: Stop of 'ora.mdnsd' on 'r2' succeeded

  18. CRS-2677: Stop of 'ora.crf' on 'r2' succeeded

  19. CRS-2673: Attempting to stop 'ora.gipcd' on 'r2'

  20. CRS-2681: Clean of 'ora.cssd' on 'r2' succeeded

  21. CRS-2681: Clean of 'ora.cssdmonitor' on 'r2' succeeded

  22. CRS-2677: Stop of 'ora.gipcd' on 'r2' succeeded

  23. CRS-2673: Attempting to stop 'ora.gpnpd' on 'r2'

  24. CRS-2677: Stop of 'ora.gpnpd' on 'r2' succeeded

  25. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'r2' has completed

  26. CRS-4133: Oracle High Availability Services has been stopped.

  27. Successfully deconfigured Oracle Restart stack

复制代码

重新运行root.sh成功

  1. [root@r2 install]# /u01/app/11.2.0/grid_1/root.sh

  2. Performing root user operation for Oracle 11g


  3. The following environment variables are set as:

  4.     ORACLE_OWNER= grid

  5.     ORACLE_HOME=  /u01/app/11.2.0/grid_1


  6. Enter the full pathname of the local bin directory: [/usr/local/bin]:

  7. The contents of "dbhome" have not changed. No need to overwrite.

  8. The contents of "oraenv" have not changed. No need to overwrite.

  9. The contents of "coraenv" have not changed. No need to overwrite.


  10. Entries will be added to the /etc/oratab file as needed by

  11. Database Configuration Assistant when a database is created

  12. Finished running generic part of root script.

  13. Now product-specific root actions will be performed.

  14. Using configuration parameter file: /u01/app/11.2.0/grid_1/crs/install/crsconfig_params

  15. User ignored Prerequisites during installation

  16. Installing Trace File Analyzer

  17. OLR initialization - successful

  18. Adding Clusterware entries to inittab

  19. CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node r1, number 1, and is terminating

  20. An active cluster was found during exclusive startup, restarting to join the cluster

  21. Preparing packages for installation...

  22. cvuqdisk-1.0.9-1

  23. Configure Oracle Grid Infrastructure for a Cluster ... succeeded