ITPub博客

首页 > 数据库 > Oracle > REDHAT6.5 安装 grid报"Failed to create keys in the OLR, rc = 127" 故障解决方案

REDHAT6.5 安装 grid报"Failed to create keys in the OLR, rc = 127" 故障解决方案

原创 Oracle 作者:刘锡亚 时间:2017-06-08 17:53:26 0 删除 编辑

首先故障报错是这样的

点击(此处)折叠或打开

  1. [root@redhat01 lib64]# /u01/app/11.2.0/grid/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

  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/crs/install/crsconfig_params
  15. User ignored Prerequisites during installation
  16. Installing Trace File Analyzer
  17. Failed to create keys in the OLR, rc = 127, Message:
  18.   /u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

  19. Failed to create keys in the OLR at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 7660.
  20. /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed

这是由于缺少包compat-libcap1-1.10-1.x86_64.rp
导致

点击(此处)折叠或打开

  1. [root@redhat01 Packages]# rpm -ivh compat-libcap1-1.10-1.x86_64.rpm
  2. warning: compat-libcap1-1.10-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
  3. Preparing... ########################################### [100%]
  4.    1:compat-libcap1 ########################################### [100%]

删除以前的CRS配置

点击(此处)折叠或打开

  1. [root@redhat01 crs]# perl /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
  2. Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
  3. PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
  4. PRCR-1068 : Failed to query resources
  5. Cannot communicate with crsd
  6. PRCR-1070 : Failed to check if resource ora.gsd is registered
  7. Cannot communicate with crsd
  8. PRCR-1070 : Failed to check if resource ora.ons is registered
  9. Cannot communicate with crsd

  10. CRS-4535: Cannot communicate with Cluster Ready Services
  11. CRS-4000: Command Stop failed, or completed with errors.
  12. CLSU-00100: Operating System function: failed failed with error data: 2
  13. CLSU-00101: Operating System error message: No such file or directory
  14. CLSU-00103: error location: scrsearch3
  15. CLSU-00104: additional error information: id doesnt exist scls_scr_setval
  16. CRS-4544: Unable to connect to OHAS
  17. CRS-4000: Command Stop failed, or completed with errors.
  18. ACFS-9313: No ADVM/ACFS installation detected.
  19. Removing Trace File Analyzer
  20. Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
  21. Successfully deconfigured Oracle clusterware stack on this node
再次运行第二个脚本   成功!

点击(此处)折叠或打开

  1. [root@redhat01 crs]# /u01/app/11.2.0/grid/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

  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/crs/install/crsconfig_params
  15. User ignored Prerequisites during installation
  16. Installing Trace File Analyzer
  17. OLR initialization - successful
  18.   root wallet
  19.   root wallet cert
  20.   root cert export
  21.   peer wallet
  22.   profile reader wallet
  23.   pa wallet
  24.   peer wallet keys
  25.   pa wallet keys
  26.   peer cert request
  27.   pa cert request
  28.   peer cert
  29.   pa cert
  30.   peer root cert TP
  31.   profile reader root cert TP
  32.   pa root cert TP
  33.   peer pa cert TP
  34.   pa peer cert TP
  35.   profile reader pa cert TP
  36.   profile reader peer cert TP
  37.   peer user cert
  38.   pa user cert
  39. Adding Clusterware entries to upstart
  40. CRS-2672: Attempting to start 'ora.mdnsd' on 'redhat01'
  41. CRS-2676: Start of 'ora.mdnsd' on 'redhat01' succeeded
  42. CRS-2672: Attempting to start 'ora.gpnpd' on 'redhat01'
  43. CRS-2676: Start of 'ora.gpnpd' on 'redhat01' succeeded
  44. CRS-2672: Attempting to start 'ora.cssdmonitor' on 'redhat01'
  45. CRS-2672: Attempting to start 'ora.gipcd' on 'redhat01'
  46. CRS-2676: Start of 'ora.cssdmonitor' on 'redhat01' succeeded
  47. CRS-2676: Start of 'ora.gipcd' on 'redhat01' succeeded
  48. CRS-2672: Attempting to start 'ora.cssd' on 'redhat01'
  49. CRS-2672: Attempting to start 'ora.diskmon' on 'redhat01'
  50. CRS-2676: Start of 'ora.diskmon' on 'redhat01' succeeded
  51. CRS-2676: Start of 'ora.cssd' on 'redhat01' succeeded

  52. ASM created and started successfully.

  53. Disk Group OCR created successfully.

  54. clscfg: -install mode specified
  55. Successfully accumulated necessary OCR keys.
  56. Creating OCR keys for user 'root', privgrp 'root'..
  57. Operation successful.
  58. CRS-4256: Updating the profile
  59. Successful addition of voting disk 92715f6dddc54f77bf43d785c5f8d49f.
  60. Successful addition of voting disk 510b1a1b4a844f4bbfc3e47654c0a29f.
  61. Successful addition of voting disk 9e10a6bea3ff4f1bbf7cfc284506c996.
  62. Successfully replaced voting disk group with +OCR.
  63. CRS-4256: Updating the profile
  64. CRS-4266: Voting file(s) successfully replaced
  65. ## STATE File Universal Id File Name Disk group
  66. -- ----- ----------------- --------- ---------
  67.  1. ONLINE 92715f6dddc54f77bf43d785c5f8d49f (/dev/raw/raw1) [OCR]
  68.  2. ONLINE 510b1a1b4a844f4bbfc3e47654c0a29f (/dev/raw/raw2) [OCR]
  69.  3. ONLINE 9e10a6bea3ff4f1bbf7cfc284506c996 (/dev/raw/raw3) [OCR]
  70. Located 3 voting disk(s).
  71. CRS-2672: Attempting to start 'ora.asm' on 'redhat01'
  72. CRS-2676: Start of 'ora.asm' on 'redhat01' succeeded
  73. CRS-2672: Attempting to start 'ora.OCR.dg' on 'redhat01'
  74. CRS-2676: Start of 'ora.OCR.dg' on 'redhat01' succeeded
  75. Preparing packages for installation...
  76. cvuqdisk-1.0.9-1
  77. Configure Oracle Grid Infrastructure for a Cluster ... succeeded













来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31405405/viewspace-2140494/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-10-25

  • 博文量
    13
  • 访问量
    18653