Python 读取oracle 报错 :oci.dll is not the correct architecture 解决方案

时间:2024-04-07 09:14:40

原因:

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

解决方案:

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

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

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

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

Python 读取oracle 报错 :oci.dll is not the correct architecture 解决方案

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