本文主要是介绍Linux : Oracle远程连接调用缺少客户端依赖(ORA-00000: DPI-1047),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
连接报错:
ORA-00000: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
解决方法:
mkdir -p /opt/oraclecd /opt/oracle# 外网下载
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
# 内网上传
unzip instantclient-basic-linux.x64-21.1.0.0.0.zip#非必要,装的时候看到了两个安装步骤,所以途中执行了这两条命令,目测不需要执行,但执行了也不影响
#ldconfig
#ldd /opt/oracle/instantclient_21_6/libclntsh.socd /etc/ld.so.conf.d/vi oracle.conf
#编辑操作-开始
i
/opt/oracle/instantclient_21_14/
esc
:wq
#编辑操作-结束ldconfig
这篇关于Linux : Oracle远程连接调用缺少客户端依赖(ORA-00000: DPI-1047)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!