DPI-1047: 64-bit Oracle Client library cannot be loaded: "D:\app\xyg\product\11.2.0\client_1\bin\oci.dll is not the correct architecture"

原因:

        instantclient版本为32位,需更换成64位。

解决方案:

1. 重新下载 instantclient 64位, 下载链接:http://jvniu.jb51.net:81/201708/tools/instantclientx64_jb51.rar

      下载完成后,解压得到 文件夹


2   将整个文件夹移动到oracle安装目录,client子文件夹内


3.  添加环境变量(下图为win10系统)


4.   重启python, 成功连接oracle。

猜你喜欢

转载自www.cnblogs.com/xyg-zyx/p/9084478.html