Linux +python 链接oracle 报错

  编辑时间2018-05-28

问题:

cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "d:\app\sabre\product\11.2.0\client_1\bin\oci.dll is not the correct architecture". See https://oracle.github.io/odpi/doc/installation.html


解决办法

python 2.7 版本下载的cx_oracel 版本6.2.1 版本过高,办法

conda  uninstall  cx_oracel

conda list cx_oracel

conda info cx_oracel

conda  install cx_oracel=5.2.1


运行看看不报错成功


你可能感兴趣的:(Linux +python 链接oracle 报错)