Monday, February 4, 2013
install cx_Oracle on Ubuntu 12.04 or Windows
#1 Windows + cx_Oracle
1) download the Oracle instant client
http://www.oracle.com/technetwork/topics/winsoft-085727.html
2) place it on some directory.
3) Add the directory path to your PATH environment variable
4) run the following code to test
import cx_Oracle
conn = cx_Oracle.connect(ID/PW@DB.com)
#2 Ubuntu 12.04 + cx_Oracle
http://rahadianokta.wordpress.com/2012/09/15/oracle-instant-client-python-cx_oracle-ubuntu-server-12-04/
1) download the Oracle instant client
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
2) unzip to your lib path
/usr/local/lib/
3) soft link libclntsh.so.11.1 to libclntsh.so and libocci.so.11.1 to libocci.so
4) add Oracle instant client path to ld.so.conf.d
# ldconfig
5) edit your system environment variable (/etc/environment)
Finally~~ yeah~
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment