Lokeshaggarwal's DBA

Live the life you love. Love the life you live

Error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


At the time of installation of Oracle Clusterware,users may face some error while executing root.sh script:

[root@rac3 ~]# cd /arch/app/oracle/product/10.2.0/crs_1/install
[root@rac3 install]# ./rootdelete.sh
/arch/app/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
/arch/app/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
1
[root@rac3 install]# cd ../bin
[root@rac3 bin]# cp vipca vipca1

 edit vipca (in the CRS bin directory on all nodes) to undo the setting of LD_ASSUME_KERNEL. After the IF statement around line 120 add an unset command to ensure LD_ASSUME_KERNEL is not set as follows:

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

[root@rac3 bin]# vi vipca
[root@rac3 bin]# cp srvctl srvctl1
[root@rac3 bin]# vi srvctl

unset LD_ASSUME_KERNEL  

Similarly for srvctl (in both the CRS and, when installed, RDBMS and ASM bin directories on all nodes), unset LD_ASSUME_KERNEL by adding one line, around line 168 should look like this:

LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL

unset LD_ASSUME_KERNEL   

Remember to re-edit these files on all nodes:
<CRS_HOME>/bin/vipca
<CRS_HOME>/bin/srvctl
<RDBMS_HOME>/bin/srvctl
<ASM_HOME>/bin/srvctl

[root@rac3 bin]# cd ../install
[root@rac3 install]# ./rootdelete.sh
CRS-0210: Could not find resource ‘ora.rac3.LISTENER_RAC3.lsnr’.
CRS-0210: Could not find resource ‘ora.rac3.ons’.
CRS-0210: Could not find resource ‘ora.rac3.vip’.
CRS-0210: Could not find resource ‘ora.rac3.gsd’.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
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@rac3 install]# ./rootdelete.sh  local
./rootdelete.sh: line 348: /etc/init.d/init.crs: No such file or directory
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
/bin/rm: cannot remove `/etc/init.d/init.crs’: No such file or directory
/bin/rm: cannot remove `/etc/init.d/init.crsd’: No such file or directory
/bin/rm: cannot remove `/etc/init.d/init.cssd’: No such file or directory
/bin/rm: cannot remove `/etc/init.d/init.evmd’: No such file or directory
Updating ocr file for downgrade
Cleaning up SCR settings in ‘/etc/oracle/scls_scr’
[root@rac3 install]# ./rootdeinstall.sh

Removing contents from OCR device
2560+0 records in
2560+0 records out
10485760 bytes (10 MB) copied, 0.0824622 seconds, 127 MB/s
[root@rac3 install]# cd ../
[root@rac3 crs_1]# ./root.sh
WARNING: directory ‘/arch/app/oracle/product/10.2.0’ is not owned by root
WARNING: directory ‘/arch/app/oracle/product’ is not owned by root
WARNING: directory ‘/arch/app/oracle’ is not owned by root
WARNING: directory ‘/arch/app’ is not owned by root
WARNING: directory ‘/arch’ is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory ‘/arch/app/oracle/product/10.2.0’ is not owned by root
WARNING: directory ‘/arch/app/oracle/product’ is not owned by root
WARNING: directory ‘/arch/app/oracle’ is not owned by root
WARNING: directory ‘/arch/app’ is not owned by root
WARNING: directory ‘/arch’ is not owned by root
assigning default hostname rac3 for node 1.
assigning default hostname rac4 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac3 rac3-priv rac3
node 2: rac4 rac4-priv rac4
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation successful.
Now formatting voting device: /ocfs/clusterware/votingdisk
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        rac3
CSS is inactive on these nodes.
        rac4
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
[root@rac3 crs_1]#

Advertisements

February 19, 2010 - Posted by | Uncategorized

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: