以静默方式安装Oracle之后,我将无法运行SQLPLUS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了以静默方式安装Oracle之后,我将无法运行SQLPLUS相关的知识,希望对你有一定的参考价值。

显示错误

/ oracle / product / 12.1.0 / dbhome_1 / bin / sqlplus:加载共享库时出错:/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1:文件太短

[oracle@82eb40bf3cd2 ~]$ strace $ORACLE_HOME/bin/sqlplus
execve("/oracle/product/12.1.0/dbhome_1/bin/sqlplus", ["/oracle/product/12.1.0/dbhome_1/"...], 0x7ffd4df2e550 /* 23 vars */) = 0
brk(NULL)                               = 0xd63000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fffa311c1b0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/tls/haswell/x86_64/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/tls/haswell/x86_64", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/tls/haswell/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/tls/haswell", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/tls/x86_64/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/tls/x86_64", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/tls/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/tls", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/haswell/x86_64/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/haswell/x86_64", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/haswell/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/haswell", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/x86_64/libsqlplus.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/oracle/product/12.1.0/dbhome_1/lib/x86_64", 0x7fffa311b400) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/libsqlplus.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>13203741"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1546540, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f664e6da000
mmap(NULL, 3112424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f664e1bc000
mprotect(0x7f664e2a6000, 2093056, PROT_NONE) = 0
mmap(0x7f664e4a5000, 61440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe9000) = 0x7f664e4a5000
close(3)                                = 0
openat(AT_FDCWD, "/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "", 832)                        = 0
close(3)                                = 0
writev(2, [{iov_base="/oracle/product/12.1.0/dbhome_1/"..., iov_len=43}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="/oracle/product/12.1.0/dbhome_1/"..., iov_len=53}, {iov_base=": ", iov_len=2}, {iov_base="file too short", iov_len=14}, {iov_base="", iov_len=0}, {iov_base="", iov_len=0}, {iov_base="
", iov_len=1}], 10/oracle/product/12.1.0/dbhome_1/bin/sqlplus: error while loading shared libraries: /oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1: file too short
) = 153
exit_group(127)                         = ?
+++ exited with 127 +++
答案

您正在尝试在不受支持的平台上安装oracle。您的oracle 12.1.0.2版本支持linux7。目前,Linux 8不支持Oracle数据库。Unofficially Oracle Database 19c Installation On Oracle Linux 8 (OL8)

Oracle Linux 7 and Red Hat Enterprise Linux 7 Support Information on Linux x86-64

[从Oracle Database 12c第1版(12.1.0.2)开始,Oracle Linux 7Linux x86-64系统支持Red Hat Enterprise Linux和Red Hat Enterprise Linux 7。

[从Oracle Database 12c第1版(12.1.0.2)开始,Oracle Linux 7在Linux x86-64的以下发行版中受支持:

具有Unbreakable Enterprise内核的Oracle Linux 7:4.1.12-61.el7uek.x86_64或更高版本

具有Unbreakable Enterprise内核的Oracle Linux 7:3.8.13-33.el7uek.x86_64或更高版本

具有Red Hat兼容内核的Oracle Linux 7:3.10.0-123.el7.x86_64或更高版本

Operating System Checklist for Oracle Database 19c Installation on Linux

支持以下Linux x86-64内核:

具有坚不可摧的企业内核4的Oracle Linux 7.4:4.1.12-124.19.2.el7uek.x86_64或更高版本具有Unbreakable Enterprise Kernel 5的Oracle Linux 7.4:4.14.35-1818.1.6.el7uek.x86_64或带有Red Hat兼容内核的更高版本的Oracle Linux 7.5:3.10.0-862.11.6.el7.x86_64或更高版本

Red Hat Enterprise Linux 7.5:3.10.0-862.11.6.el7.x86_64或更高版本

SUSE Linux Enterprise Server 12 SP3:4.4.162-94.72-default或更高版本

SUSE Linux Enterprise Server 15:4.12.14-23-默认或更高版本

查看系统要求部分,以获取最小包装清单要求。

以上是关于以静默方式安装Oracle之后,我将无法运行SQLPLUS的主要内容,如果未能解决你的问题,请参考以下文章

静默方式安装10g数据库软件+升级patch+手工建库

100天精通Oracle-实战系列(第7天)Linux 静默安装单机 Oracle 19C 数据库

100天精通Oracle-实战系列(第4天)Linux 静默安装单机 Oracle 11GR2 数据库

Oracle 11g静默安装后lsnrctl文件0字节

Linux下静默安装Oracle

Centos7 静默安装Oracle11g以及可视化安装常见问题