Last active
August 24, 2019 08:42
-
-
Save ageldama/2787273aa193552db1cf9ffd554f3def to your computer and use it in GitHub Desktop.
pip with oracle-instant-client-sdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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