第八篇:cx_Oracle出现的问题

一、cx_Oracle.DatabaseError: ORA-24315: illegal attribute typehtml

二、cx_Oracle.InterfaceError: Unable to acquire Oracle environment handlepython

Python经过cx_Oracle模块链接oracle数据库报如上错误,都是应为oracle客户端的问题致使,只须要将对应版本的*.dll(10g:oci.dll, oraociei10.dll, oraocci10.dll;11g:oci.dll, oraociei11.dll, oraocci11.dll)文件拷贝至数据库

C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Lib\site-packages下或者C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Lib\site-packages下oracle

便可解决。ui

注:cx_oracle下载地址:https://pypi.python.org/pypi/cx_Oracle/5.3htm

       oracle客户端下载地址:https://www.oracle.com/database/technologies/instant-client/downloads.htmlblog

 

参考:http://www.javashuo.com/article/p-trhfmxvs-hz.htmlci

相关文章
相关标签/搜索