1、安装Python 2.7.6
2、安装cx_Oracle 5.1.2
参考文章:
Python2.6 Cx_Oracle Linux下编译安装
[url]http://www.cnblogs.com/ysisl/archive/2010/12/20/1911870.html[/url]
tar -xzvf Python-2.7.6.tar.gz -C /tmp
cd /tmp/Python-2.7.6
./configure -enable-shared
make
make install
2、安装cx_Oracle 5.1.2
tar -xzvf cx_Oracle-5.1.2.tar.gz -C /tmp
cd /tmp/cx_Oracle-5.1.2
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/lib
python setup.py build
python setup.py install
参考文章:
Python2.6 Cx_Oracle Linux下编译安装
[url]http://www.cnblogs.com/ysisl/archive/2010/12/20/1911870.html[/url]