V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 3078 views
    This topic created in 2391 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   ·   Solana   ·   3137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    ♥ Do have faith in what you're doing.