centos7.7+oracle19.3
建库过程报错:预检查都是通过的
/oracle/product/19.3.0/db_1/lib/libasmperl19.a -Wl,--no-whole-archive -lclntsh -lclntshcore -lasmclntsh19 -lhasgen19 -lskgxp19 -locr19 -lcell19 -lirc
INFO:
/usr/bin/ld:/home/app/oracle/product/19.3.0/db_1/lib//libclntsh.so: file format not recognized; treating as linker script
/usr/bin/ld:/home/app/oracle/product/19.3.0/db_1/lib//libclntsh.so:1: syntax error
INFO:
make[2]: *** [dlopenlib] Error 1
INFO:
make[2]: Leaving directory `/home/app/oracle/product/19.3.0/db_1/rdbms/lib'
INFO:
make[1]: *** [/home/app/oracle/product/19.3.0/db_1/lib/libasmperl19.so] Error 2
INFO:
make[1]: Leaving directory `/home/app/oracle/product/19.3.0/db_1/rdbms/lib'
INFO:
make: *** [libasmperl19.ohso] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/home/app/oracle/product/19.3.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/tmp/Inst
allActions2020-10-12_01-43-07PM/installActions2020-10-12_01-43-07PM.log' for details.
方法1:直接做修改成软连接
命令参考如下:
cd $ORACLE_HOME/lib/
ln -s 源文件 目标文件
ln -s libagtsh.so.1.0 libagtsh.so
方法2:从好的机器打包软连接:
[oracle@oem lib]$ ls -alR | grep ^l
lrwxrwxrwx. 1 oracle oinstall 15 Oct 6 20:13 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx. 1 oracle oinstall 21 Oct 6 20:14 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx. 1 oracle oinstall 17 Oct 6 20:14 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx. 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 36 Oct 6 20:08 libjavavm19.a -> ../javavm/jdk/jdk8/lib/libjavavm19.a
lrwxrwxrwx. 1 oracle oinstall 15 Oct 6 20:13 libocci.so -> libocci.so.19.1
lrwxrwxrwx. 1 oracle oinstall 10 Oct 6 20:13 libocci.so.18.1 -> libocci.so
lrwxrwxrwx. 1 oracle oinstall 12 Oct 6 20:08 libodm19.so -> libodmd19.so
[oracle@oem lib]$ tar zcvf t.tar.gz libagtsh.so libclntshcore.so libclntsh.so libclntsh.so.10.1 libclntsh.so.11.1 libclntsh.so.12.1 libclntsh.so.18.1 libjavavm19.a libocci.so libocci.so.18.1 libodm19.so
libagtsh.so
libclntshcore.so
libclntsh.so
libclntsh.so.10.1
libclntsh.so.11.1
libclntsh.so.12.1
libclntsh.so.18.1
libjavavm19.a
libocci.so
libocci.so.18.1
libodm19.so
[oracle@oem lib]$ ll t.tar.gz
-rw-r--r-- 1 oracle oinstall 327 Oct 12 15:58 t.tar.gz
[oracle@oradb lib]$ ls -alR | grep ^l
lrwxrwxrwx 1 oracle oinstall 15 Oct 6 20:13 libagtsh.so -> libagtsh.so.1.0
lrwxrwxrwx 1 oracle oinstall 21 Oct 6 20:14 libclntshcore.so -> libclntshcore.so.19.1
lrwxrwxrwx 1 oracle oinstall 17 Oct 6 20:14 libclntsh.so -> libclntsh.so.19.1
lrwxrwxrwx 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.10.1 -> libclntsh.so
lrwxrwxrwx 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.11.1 -> libclntsh.so
lrwxrwxrwx 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.12.1 -> libclntsh.so
lrwxrwxrwx 1 oracle oinstall 12 Oct 6 20:13 libclntsh.so.18.1 -> libclntsh.so
lrwxrwxrwx 1 oracle oinstall 36 Oct 6 20:08 libjavavm19.a -> ../javavm/jdk/jdk8/lib/libjavavm19.a
lrwxrwxrwx 1 oracle oinstall 15 Oct 6 20:13 libocci.so -> libocci.so.19.1
lrwxrwxrwx 1 oracle oinstall 10 Oct 6 20:13 libocci.so.18.1 -> libocci.so
lrwxrwxrwx 1 oracle oinstall 12 Oct 6 20:08 libodm19.so -> libodmd19.so
[oracle@oradb lib]$ cd /home/oracle
[oracle@oradb ~]$ relink all
writing relink log to: /home/app/oracle/product/19.3.0/db_1/install/relinkActions2020-10-12_03-56-47PM.log
[oracle@oradb ~]$
3.重新安装unzip
重新解压安装。
19c Installation Fails with error "libclntsh.so: file format not recognized; treating as linker script" (Doc ID 2631283.1)
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.
更多推荐
/lib//libclntsh.so: file format not recognized; treating as linker script
发布评论