尝试连接数据库:Win7 Enterprise 64位 - Python cx_Oracle - 找不到oci.dll

问题描述 投票:0回答:1

python 3.6 64位,Oracle数据库11g企业版11.2.0.4.0版 - 64位生产,cx_oracle 6.4.1

能够手动连接DB到sqlplus和sql developer。

当试图通过python连接时:

cx_Oracle.DatabaseError:DPI-1047:无法加载64位Oracle客户端库:“C:\ Oracle \ product \ 11.2.0 \ client_1 \ bin \ oci.dll不是正确的架构”....

手动验证“C:\ Oracle \ product \ 11.2.0 \ client_1 \ BIN \”具有oci.dll

请帮忙

python cx-oracle
1个回答
0
投票

C:\ Oracle \ product \ 11.2 \ client_1 \ bin \ oci.dll中的DLL不是64位DLL。您需要下载并解压缩64位Oracle Instant Client才能解决此问题。请注意,在这种情况下,服务器是64位的事实是不相关的。客户端必须是64位!

© www.soinside.com 2019 - 2024. All rights reserved.