cx_Oracle: unable to acquire oracle environment handle
来源:互联网 发布:淘宝中国质造 编辑:程序博客网 时间:2024/04/28 14:37
今天在装有64位python的服务器上跑工具的时候出现了InterfaceError: unable to acquire oracle environment handle。之前在装有32位的python的pc上跑的时候没有出现过的。
网上找了很多解决方法,大部分都是是环境变量oracle_home或ld_library_path的问题。我按照上面的方法设置了环境变量后还是出现同样的错误。
后来灵机一动,想到可能是oracle客户端的问题,我用的客户端是instantclient,因为cx_Oracle连接数据库的时候要用到客户端中的lib,而python是64位的,cx_Oracle自然是64位的,所以客户端也应该用64位的。换成64位的instantclient,哈哈,搞掂!
64位的instantclient不好的地方就是无法用plsql developer了,当然可以在另一台机器上配置32位的instantclient,然后远程访问。
0 0
- cx_Oracle: unable to acquire oracle environment handle
- cx_Oracle InterfaceError: Unable to acquire Oracle environment handle
- python cx_Oracle error:Unable to acquire Oracle environment handle
- Unable to acquire Oracle environment handle
- Unable to acquire Oracle environment handle
- Unable to acquire Oracle environment handle 问题的解决
- 【flask】Unable to acquire Oracle environment handle 报错
- 使用pyinstaller打包成exe之后运行闪退,调试后报出 Unable to acquire Oracle environment handle错误解决方法
- QCC10000E -Unable to allocate environment handle
- quest启动就报错"QCC10000E -Unable to allocate environment handle" 修改path
- Unable to acquire PluginConverter service during generation
- QOCIDriver: unable to create environment
- spark 1.5.x Unable to acquire 33554432 bytes of memory
- 解决eclipse启动时报错Unable to acquire application service
- Unable to handle kernel NULL pointer dereference.
- Unable to handle kernel NULL pointer dereference.
- 安装cx_Oracle报错:unable to find vcvarsall.bat
- Unable to get JNI 1.2 environment
- 其实我们可以做自己的心理医生
- JBPM及J2EE各种jar包的作用
- Oracle删除重复记录只保留一条数据的几种方法
- shell 学习 case命令学习
- 25个好用的Shell脚本常用命令分享
- cx_Oracle: unable to acquire oracle environment handle
- Android中使用SoundPool来播放音频
- Android网页查看器
- [extjs] textField disabled readOnly属性
- percona-toolkit 之 大数据表修改
- Phoenix Secondary Index
- FusionCharts 图像报表swf文件分类收集
- hdu 1176 免费馅饼
- 深入分析Windows和Linux动态库应用异同