重庆思庄Oracle、Redhat认证学习论坛

标题: 在linux7上19c 安装报libclntsh.so 出错 [打印本页]

作者: 郑全    时间: 2020-10-13 15:14
标题: 在linux7上19c 安装报libclntsh.so 出错
19c Installation Fails with error "libclntsh.so: file format not recognized; treating as linker script" (Doc ID 2631283.1)
To Bottom

In this Document
Symptoms
Changes
Cause
Solution

Applies to:
Oracle Database - Enterprise Edition - Version 19.3.0.0.0 and later
Linux x86-64
Symptoms
Relink errors during 19c installation
From installActions<time stamp>.log
Error invoking target 'libasmclntsh.ohso libasmperl19.ohso client_sharedlib of makefile
/usr/bin/ld:$ORACLE_HOME/lib/libclntsh.so: file format not recognized; treating as linker script
/usr/bin/ld:$ORACLE_HOME/lib/libclntsh.so:1: syntax error
INFO:
make[2]: *** [dlopenlib] Error 1
INFO:
make[2]: Leaving directory `$ORACLE_HOME/rdbms/lib'
INFO:
make[1]: Leaving directory `$ORACLE_HOME/rdbms/lib'
INFO:
make[1]: *** [$ORACLE_HOME/lib/libasmperl19.so] Error 2
INFO:
make: *** [libasmperl19.ohso] Error 2


Changes

Cause
File Corruption.   Following files are not correct
# ls -l libcln*
-rwxr-x---. 1 oracle oinstall 21 Jan 20 01:05 libclntshcore.so <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntshcore.so.19.1
-rwxr-x---. 1 oracle oinstall 8040416 Jan 20 01:05 libclntshcore.so.19.1
-rwxr-x---. 1 oracle oinstall 17 Jan 20 01:05 libclntsh.so <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntsh.so.19.1
-rwxr-x---. 1 oracle oinstall 12 Jan 20 01:05 libclntsh.so.10.1 <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntsh.so.19.1
-rwxr-x---. 1 oracle oinstall 12 Jan 20 01:05 libclntsh.so.11.1 <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntsh.so.19.1
-rwxr-x---. 1 oracle oinstall 12 Jan 20 01:05 libclntsh.so.12.1 <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntsh.so.19.1
-rwxr-x---. 1 oracle oinstall 12 Jan 20 01:05 libclntsh.so.18.1 <<<<<<<<<<<<<<<<<<<<<<<<<<< Should be a soft link to libclntsh.so.19.1
-rwxr-x---. 1 oracle oinstall 79927312 Jan 20 01:05 libclntsh.so.19.1

Solution
Check the integrity of the file LINUX.X64_193000_db_home.zip, execute
sha256sum LINUX.X64_193000_db_home.zip
It should match with "ba8329c757133da313ed3b6d7f86c5ac42cd9970a28bf2e6233f3235233aa8d8" else downloaded file is corrupted.  Download the file again from OTN.
If it is matching, clean up the directory and UNZIP the file LINUX.X64_193000_db_home.zip (image file downloaded from Oracle website) again and re-execute runInstaller.










欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2