python cx_Oracle install

Ubuntu install  python-cx_Oracle

1: install alien tools  .  

     sudo apt-get install alien

2: dowload follow files and translate them to deb files. Pls care the version.

oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-basiclite-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-jdbc-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm

    sudo alien  *.rpm

    sudo dpkg *.deb

3: set env

 ###add Oracle env

export ORACLE_HOME=/usr/lib/oracle/11.2/client
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
export ORACLE_SID=xx-x-xx

###

add the code to /etc/profile , then "source /etc/profile"

4:dowload   cx_Oracle-5.1.2.tar.gz, install cx_Oracle lib

====================

Error:  cx_oracle libaio.so.1: cannot open shared object file: No such file or directory

 

dowload:    "libaio-0.3.106-5.i386.rpm" install it.    

 

python cx_Oracle install,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。