暂无图片
暂无图片
暂无图片

oracle19c rac grid安装报错的快速处理libasmclntsh19.ohso libasmperl19.ohso client-m6米乐安卓版下载

原创 2023-03-15
4846

[root@rac1 lib]# cat /etc/oracle-release
oracle linux server release 7.9
两个节点安装oracle19c rac(linux.x64_193000_grid_home.zip)
grid安装过程中报错如下:
[fatal] error in invoking target ‘libasmclntsh19.ohso libasmperl19.ohso client_sharedlib’ of makefile ‘/oracle/app/19c/grid/rdbms/lib/ins_rdbms.mk’.

在linux环境下安装19.3版本一般都会碰到这个问题,不论单机还是rac环境,grid还是db,所以在这总结一下,方便后来参考。(下次先更新unzip工具包,再观察看是否还报错?)

你以为缺包?其实不缺:

[root@rac1 lib]# rpm -aq|grep glibc-devel
glibc-devel-2.17-317.0.1.el7.x86_64
[root@rac1 lib]# rpm -aq|grep glibc-devel
glibc-devel-2.17-317.0.1.el7.x86_64
[root@rac1 lib]# rpm -q --whatprovides /usr/lib64/crti.o
glibc-devel-2.17-317.0.1.el7.x86_64
[root@rac1 lib]# rpm -q --whatprovides /usr/lib64/libpthread_nonshared.a
glibc-devel-2.17-317.0.1.el7.x86_64

*真正的原因是lib下11个so文件的软链接不正常。

看到的结果是非软链接文件:

正确的结果如下:

[grid@rac1 lib]$ ls -alr | grep ^l
lrwxrwxrwx  1 grid oinstall        15 mar 15 20:20 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx  1 grid oinstall        21 mar 15 20:45 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx  1 grid oinstall        17 mar 15 20:45 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx  1 grid oinstall        12 mar 15 20:45 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx  1 grid oinstall        12 mar 15 20:45 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx  1 grid oinstall        12 mar 15 20:45 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx  1 grid oinstall        12 mar 15 20:45 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx  1 grid oinstall        36 mar 15 20:42 libjavavm19.a -> ../javavm/jdk/jdk8/lib/libjavavm19.a
lrwxrwxrwx  1 grid oinstall        15 mar 15 20:20 libocci.so -> libocci.so.19.1
lrwxrwxrwx  1 grid oinstall        10 mar 15 20:46 libocci.so.18.1 -> libocci.so
lrwxrwxrwx  1 grid oinstall        12 mar 15 20:47 libodm19.so -> libodmd19.so
[grid@rac1 lib]$ ls -alr | grep ^l|wc -l
11

所以处理方法就是做好上述11个文件的软链接,然后relink all,参考命令ln -s libclntsh.so.19.1 libclntsh.so,如果缺少就从解压包中拷贝,注意属主权限grid:oinstall

[grid@rac1 lib]$ pwd
/oracle/app/19c/grid/lib
[grid@rac1 lib]$ rm libclntsh.so*
[grid@rac1 lib]$ ll libclntsh.so*
ls: cannot access libclntsh.so*: no such file or directory
[grid@rac1 lib]$ ln -s libclntshcore.so.19.1 libclntshcore.so
ln: failed to create symbolic link ‘libclntshcore.so’: file exists
[grid@rac1 lib]$ rm libclntshcore.so
[grid@rac1 lib]$ ln -s libclntshcore.so.19.1 libclntshcore.so
[grid@rac1 lib]$ ln -s libclntsh.so.19.1 libclntsh.so
[grid@rac1 lib]$ ln -s libclntsh.so libclntsh.so.10.1
[grid@rac1 lib]$ ln -s libclntsh.so libclntsh.so.11.1
[grid@rac1 lib]$ ln -s libclntsh.so libclntsh.so.12.1
[grid@rac1 lib]$ ln -s libclntsh.so libclntsh.so.18.1
[grid@rac1 lib]$ ll libocci.so
lrwxrwxrwx 1 grid oinstall 15 mar 15 20:20 libocci.so -> libocci.so.19.1
[grid@rac1 lib]$ ll libocci.so.18.1 
-rwxr-xr-x 1 grid oinstall 10 mar 15 18:55 libocci.so.18.1
[grid@rac1 lib]$ rm libocci.so.18.1 
[grid@rac1 lib]$ ln -s libocci.so libocci.so.18.1
[grid@rac1 lib]$ ll libocci.so.18.1 
lrwxrwxrwx 1 grid oinstall 10 mar 15 20:46 libocci.so.18.1 -> libocci.so
[grid@rac1 lib]$ ll libodm19.so 
-rwxr-xr-x 1 grid oinstall 12 mar 15 18:55 libodm19.so
[grid@rac1 lib]$ rm libodm19.so
[grid@rac1 lib]$ ln -s libodmd19.so libodm19.so

image.png
image.png
[grid@rac1 lib]$ relink all
writing relink log to: /oracle/app/19c/grid/install/relinkactions2023-03-15_08-55-14pm.log
然后点retry继续即可,如果软链接不正常或者没有relink all则点击retry也不会继续。

安装db软件同样的问题处理:

[oracle@rac1 lib]$ pwd
/oracle/app/oracle/product/19c/dbhome_1/lib
[oracle@rac1 lib]$ ls -alr | grep ^l
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libocci.so -> libocci.so.19.1
[oracle@rac1 lib]$ 
[oracle@rac1 lib]$ mkdir bak
[oracle@rac1 lib]$ mv libclntsh.so* ./bak
[oracle@rac1 lib]$ ln -s libclntshcore.so.19.1 libclntshcore.so
ln: failed to create symbolic link ‘libclntshcore.so’: file exists
[oracle@rac1 lib]$ mv libclntshcore.so ./bak/
[oracle@rac1 lib]$ ln -s libclntshcore.so.19.1 libclntshcore.so
[oracle@rac1 lib]$ ln -s libclntsh.so.19.1 libclntsh.so
[oracle@rac1 lib]$ ln -s libclntsh.so libclntsh.so.10.1   
[oracle@rac1 lib]$ ln -s libclntsh.so libclntsh.so.11.1   
[oracle@rac1 lib]$ ln -s libclntsh.so libclntsh.so.12.1   
[oracle@rac1 lib]$ ln -s libclntsh.so libclntsh.so.18.1   
[oracle@rac1 lib]$ 
[oracle@rac1 lib]$ ls -alr | grep ^l
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx  1 oracle oinstall        21 mar 16 10:20 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx  1 oracle oinstall        17 mar 16 10:20 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libocci.so -> libocci.so.19.1
[oracle@rac1 lib]$ ls -alr | grep ^l|wc -l
8
[oracle@rac1 lib]$ mv libjavavm19.a ./bak/
[oracle@rac1 lib]$ mv libodm19.so ./bak/
[oracle@rac1 lib]$ ln -s ../javavm/jdk/jdk8/lib/libjavavm19.a libjavavm19.a
[oracle@rac1 lib]$ ln -s libodmd19.so libodm19.so
[oracle@rac1 lib]$ ls -alr | grep ^l|wc -l
10
[oracle@rac1 lib]$ ls -alr | grep ^l
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx  1 oracle oinstall        21 mar 16 10:20 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx  1 oracle oinstall        17 mar 16 10:20 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        36 mar 16 10:22 libjavavm19.a -> ../javavm/jdk/jdk8/lib/libjavavm19.a
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libocci.so -> libocci.so.19.1
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:22 libodm19.so -> libodmd19.so
[oracle@rac1 lib]$ ln -s libocci.so libocci.so.18.1
ln: failed to create symbolic link ‘libocci.so.18.1’: file exists
[oracle@rac1 lib]$ mv libocci.so.18.1 ./bak/
[oracle@rac1 lib]$ ln -s libocci.so libocci.so.18.1
[oracle@rac1 lib]$ ls -alr | grep ^l
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx  1 oracle oinstall        21 mar 16 10:20 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx  1 oracle oinstall        17 mar 16 10:20 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:21 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx  1 oracle oinstall        36 mar 16 10:22 libjavavm19.a -> ../javavm/jdk/jdk8/lib/libjavavm19.a
lrwxrwxrwx  1 oracle oinstall        15 mar 16 10:17 libocci.so -> libocci.so.19.1
lrwxrwxrwx  1 oracle oinstall        10 mar 16 10:23 libocci.so.18.1 -> libocci.so
lrwxrwxrwx  1 oracle oinstall        12 mar 16 10:22 libodm19.so -> libodmd19.so
[oracle@rac1 lib]$ ls -alr | grep ^l|wc -l
11
[oracle@rac1 lib]$ relink all
writing relink log to: /oracle/app/oracle/product/19c/dbhome_1/install/relinkactions2023-03-16_10-23-40am.log
[oracle@rac1 lib]$ rm -rf bak
完成后点击retry按钮继续即可。

相关参考:
–可参考
–无效
–无效

最后修改时间:2023-04-11 15:38:23
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【米乐app官网下载的版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

网站地图