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。

文章来自:https://www.cnblogs.com/xyg-zyx/p/9084478.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3