我是靠谱客的博主 体贴月饼,最近开发中收集的这篇文章主要介绍REDHAT6.5 安装 grid报"Failed to create keys in the OLR, rc = 127" 故障解决方案,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述


首先故障报错是这样的

点击(此处)折叠或打开

[root@redhat01 lib64]# /u01/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= /u01/app/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/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
Failed to create keys in the OLR, rc = 127, Message:   /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

Failed to create keys in the OLR at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 7660.
/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配置

点击(此处)折叠或打开

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

CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop 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-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
ACFS-9313: No ADVM/ACFS installation detected.
Removing Trace File Analyzer
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node
再次运行第二个脚本   成功!

点击(此处)折叠或打开

[root@redhat01 crs]# /u01/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= /u01/app/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/11.2.0/grid/crs/install/crsconfig_params
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 'redhat01'
CRS-2676: Start of 'ora.mdnsd' on 'redhat01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'redhat01'
CRS-2676: Start of 'ora.gpnpd' on 'redhat01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'redhat01'
CRS-2672: Attempting to start 'ora.gipcd' on 'redhat01'
CRS-2676: Start of 'ora.cssdmonitor' on 'redhat01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'redhat01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'redhat01'
CRS-2672: Attempting to start 'ora.diskmon' on 'redhat01'
CRS-2676: Start of 'ora.diskmon' on 'redhat01' succeeded
CRS-2676: Start of 'ora.cssd' on 'redhat01' succeeded

ASM created and started successfully.

Disk Group OCR created successfully.

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 92715f6dddc54f77bf43d785c5f8d49f.
Successful addition of voting disk 510b1a1b4a844f4bbfc3e47654c0a29f.
Successful addition of voting disk 9e10a6bea3ff4f1bbf7cfc284506c996.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
 1. ONLINE 92715f6dddc54f77bf43d785c5f8d49f (/dev/raw/raw1) [OCR]
 2. ONLINE 510b1a1b4a844f4bbfc3e47654c0a29f (/dev/raw/raw2) [OCR]
 3. ONLINE 9e10a6bea3ff4f1bbf7cfc284506c996 (/dev/raw/raw3) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'redhat01'
CRS-2676: Start of 'ora.asm' on 'redhat01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'redhat01'
CRS-2676: Start of 'ora.OCR.dg' on 'redhat01' succeeded
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded













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

转载于:http://blog.itpub.net/31405405/viewspace-2140494/

最后

以上就是体贴月饼为你收集整理的REDHAT6.5 安装 grid报"Failed to create keys in the OLR, rc = 127" 故障解决方案的全部内容,希望文章能够帮你解决REDHAT6.5 安装 grid报"Failed to create keys in the OLR, rc = 127" 故障解决方案所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部