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

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

About: Mike

Milind Koyande loves to work on new technologies specially virtualization and troubleshoot server problems. I’m an avid photographer and love to spend my free time close to nature, trying to capture its glory on my camera.


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

This site uses Akismet to reduce spam. Learn how your comment data is processed.