Monday, July 13, 2015

error while loading shared libraries: libcap.so.1: cannot open shared object file:

When I was installing single instance  ASM (grid infrastructure) Software .I came across with following error while running root.sh .

[root@dg2 ~]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...

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]:
   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.sh script.
Now product-specific root actions will be performed.
2015-07-06 22:47:51: Checking for super user privileges
2015-07-06 22:47:51: User has super user privileges
2015-07-06 22:47:51: Parsing the host name
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
/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, rc = 32512, 32512
OLR configuration failed

 
For that what i did was.It is required to install  relevant rpm which  provides above libcap.so.

 * compat-libcap1-1.10-1.x86_64
 * compat-libcap1-1.10-1.i386
 * libcap-*

yum install compat-libcap1-1.10-1.i386
yum install  compat-libcap1-1.10-1.x86_64 
yum install  libcap-* 

After this you may want to run root.sh again. Befor this you may want to deconfigure the instance configuration.


$GRID_HOME\crs\install\rootcrs.pl -deconfig  -force -verbose 
$GRID_HOME\crs\install\roothas.pl -deconfig  -force -verbose

 [root@dg2 install]# ./roothas.pl -deconfig -force -verbose
2015-07-06 23:09:17: Checking for super user privileges
2015-07-06 23:09:17: User has super user privileges
2015-07-06 23:09:17: Parsing the host name
Using configuration parameter file: ./crsconfig_params
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
You must kill ohasd processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
/u01/app/11.2.0/grid/bin/acfsdriverstate: line 51: /lib/acfstoolsdriver.sh: No such file or directory
/u01/app/11.2.0/grid/bin/acfsdriverstate: line 51: exec: /lib/acfstoolsdriver.sh: cannot execute: No such file or directory
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
/bin/dd: opening `': No such file or directory
Successfully deconfigured Oracle Restart stack
[root@dg2 install]#




Now you can run  GRID_HOME\crs\install

No comments:

Post a Comment