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,布布扣,bubuko.com

python cx_Oracle install

上一篇:解决Ajax跨域问题:Origin http://127.0.0.1:8080 is not allowed by Access-Control-Allow-Origin.


下一篇:PLSQL常用设置