当前位置:   article > 正文

Linux : Oracle远程连接调用缺少客户端依赖(ORA-00000: DPI-1047)_ora-00000: dpi-1047: cannot locate a 64-bit oracle

ora-00000: dpi-1047: cannot locate a 64-bit oracle client library: "libclnts

 连接报错:

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

解决方法:

  1. mkdir -p /opt/oracle
  2. cd /opt/oracle
  3. # 外网下载
  4. wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
  5. # 内网上传
  6. unzip instantclient-basic-linux.x64-21.1.0.0.0.zip
  7. #非必要,装的时候看到了两个安装步骤,所以途中执行了这两条命令,目测不需要执行,但执行了也不影响
  8. #ldconfig
  9. #ldd /opt/oracle/instantclient_21_14/libclntsh.so
  10. cd /etc/ld.so.conf.d/
  11. vi oracle.conf
  12. #编辑操作-开始
  13. i
  14. /opt/oracle/instantclient_21_14/
  15. esc
  16. :wq
  17. #编辑操作-结束
  18. ldconfig

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/492622
推荐阅读
相关标签
  

闽ICP备14008679号