python 连接oracle基础环境配置方法


配置基础:

1.python3.7

2.oracle server 11g 64位

3.PLSQL 64位

4.instantclient-basic-windows.x64-11.2.0.4.0这个可以去Oracle官网下载或者下载链接:http://jvniu.jb51.net:81/201708/tools/instantclientx64_jb51.rar这个地址,然后替换到PLSQL安装好的路径下F:\PLSql

5.安装cx_Oracle-7.0.0-cp37-cp37m-win_amd64.whl,可以去官网下载https://pypi.org/project/cx_Oracle/

6.记得添加环境变量path=F:\PLSql\instantclient_11_2,如果出现连接报错DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: " ,那么就是没有添加环境变量

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM