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

Oracle 11gR2 Grid, on SLES 11 (x86_64), 2.6.27.19-5

When I executed, root.sh on first node, it failed with “/oragrid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory” error

# /oragrid/root.sh
Running Oracle 11g root.sh script…

The following environment variables are set as:
ORACLE_OWNER= oragrid
ORACLE_HOME= /oragrid

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.
2010-03-31 14:57:01: Parsing the host name
2010-03-31 14:57:01: Checking for super user privileges
2010-03-31 14:57:01: User has super user privileges
Using configuration parameter file: /oragrid/crs/install/crsconfig_params
/oragrid/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 = 127, 32512
OLR configuration failed

Searched if the physical file is present on server. libcap.so.1 was missing. But I found the same file on one of the RHEL boxes.

Checked the source RPM from RHEL box
=============================

# rpm -qf ./lib/libcap.so.1
libcap-1.10-26

This RPM (libcap-1.10-26) was missing from my SLES box

# rpm -qa grep libcap
libcap2-2.11-2.15
libcap2-32bit-2.11-2.15

NOTE : Before starting the install, I executed ./runcluvfy.sh stage -pre crsinst -n racgridn1,racgridn2 -verbose, but it did not report any error related to RPM

Installed required RPM using YAST
=========================

# rpm -qa grep libcap
libcap-progs-2.11-2.15
libcap2-2.11-2.15
libcap1-1.10-6.10
libcap1-32bit-1.10-6.10
libcap2-32bit-2.11-2.15

Deconfigured the CRS
===============

# /oragrid/crs/install/rootcrs.pl -deconfig -force
2010-03-31 15:06:23: Parsing the host name
2010-03-31 15:06:23: Checking for super user privileges
2010-03-31 15:06:23: User has super user privileges
Using configuration parameter file: /oragrid/crs/install/crsconfig_params
PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1
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
PRCR-1070 : Failed to check if resource ora.eons is registered
Cannot communicate with crsd

ADVM/ACFS is not supported on SUSE
ACFS-9201: Not Supported
Failure at scls_scr_setval with code 8
Internal Error Information:
Category: -2
Operation: failed
Location: scrsearch3
Other: id doesnt exist scls_scr_setval
System Dependent Information: 2

CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node

Then again executed the roo.sh, which was successful this time

# /oragrid/root.sh
Running Oracle 11g root.sh script…

The following environment variables are set as:
ORACLE_OWNER= oragrid
ORACLE_HOME= /oragrid

EEnter 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.
2010-03-31 15:07:05: Parsing the host name
2010-03-31 15:07:05: Checking for super user privileges
2010-03-31 15:07:05: User has super user privileges
Using configuration parameter file: /oragrid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation 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 daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on SUSE

CRS-2672: Attempting to start ‘ora.gipcd’ on ‘racgridn1’
CRS-2672: Attempting to start ‘ora.mdnsd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.gipcd’ on ‘racgridn1’ succeeded
CRS-2676: Start of ‘ora.mdnsd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.gpnpd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.gpnpd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘racgridn1’
CRS-2676: Start of ‘ora.cssdmonitor’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.cssd’ on ‘racgridn1’
CRS-2672: Attempting to start ‘ora.diskmon’ on ‘racgridn1’
CRS-2676: Start of ‘ora.diskmon’ on ‘racgridn1’ succeeded
CRS-2676: Start of ‘ora.cssd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.ctssd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.ctssd’ on ‘racgridn1’ succeeded
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation successful.
CRS-2672: Attempting to start ‘ora.crsd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.crsd’ on ‘racgridn1’ succeeded
Now formatting voting disk: /ocrvote/vote/votedisk.vot.
CRS-4603: Successful addition of voting disk /ocrvote/vote/votedisk.vot.
## STATE File Universal Id File Name Disk group
— —– —————– ——— ———
1. ONLINE 1c9654b7e2b14f53bf30511186eaa1d0 (/ocrvote/vote/votedisk.vot) []
Located 1 voting disk(s).
CRS-2673: Attempting to stop ‘ora.crsd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.crsd’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.ctssd’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.cssdmonitor’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.cssdmonitor’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.cssd’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.gpnpd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.gpnpd’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.gipcd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.gipcd’ on ‘racgridn1’ succeeded
CRS-2673: Attempting to stop ‘ora.mdnsd’ on ‘racgridn1’
CRS-2677: Stop of ‘ora.mdnsd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.mdnsd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.mdnsd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.gipcd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.gipcd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.gpnpd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.gpnpd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘racgridn1’
CRS-2676: Start of ‘ora.cssdmonitor’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.cssd’ on ‘racgridn1’
CRS-2672: Attempting to start ‘ora.diskmon’ on ‘racgridn1’
CRS-2676: Start of ‘ora.diskmon’ on ‘racgridn1’ succeeded
CRS-2676: Start of ‘ora.cssd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.ctssd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.ctssd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.crsd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.crsd’ on ‘racgridn1’ succeeded
CRS-2672: Attempting to start ‘ora.evmd’ on ‘racgridn1’
CRS-2676: Start of ‘ora.evmd’ on ‘racgridn1’ succeeded

racgridn1 2010/03/31 15:12:54 /oragrid/cdata/racgridn1/backup_20100331_151254.olr
Preparing packages for installation…
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster … succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB. Actual 4094 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /oraInventory
‘UpdateNodeList’ was successful.

Advertisements
This entry was posted in Oracle Software Install / Deinstall and tagged . Bookmark the permalink.

4 Responses to Error while loading shared libraries: libcap.so.1: cannot open shared object file

  1. rowlf says:

    Thanks! Saved me a ton of work. Installed libcap1 and after that everything worked smoothly…

  2. preethi says:

    I am facing below issue..

    Initially i got OLR configuration failed.. so as per the below link i had deconfigured Oracle clusterware and run again root.sh but the same error again.

    Help me to resolve these issue.

    logbash-4.2# ./rootcrs.pl -deconfig -force -verbose
    2014-07-09 11:46:58: Parsing the host name
    2014-07-09 11:46:58: Checking for super user privileges
    2014-07-09 11:46:58: User has super user privileges
    Using configuration parameter file: ./crsconfig_params
    PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1
    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
    PRCR-1070 : Failed to check if resource ora.eons is registered
    Cannot communicate with crsd

    ADVM/ACFS is not supported on redhat-release-server-6Server-6.5.0.1.el6.x86_64

    ACFS-9201: Not Supported
    Failure at scls_scr_setval with code 8
    Internal Error Information:
    Category: -2
    Operation: failed
    Location: scrsearch3
    Other: id doesnt exist scls_scr_setval
    System Dependent Information: 2

    CRS-4544: Unable to connect to OHAS
    CRS-4000: Command Stop failed, or completed with errors.
    error: package cvuqdisk is not installed
    Successfully deconfigured Oracle clusterware stack on this node
    logbash-4.2# /u01/app/11.2.0/grid/root.sh
    Running Oracle 11g root.sh script…

    The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /u01/app/11.2.0/grid

    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file “dbhome” already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]:
    The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]: y
    Copying oraenv to /usr/local/bin …
    The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]: y
    Copying coraenv to /usr/local/bin …

    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.
    2014-07-09 11:48:02: Parsing the host name
    2014-07-09 11:48:02: Checking for super user privileges
    2014-07-09 11:48:02: User has super user privileges
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
    /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 = 127, 32512
    OLR configuration failed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s