原因:

        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。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2021-06-01
  • 2021-07-04
  • 2021-11-11
  • 2021-12-25
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案