ox_Oracle is a python module that allows developers to connet to Oracle Database. Although The installation process is messy process, we'll try to make it simple for you.
Create a directory
Download the necessary zip files from here:
Unzip both files at the same location,
All the files is uncompressed in dicrectroy
instantclient_11_2, sdk should be unzipped in a subdirectory.
For ease of use, set
$ORACLE_HOME to this directory:
Create a symlink to you SO file. (Note: Make sure the version number might be different.)
cd $ORACLE_HOME ln -s libclntsh.dylib.11.1 libclntsh.dylib ln -s libocci.dylib.11.1 libocci.dylib
export DYLD_LIBRARY_PATH=$ORACLE_HOME export LD_LIBRARY_PATH=$ORACLE_HOME
Finally, install cx_oracle with pip:
pip install cx_oracle
Installing cx_Oracle for Python/ Mac OSX. Retrieved from https://gist.github.com/neara/f9b41fcf19b5f25ccd30#file-cx_oracle_instructions-md
Installing python cx_oracle on Ubuntu. Retrieved from https://gist.github.com/kimus/10012910