rac安装过程中 error while loading shared libraries libpthread.so.0 问题的解决

在 客户现场,使用的操作系统是redhat linux 5.5,一切都挺正常的,当需要执行root.sh脚本是,在第二个节点出现了问题。WARNING: directory '/home/oracle/oracle11/product' is not owned by root
WARNING: directory '/home/oracle/oracle11' is not owned by root
WARNING: directory '/home/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/home/oracle/oracle11/product/11' is not owned by root
WARNING: directory '/home/oracle/oracle11/product' is not owned by root
WARNING: directory '/home/oracle/oracle11' is not owned by root
WARNING: directory '/home/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname hosta for node 1.
assigning default hostname db1 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: hosta hosta-pri hosta
node 2: db1 db1-pri db1
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
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.
hosta
db1
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
/home/oracle/oracle11/product/11/db_1/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

感觉很郁闷在网上找到了一个相同的问题,还有解决方法。解决方法如下:

1、在每个节点上,修改$CRS_HOME/bin目录下的srvctl和vipca文件,在vipca文件ARGUMENTS=""行之前和srvctl文件的export LD_ASSUME_KERNEL行之后增加 unset LD_ASSUME_KERNEL 语句
2、使用$CRS_HOME/bin目录下的oifcfg工具配置pub ip和pri ip

[root@redhatb bin]# ./oifcfg setif -global eth0/192.168.183.0:public
[root@redhatb bin]# ./oifcfg setif -global eth1/200.200.200.0:cluster_interconnect
[root@redhatb bin]# ./oifcfg getif
eth0  192.168.183.0  global  public
eth1  200.200.200.0  global  cluster_interconnect
[root@redhatb bin]# ./oifcfg iflist
eth0  192.168.183.0
eth1  200.200.200.0
3、在任意一个节点上,用root用户,手动运行vipca,配置完正确的prvip和vip 信息之后,crs就可以安装完成。

这个问题已经在10.2.0.4 以后已经修复