2011-02-17 118 views
1

右鍵我在我的機器上安裝了Python 2.6.2,我希望在同一網絡(不是本地計算機)上訪問Oracle 10g(精確爲10.2.0.1.0)實例,Oracle和Python - cx_Oracle DLL加載失敗

我從

http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.0.4-10g.win32-py2.6.msi?download

但是安裝cx_Oracle模塊V5.0.4如果我加載Python解釋器,這是我所得到的,當我嘗試導入cx_Oracle

>>> import cx_Oracle 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: DLL load failed: The specified module could not be found. 

任何想法我可以做什麼來解決這個問題?

Paul

+0

進口cx_Oracle 康恩= cx_Oracle.connect(主機= '1.11.18.41',用戶= 'RDR',密碼= 'RDR')小人= conn.cursor() curs.execute (「select * from fx_Alarm」) 打印curs.description 對於範圍內的x(3,numrows):row = cursor.fetchall()打印行[0]打印行[1]打印行[2] curs.close () conn.close()我寫了這個code.bt它說dll導入錯誤。我會告訴我應該安裝哪個exe文件 – 2011-07-07 04:45:39

回答

1

好吧,看來我需要安裝客戶端版本的Oracle 10g。這一切都已經得到解決:O)