Skip to content

Instantly share code, notes, and snippets.

@nileshk
Created December 16, 2015 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nileshk/960f345334dcd85d56c9 to your computer and use it in GitHub Desktop.
Save nileshk/960f345334dcd85d56c9 to your computer and use it in GitHub Desktop.
Example of dynamically setting DYLD_LIBRARY_PATH to Oracle Instant Client folder for running sqlplus on Mac OS X
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
export DYLD_LIBRARY_PATH=$(dirname $(which sqlplus))
fi
# ... rest of your script that calls Oracle sqlplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment