[root@hostname ~]# /opt/oraInventory/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oraInventory/product/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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
/opt/oraInventory/product/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, Message:
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Failed to create keys in the OLR at /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 7497.
/opt/oraInventory/product/11.2.0/grid/perl/bin/perl -I/opt/oraInventory/product/11.2.0/grid/perl/lib -I/opt/oraInventory/product/11.2.0/grid/crs/install /opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl execution failed
Solution:
1. Install following rpm’s:
compat-libcap1-1.10-1.x86_64
libcap-2.16-5.5.el6.x86_64
2. If you encounter this problem during the install, you will need to use the rootcrs.pl script to de-configure the Grid before you can run root.sh again
[root@hostname ~]# /opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose
Using configuration parameter file: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 0, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle Restart stack
3. Execute root.sh
[root@hostname ~]# /opt/oraInventory/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oraInventory/product/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: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node hostname successfully pinned.
Adding Clusterware entries to upstart
hostname 2015/06/12 11:03:38 /opt/oraInventory/product/11.2.0/grid/cdata/hostname/backup_20150612_110338.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server