第八篇: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

相關文章
相關標籤/搜索