Thursday, October 17, 2013

Failed to create keys in the OLR, rc = 127, Message:

Grid Version : 11.2.0.3
OS : RHEL 6.3


While running root.sh , we got below error , after little bit of googling I found that we need more packages
Note:  there was no error reported regarding missing packages


[root@host dev]# /opt/app/11.2.0.3/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/app/11.2.0.3/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
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: /opt/app/11.2.0.3/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Failed to create keys in the OLR, rc = 127, Message:
  /opt/app/11.2.0.3/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 /opt/app/11.2.0.3/grid/crs/install/crsconfig_lib.pm line 7497.
/opt/app/11.2.0.3/grid/perl/bin/perl -I/opt/app/11.2.0.3/grid/perl/lib -I/opt/app/11.2.0.3/grid/crs/install /opt/app/11.2.0.3/grid/crs/install/rootcrs.pl execution failed


What I found that we have these two packages installed 

[root@host dev]# yum list installed | grep -i libcap
Unable to read consumer identity
libcap.x86_64                      2.16-5.5.el6         @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3
libcap-ng.x86_64                   0.6.4-3.el6_0.1      @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3

I went ahead and installed these two packages and root.sh went fine.

[root@host dev]# yum install compat-libcap1.i686
[root@host dev]# yum install compat-libcap1.x86_64 -y



[root@host dev]# yum list installed | grep -i libcap
Unable to read consumer identity
compat-libcap1.i686                1.10-1               @nielsen-rhel-6.3-x86_64
compat-libcap1.x86_64              1.10-1               @nielsen-rhel-6.3-x86_64
libcap.x86_64                      2.16-5.5.el6         @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3
libcap-ng.x86_64                   0.6.4-3.el6_0.1      @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3

1 comment:

  1. Thanks for sharing this.
    This works in my case where i have added the node OEL 6(11.2.0.3) in the existing cluster of OEL 5.5.

    Thanks,
    Pankaj

    ReplyDelete