root.sh / vipca: error while loading shared libraries: libpth read.so.

本文解决Oracle10g RAC安装过程中遇到的libpthread.so.0缺失问题及vipca配置错误。通过修改vipca和srvctl文件,并调整LD_ASSUME_KERNEL设置,最终完成集群软件配置。

Oracle10g RAC:   Oracle  10.2.0.4   ,  Linux AS 5.3  64bit  

安装Oracle Clusterware 10.2.0.1 的时候,在最后一个节点执行root.sh 的时候,可能我们会收到下面的错误提示:

Running vipca(silent) for configuring nodeapps 

/u01/product/crs/jdk/jre//bin/java:   error while loading shared libraries: libpth read.so.0: cannot open shared object file: No such file or directory .  

那么我们需要在每个节点上执行修复动作。 需要修改 $ORACLE_BASE/crs/bin/vipca 文件,找到Remove这一行,在其中的fi 后面加入一行  unset LD_ASSUME_KERNEL , 屏蔽掉  LD_ASSUME_KERNEL   设置 。 

Remove this workaround when the bug 3937317 is fixed  
arch=`uname -m`  
if [ "$arch" = "i686" -o "$arch" = "ia64" ]  
then  
           LD_ASSUME_KERNEL=2.4.19  
           export  LD_ASSUME_KERNEL  
fi  
#End workaround   

保存,

同样修改  #  vi    /u01/product/crs/bin/srvctl  , 不然后面执行srvctl 可能会报错。 
找到Remove 这一段的如下内容:
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
同样在其后新增一行:
unset LD_ASSUME_KERNEL
保存退出,在出现错误的节点再次执行 root.sh,

可以看到 # sh   root.sh 

WARNING: directory '/u01/product' is not owned by root

WARNING: .....

Oracle CRS stack is already configured and will be running under init(1M)

在任何一个节点执行 vipca

我们在节点1上执行 /u01/product/crs/bin/vipca

#  sh   vipca 

Error 0(Native: listNetInterfaces:[3])

    [Error 0(Native: listNetInterfaces:[3])] 

如果报以上错误,需要执行以下步骤修复:

[root@rac02 bin]# ./oifcfg iflist
eth0   10.161.24.0
eth1   10.10.10.0
  [root@rac02 bin]# ./oifcfg setif -global eth0/10.161.24.0:public
[root@rac02 bin]# ./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect
[root@rac02 bin]# ./oifcfg getif
eth0   10.161.24.0   global   public
eth1   10.10.10.0   global    cluster_interconnect
然后在视窗界面重新执行 vipca 即可 


 --------------------------------------------------------------------------------------------------------

 

如果在最后一个节点上運行 root.sh 時,最後出現:
Running vipca(silent) for configuring nodeapps
The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.
這樣的錯誤時,可直接運行 vipca 來進行 vip 配置。 

 

-----------------------------

 

所有VIPCA 配置完成之后,如沒有錯誤直接點擊 exit,然後回到 clusterware 安裝介面,點擊 OK 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-620357/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-620357/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值