推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
cirton
V2EX  ›  Python

使用 cx_Oracle 连接数据库时一直报错?

  •  
  •   cirton · Oct 11, 2019 · 3398 views
    This topic created in 2541 days ago, the information mentioned may be changed or developed.

    运行环境:win7 64 位

    在控制台使用 cx_oracle 连接数据时,当执行到 conn = cx_Oracle.connect('xx', 'xx', '192.168.1.111:1521/orcl')时, 就会报 “无法定位程序输入点.....kernel32.dll 上”。

    使用 ide 连接数据时,相同的代码,一直报 “cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle”。

    版本如下 python : 2.7 64 位 cx_oracle : cx_Oracle-5.3-11g.win-amd64-py2.7 oracle 客户端 : 11g 64 位

    mili8908
        1
    mili8908  
       Oct 11, 2019
    oracle 客户端和服务端的版本要对应
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2540 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 09:09 · PVG 17:09 · LAX 02:09 · JFK 05:09
    ♥ Do have faith in what you're doing.