![](/img/trans.png)
[英]Error “DPI-1047: Cannot locate a 64-bit Oracle Client library” when connecting to Oracle Database with Python3 (cx_Oracle) using instant client
[英]Why is cx_Oracle giving incorrect architecture error when both Python and Oracle are 64-bit?
我正在嘗試在Python中使用cx_Oracle連接到我的數據庫。 我遇到以下錯誤:
DPI-1047:無法加載64位Oracle客戶端庫:“ C:\\ oracle \\ product \\ V11.2.0.10 \\ bin \\ oci.dll不是正確的體系結構”
在我看來,Python和Oracle都是64位安裝。 規格如下:
Python 3.6.1 | Anaconda 4.4.0(64位)
Oracle Database 11g企業版11.2.04.0版-64位生產
從Sysinternals下載Sigcheck並檢查體系結構:
c:\>sigcheck c:\oracle\product\12.1\Client_x64\bin\oci.dll
Sigcheck v2.60 - File version and signature viewer
Copyright (C) 2004-2017 Mark Russinovich
Sysinternals - www.sysinternals.com
c:\oracle\product\12.1\client_x64\bin\oci.dll:
Verified: Unsigned
Link date: 09:49 11.09.2014
Publisher: n/a
Company: Oracle Corporation
Description: Oracle Call Interface
Product: n/a
Prod version: n/a
File version: 12.1.0.0.0 Production
MachineType: 64-bit
c:\>
對您的Python二進制文件執行相同的操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.