且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

安装多个oracle客户端版本时如何在python中设置oracle客户端库路径

更新时间:2021-08-03 21:48:57

在其他Oracle库之前,编写一个LD_LIBRARY_PATH中列出了12.2 Oracle Client库的shell脚本,然后调用Python。

Write a shell script that lists the 12.2 Oracle Client library in LD_LIBRARY_PATH before other Oracle libraries, and then invokes Python.

#!/bin/sh
export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2
python "$@"