프린트 하기

OS환경 : Oracle Linux 7.2(64bit)


DB 환경 : Oracle Database 11g R2


에러 : 

1번 node에서 root.sh를 정상적으로 마친 후 2번에서 root.sh 실행시 아래 에러 발생

[root@orarac50 grid]# ./root.sh

Running Oracle 11g root.sh script...


The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /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.

2018-03-18 11:25:14: Parsing the host name

2018-03-18 11:25:14: Checking for super user privileges

2018-03-18 11:25:14: User has super user privileges

Using configuration parameter file: /app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

/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


해결 방법 : 

아래 패키지를 설치해 준다.

yum install -y libcap-2.16-5.5.el6.i686

yum install -y compat-libcap1-1.10-1.i686

yum install -y compat-libcap1-1.10-1.x86_64


그 후 root.sh를 다시 실행하기 전에 rootcrs.pl 스크립트를 사용하여 Grid를 deconfig 해야 한다.

rootcrs.pl 스크립트는 $GRID_HOME/install 에 있다. 


[root@oracle50 install]# pwd

/app/oracle/product/11.2.0/db_1/crs/install


[root@oracle50 install]# ./rootcrs.pl -deconfig -force -verbose

2018-03-18 11:30:11: Parsing the host name

2018-03-18 11:30:11: Checking for super user privileges

2018-03-18 11:30:11: User has super user privileges

Using configuration parameter file: ./crsconfig_params


rootcrs.pl 스크립트가 완료되면 root.sh를 다시 실행하면 된다.



원인 : 

패키지가 제대로 설치되지 않아 발생하는 문제.



참조 : https://gruffdba.wordpress.com/2012/11/06/11gr2-grid-install-clscfg-bin-error-while-loading-shared-libraries-libcap-so-1-cannot-open-shared-object-file/