Unable to acquire Oracle environment handle 问题的解决
来源:互联网 发布:中国网络三剑客 编辑:程序博客网 时间:2024/04/28 02:00
今天重装了一下系统,所以以前工作时配置的python程序也需要重新配置一下。但是在装完cx_Oracle运行程序时出现了“ Unable to acquire Oracle environment handle”错误,百思不得其解,以前是可以配置成功的啊,但这次是怎么了。
以下是环境变量的配置(用的是 oracle的instantclient):
PATH=d:/instantclient
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
TNS_ADMIN=d:/instantclient
以上配置按道理来说是没有问题的,可问题出在哪呢?查来查去,终于找到了问题所在:
在出现这个问题之前,还出现了一个问题:“Dll load failed”,因为当前配置环境变量没能解决此总是,所以干脆就把oci.dll文件拷到site-package目录中了,因为没有拷贝oraociei10.dll和oraocci10.dll,所以出现了“ Unable to acquire Oracle environment handle”错误。
以后此问题的解决办法:
第一种:配置好环境变量,不把oracle相关的dll文件放到site-package中
第二种:拷贝oci.dll, oraociei10.dll, oraocci10.dll到site-package中
- Unable to acquire Oracle environment handle 问题的解决
- Unable to acquire Oracle environment handle
- cx_Oracle: unable to acquire oracle environment handle
- Unable to acquire Oracle environment handle
- cx_Oracle InterfaceError: Unable to acquire Oracle environment handle
- 【flask】Unable to acquire Oracle environment handle 报错
- python cx_Oracle error:Unable to acquire Oracle environment handle
- 使用pyinstaller打包成exe之后运行闪退,调试后报出 Unable to acquire Oracle environment handle错误解决方法
- QCC10000E -Unable to allocate environment handle
- Unable to handle kernel NULL pointer dereference at virtual address 00000000问题的解决
- 解决eclipse启动时报错Unable to acquire application service
- 解决遇到的Unable to handle kernel paging request at virtual address 错误
- Unable to handle kernel paging request at virtual address错误的解决
- Unable to handle kernel NULL pointer dereference at virtual address 00000058的错误解决
- 解决Unable to handle kernel NULL pointer dereference
- quest启动就报错"QCC10000E -Unable to allocate environment handle" 修改path
- Minecraft Windows版出现Unable to start the Minecraft Runtime Environment错误的解决方式
- Unable to acquire PluginConverter service during generation
- Break on exception in Xcode
- 【算法】找出两个已序数组,是否含有相同的数字
- Linux 环境变量
- windows mobile/CE 访问web页面
- Android学习笔记之Alarm
- Unable to acquire Oracle environment handle 问题的解决
- SSH框架杂记
- 安全认证
- Android调用Restfull
- linux头文件
- 分销商模块之分销商树的原理及div树的形成
- vi常用命令集锦
- 摘要、签名、加密、证书
- 如何提高Android用户体验