时间:2021-07-01 10:21:17 帮助过:12人阅读
1、cx_Oracle.DatabaseError: ORA-24315: illegal attribute type
2、cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle
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下
即可解决。
注:cx_oracle下载地址:https://pypi.python.org/pypi/cx_Oracle/5.3
oracle客户端下载地址:https://www.oracle.com/database/technologies/instant-client/downloads.html
参考:https://www.cnblogs.com/lansan0701/p/8039332.html
第八篇:cx_Oracle出现的问题
标签:客户 logs use https 11g python3 data error 连接