Oracle 10gR2 RAC Installation Error: error while loading shared libraries -libpthread.so.0

Published: Apr 15th, 2012 Category: Linux Tips, Oracle

1) VIPCA Configuration
Error 1: error while loading shared libraries -libpthread.so.0
While installing Oracle 10gR2 RAC (Cluster) on Redhat Enterprise Linux 5 or CentOS 5 you will get following error when you execute root.sh (After Cluster Installation) on last node. This Error is thrown when root.sh execute VIPCA which Virtual IP configuration Tool.

Running vipca(silent) for configuring nodeapps
/u01/app/oracle/product/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[root@rac2 crs]#

To fix this issue edit /u01/app/oracle/product/10.2.0/clust/bin/vipca and add following (Green colored or on line number 124):

if [ "$arch" = "i686" -o "$arch" = "ia64" ]
then
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
fi
unset LD_ASSUME_KERNEL


Error 2: Error 0(Native: listNetInterfaces:[3])

Once above changes made and when you run /u01/app/oracle/product/10.2.0/clust/bin/vipca you will get following Error

[root@rac2 bin]# /u01/app/oracle/product/10.2.0/clust/bin/vipca
Error 0(Native: listNetInterfaces:[3])
[Error 0(Native: listNetInterfaces:[3])]

Now you will have to configure Virtual IP’s Manually. You can configure it using following commands

[root@rac2 bin]# pwd
/u01/app/oracle/product/10.2.0/clust/bin
[root@rac2 bin]# ./oifcfg setif -global eth0/115.124.120.0:public
[root@rac2 bin]# ./oifcfg setif -global eth1/10.10.10.1:cluster_interconnect
[root@rac2 bin]# ./oifcfg getif
eth0 115.124.120.0 global public
eth1 10.10.10.0 global cluster_interconnect

[root@rac2 bin]#

Now Run VIPCA


2) Srvctl Error:

While checking status of RAC using command srvctl you will again get the following error:

[oracle@rac2 ~]$srvctl config database -d RAC
/u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

To fix this bug edit following files

/u01/app/oracle/product/clust/bin/srvctl
/u01/app/oracle/product/10.2.0/db_1/bin/srvctl

and add following (Green colored):

#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL

Now Execute srvctl commands to check the current configuration and status of the RAC database

[oracle@rac1 ~]$ srvctl config database -d RAC
rac1 RAC1 /u01/app/oracle/product/10.2.0/db_1
rac2 RAC2 /u01/app/oracle/product/10.2.0/db_1

No related posts.

Tags: , , , ,

2 Responses to “Oracle 10gR2 RAC Installation Error: error while loading shared libraries -libpthread.so.0”


  1. Tweets that mention Oracle 10gR2 RAC Installation Error: error while loading shared libraries -libpthread.so.0 | -- Topsy.com
    on Sep 24th, 2010
    @ 2:22 am

    [...] This post was mentioned on Twitter by eITWebguru, eITWebguru. eITWebguru said: Oracle 10gR2 RAC Installation Error: error while loading shared libraries -libpthread.so.0 http://goo.gl/fb/xzYac [...]


  2. Khan
    on Apr 18th, 2012
    @ 7:28 pm

    Nice sharing, I am going to try, amzing sys

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.