python cx_Oracle error:Unable to acquire Oracle environment handle

来源:互联网 发布:linux autostart 编辑:程序博客网 时间:2024/04/28 14:04

环境:windows7、python-32位、oracle instant client-32位

错误表现:
cx_Oracle连接Oracle数据库的时候报错:
cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle

但是用sqlplus、plsql developer连接数据库都正常

我的解决办法:将instantclient目录下的所有*.dll文件拷贝到Python27\Lib\site-packages目录下,问题解决

下载网址:http://www.oracle.com/technetwork/cn/database/features/instant-client/index-097480.html

这里写图片描述

这里写图片描述

需要oracle账号,没有的注册一下

0 0
原创粉丝点击