您好,登錄后才能下訂單哦!
下載相應版本的cx_Oracle
安裝cx_Oracle-5.1.2-11g-py24-1.x86_64.rpm,其他版本類似,
rpm -ivh cx_Oracle-5.1.2-11g-py24-1.x86_64.rpm
安裝簡單,但需要配置下面的環境變量和軟連接
在/etc/profile,添加
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/
然后創建軟連接
ln -s /usr/lib/oracle/12.1/client64/lib/libclntshcore.so.12.1 /lib64/libclntshcore.so.12.1
ln -s /usr/lib/oracle/12.1/client64/lib/libclntsh.so.12.1 /lib64/libclntsh.so.12.1
ln -s /usr/lib/oracle/12.1/client64/lib/libclntsh.so.11.1 /lib64/libclntsh.so.11.1
ln -s /usr/lib/oracle/12.1/client64/lib/libipc1.so /lib64/libipc1.so
ln -s /usr/lib/oracle/12.1/client64/lib/libmql1.so /lib64/libmql1.so
ln -s /usr/lib/oracle/12.1/client64/lib/libnnz12.so /lib64/libnnz12.so
ln -s /usr/lib/oracle/12.1/client64/lib/libocci.so.12.1 /lib64/libocci.so.12.1
ln -s /usr/lib/oracle/12.1/client64/lib/libociei.so /lib64/libociei.so
ln -s /usr/lib/oracle/12.1/client64/lib/libocijdbc12.so /lib64/libocijdbc12.so
ln -s /usr/lib/oracle/12.1/client64/lib/libons.so /lib64/libons.so
ln -s /usr/lib/oracle/12.1/client64/lib/liboramysql12.so /lib64/liboramysql12.so
ln -s /usr/lib/oracle/12.1/client64/lib/ojdbc6.jar /lib64/ojdbc6.jar
ln -s /usr/lib/oracle/12.1/client64/lib/ojdbc7.jar /lib64/ojdbc7.jar
ln -s /usr/lib/oracle/12.1/client64/lib/xstreams.jar /lib64/xstreams.jar
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。