Linux下使用Python连接Oracle 报cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded解决方法

在Linux上使用python运行数据库脚本的时候报:cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded解决方法

这个导致这个问题的原因是本机的Python2.7是64位的,而数据库用了32位的instantclient-basic,所以要把instantclient-basic的版本更新为64位的

以下是按照官网文档操作的,自测没有问题.

1.下载instantclient-basic的RPM包或者ZIP包,64-bit or 32-bit,

 

猜你喜欢

转载自www.cnblogs.com/Gnnnny/p/9146310.html