error while loading shared
libraries: libpthread.so.0: cannot open shared object file
We ran into this issue today with RAC installation. We got
the following error while running rootdelete.sh, used to disable
clusterware applications:
[root@node1 install]# srvctl
/u01/oracle/product/10.2.0/crs_1/jdk/jre/bin/java: error while
loading shared libraries: libpthread.so.0: cannot open shared object
file: No such file or directory
[root@node1 install]#
./rootdelete.sh
/u01/oracle/product/10.2.0/crs_1/jdk/jre/bin/java: error while
loading shared libraries: libpthread.so.0: cannot open shared object
file: No such file or directory
We got the same error again while using srvctl utility to manage
configuration information. We discovered after a little
investigation that we need to edit two executables: srvctl; and
vipca (as it’s called when running rootdelete.sh). We also had to
comment the line where the ld_assume_kernel parameter is
set
then
LD_ASSUME_KERNEL=2.4.19
# export LD_ASSUME_KERNEL
After commenting the line, the above mentioned error was
bypassed.
Consult this metalink note for more information:
">Executing Applypreferences.sh Fails With
“Error while loading shared libraries: libpthread.so.0: cannot open
shared object file: No such file or directory” [ID 729952.1]
[root@node1 install]# ./rootdelete.sh
Shutting down Oracle Cluster Ready Services (CRS):
Stopping
resources.
Error while stopping resources. Possible cause: CRSD
is down.
Stopping CSSD.
Unable to communicate with the CSS
daemon.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack
is not running.
Oracle CRS stack is down now.
Removing
script for Oracle Cluster Ready services
Updating ocr file for
downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
[root@node1 install]#