Created
December 16, 2015 20:14
-
-
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
This file contains 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/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