Skip to content

Instantly share code, notes, and snippets.

@ageldama
Last active August 24, 2019 08:42
Show Gist options
  • Select an option

  • Save ageldama/2787273aa193552db1cf9ffd554f3def to your computer and use it in GitHub Desktop.

Select an option

Save ageldama/2787273aa193552db1cf9ffd554f3def to your computer and use it in GitHub Desktop.
pip with oracle-instant-client-sdk
# http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/oow10/python_db/python_db.htm
import cx_Oracle
con = cx_Oracle.connect('pythonhol/welcome@localhost/orcl')
print con.version
con.close()
#!/bin/sh
# SOURCE THIS.
# SEE: https://dakota.sandia.gov/content/set-environment-unix-mac-os-x
# SEE: (Instructions for Oracle SDK) https://gist.github.com/ageldama/ee3ddf93d92aa3451b5ad5cacd666159
export ORACLE_HOME=/opt/oracle
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}
#!/bin/sh
# SEE: (Instructions for Oracle SDK) https://gist.github.com/ageldama/ee3ddf93d92aa3451b5ad5cacd666159
export ORACLE_HOME=/opt/oracle
export VERSION=12.1.0.2.0
export ARCH=x86_64
export ARCH_FLAGS="-arch $ARCH"
pip install -r ${1:-requirements-devel.txt}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment