Moneycontrol Brokerage Recos

Wednesday, January 28, 2015

Error while loading shared libraries: libstdc++.so.5



If you are having the following issue while setting up RAC Clusterware installation or setting up an +ASM Instance then here you go:

[root@ora10srv bin]# ./localconfig add
/etc/oracle does not exist. Creating it now.
/u01/app/oracle/product/10.2.0/db_1/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
/etc/init.d/init.cssd: line 649: /etc/oracle/scls_scr/ora10srv/root/cssrun: No such file or directory
Startup will be queued to init within 30 seconds.
Checking the status of new Oracle init process...
/u01/app/oracle/product/10.2.0/db_1/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started.


Solution:
========

Ref: Metalink Note 400565.1 / Bug.5671963. Install compat-libstdc++-33-3.2.3-47.3.ia64.rpm and repeat the Oracle Clusterware installation.

Please note that compat-libstdc++-33-3.2.3-47.3.i386.rpm package provides the following libraries:

Provides :
libstdc++.so.5
libstdc++.so.5(CXXABI_1.2)
libstdc++.so.5(CXXABI_1.2.1)
libstdc++.so.5(CXXABI_1.2.2)
libstdc++.so.5(GLIBCPP_3.2)
libstdc++.so.5(GLIBCPP_3.2.1)
libstdc++.so.5(GLIBCPP_3.2.2)
libstdc++.so.5(GLIBCPP_3.2.3)
libstdc++.so.5(GLIBCPP_3.2.4)
compat-libstdc++-33


Now, having installed the above RPM try following commands again to start the CSS service.


$./localconfig delete

$./localconfig add


[root@ora10srv bin]# ./localconfig add
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 30 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        ora10srv
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)



You can see that Oracle CSS service is installed and running now.

[root@ora10srv bin]# ps -ef | grep css
oracle   25308     1  0 14:32 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/ocssd.bin
root     25549  5496  0 14:37 pts/2    00:00:00 grep css

No comments:

Post a Comment