python连oracle: DPI-1047错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python连oracle: DPI-1047错误相关的知识,希望对你有一定的参考价值。

参考技术A python连接oracle的时候报错

DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: “The specified module could not be found”. See https://oracle.github.io/odpi/doc/installation.html#windows for help

解决方案

要求

①pycharm是64位

②oracle客户端是64位

③python是64位

接下来的操作,去oracle客户端安装目录找到三个文件,分别是

oci.dll、oraocci11.dll、oraociei11.dll

然后把这些文件复制到python的安装目录site-packages下,重启工具就可以了

以上是关于python连oracle: DPI-1047错误的主要内容,如果未能解决你的问题,请参考以下文章

python用cx_Oracle连接数据库,出现错误cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client li

已经配好64位的oracle instantclient,依旧Python报错cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Ora

Amazon Python 2.7 Lambda:DPI-1047:无法加载 64 位 Oracle 客户端库:“libclntsh.so”

Linux下使用Python连接Oracle 报cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be lo

Docker 上的 cx_Oracle:DPI-1047:无法加载 64 位 Oracle 客户端库:“libclntsh.so

(cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: