首页 > 数据库技术 > 详细

python cx_Oracle install

时间:2014-03-14 19:04:08      阅读:730      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/alangwansui/p/3571115.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!