解决Oracle 10gRAC安装中libpthread.so.0问题
一。问题10.2.0.1的CRS在linux5上在以下情况下会遇到同样的问题:
1.root时
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
/oracle/product/10.2.0/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
上面是调用了vipca,root时有时调用到srvctl时,也会报同样的错
2.单独运行 srvctl 时:
o10n2->srvctl stop nodeapps -n o10n2
/oracle/product/10.2.0/crs/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
1.经查看该包已经安装
o10n2->ldd /oracle/product/10.2.0/crs/jdk/jre/bin/java
linux-gate.so.1 => (0xf77a2000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4a087000)
libdl.so.2 => /lib/libdl.so.2 (0x4a0a2000)
libc.so.6 => /lib/libc.so.6 (0x49f2c000)
/lib/ld-linux.so.2 (0x49f0d000)
2.再尝试安装相关的rpm包
[root@o10n2 media]# yum install glibc-2.5-58.i686
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
cdrom | 1.1 kB 00:00
Setting up Install Process
Package glibc-2.5-58.i686 already installed and latest version
也提示已经安装
3.情况是找不到这个路径
[root@o10n2 bin]# vi /etc/ld.so.conf
增加:
/lib
/usr/local/lib
[root@o10n2 bin]# /sbin/ldconfig -v
问题依旧没解决
经过网上查找,发现只需要在srvctl 和vipca文件
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
后添加下面一行即可
unset LD_ASSUME_KERNEL
经过以上调整,问题解决。