【问题标题】:Oracle and Python - cx_Oracle DLL load failedOracle 和 Python - cx_Oracle DLL 加载失败
【发布时间】:2011-06-28 22:57:07
【问题描述】:

对,我的机器上安装了 Python 2.6.2,我希望访问同一网络(不是本地机器)上的 Oracle 10g(准确地说是 10.2.0.1.0)实例

我已经从

安装了 cx_Oracle 模块 v5.0.4

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

但是,如果我加载 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.

有什么想法可以解决这个问题吗?

保罗

【问题讨论】:

  • import cx_Oracle conn = cx_Oracle.connect(host='1.11.18.41', user='rdr', password='rdr') curs = conn.cursor() curs.execute("select * from fx_Alarm") print curs.description for x in range(3,numrows): row = cursor.fetchall() print row[0] print row[1] print row[2] curs.close() conn.close()我写了这段代码。bt 它说 dll 导入错误。你能告诉我应该安装哪个exe吗?

标签: python oracle oracle10g cx-oracle


【解决方案1】:

好的,看来我需要安装 oracle 10g 的客户端版本。现在都修好了:o)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-14
    • 1970-01-01
    • 2013-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多