Kamran Agayev's Oracle Blog

Oracle Certified Master

error while loading shared libraries: libpthread.so.0: cannot open shared object file

Posted by Kamran Agayev A. on March 17th, 2011

And the third and latest issue we got today with RAC installation was the following error while running rootdelete.sh which is used to disable clusterware applications :

[code]

[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
[/code]

Then we got the same error while using srvctl utility to manage configuration information.

After a little investigation, we’ve found that we need to edit two executables 1. srvctl and vipca (as it’s called when running rootdelete.sh) and comment the line where LD_ASSUME_KERNEL parameter is set

[code]

       then
            LD_ASSUME_KERNEL=2.4.19
          #  export LD_ASSUME_KERNEL
[/code]

After commenting the line, we were able to bypass the above mentioned error

You can refer the following 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]

[code]

[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]#

[/code]

One Response to “error while loading shared libraries: libpthread.so.0: cannot open shared object file”

  1. Rashad Says:

    Hi, also i want to add these:
    Environment variable settings:
    [oracle@rac2 ~] $ vi ~ /.bash_profile

    export PATH=$PATH:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin

    Modify the order PATH environment variable:
    export PATH=$PATH:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin

    Best regards
    Rashad A.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>