linux下python连接oracle数据库

linux下下载完oracle客户端后,一定要在

1、vim /etc/ld.so.conf 写入oracle客户端路径

2、执行动态库环境变量命令:ldconfig

3、测试:ldd /tool/instantclient_12_1/libclntsh.so

否则报错:cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libmql1.so: cannot open shared object file: No such file or directory". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

linux系统是Centos7

你可能感兴趣的:(数据库)