安装Oracle 10gR2 clusterware最后一步执行root.sh,root.sh中会最后执行vipca的时候出现:
PRKH-1010 : Unable to communicate with CRS services.
[PRKH-1000 : Unable to load the SRVM HAS shared library
[PRKN-1008 : Unable to load the shared library "srvmhas10"
or a dependent library, from
LD_LIBRARY_PATH="/oracle/product/10.2.0/crs/jdk/jre/lib/i386/client:/oracle/product/10.2.0/crs/jdk/jre/lib/i386:/o
racle/product/10.2.0/crs/jdk/jre/../lib/i386:/oracle/product/10.2.0/crs/lib32:/oracle/product/10.2.0/crs/srvm/lib3
2:/oracle/product/10.2.0/crs/lib:/oracle/product/10.2.0/crs/srvm/lib:"
[java.lang.UnsatisfiedLinkError: /oracle/product/10.2.0/crs/lib32/libsrvmhas10.so: libclntsh.so.10.1: cannot open
shared object file: No such file or directory]]]
PRKH-1010 : Unable to communicate with CRS services.
[PRKH-1000 : Unable to load the SRVM HAS shared library
[PRKN-1008 : Unable to load the shared library "srvmhas10"
or a dependent library, from
LD_LIBRARY_PATH="/oracle/product/10.2.0/crs/jdk/jre/lib/i386/client:/oracle/product/10.2.0/crs/jdk/jre/lib/i386:/o
racle/product/10.2.0/crs/jdk/jre/../lib/i386:/oracle/product/10.2.0/crs/lib32:/oracle/product/10.2.0/crs/srvm/lib3
2:/oracle/product/10.2.0/crs/lib:/oracle/product/10.2.0/crs/srvm/lib:"
[java.lang.UnsatisfiedLinkError: /oracle/product/10.2.0/crs/lib32/libsrvmhas10.so: libclntsh.so.10.1: cannot open
shared object file: No such file or directory]]]
PRKH-1010 : Unable to communicate with CRS services.
[PRKH-1000 : Unable to load the SRVM HAS shared library
[PRKN-1008 : Unable to load the shared library "srvmhas10"
解决:参考metalink Note:342750.1
在64bit linux上缺少32位的glibc-devel包,导致有些库文件链接出错,从$CRS_HOME/install 下的make log里面可以看到
错误信息
glibc-common-2.3.4-2.39.i386.rpm
glibc-2.3.4-2.39.i386.rpm
glibc-headers-2.3.4-2.39.i386.rpm
glibc-devel-2.3.4-2.39.i386.rpm ( 本机上只有这个没装)
安装的时候注意顺序
4.如何清理安装失败的CRS
$CRS_HOME/install/rootdeinstall.sh
$CRS_HOME/install/rootdelete.sh
ps -ef | grep crs
kill <crs pid>
ps -ef | grep evm
kill <evm pid>
ps -ef | grep css
kill <css pid>
dd if=/dev/zero f=/opt/oracle/oradata/asmrac/votedisk bs=8192 count=2560
dd if=/dev/zero f=/opt/oracle/oradata/asmrac/ocrdisk bs=8192 count=12800
干掉CRS_HOME目录下的所有东西
rm -rf /var/tmp/.oracle
rm -rf /tmp/.oracle
rm -rf /etc/oracle
rm -rf /opt/oracle/oraInventory/*
rm -rf /opt/oracle/products/crs/*
重新安装Oracle 10gR2 clusterware