ITPub博客

首页 > Linux操作系统 > Linux操作系统 > root.sh / vipca: error while loading shared libraries: libpth read.so.

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

原创 Linux操作系统 作者:tolywang 时间:2008-10-15 08:40:22 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/35489/viewspace-620357/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695464