- Get Oracle instant client for MacOSX
- Go to the download site - http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
- Download "instantclient-basic-macos.x64-12.1.0.2.0.zip"
- Download "instantclient-sqlplus-macos.x64-12.1.0.2.0.zip"
- Download "instantclient-sdk-macos.x64-12.1.0.2.0.zip"
- Unarchive downloaded zip files into a same directory
- ex:
$HOME/Downloads/instantclient_12_1
- Create
install.sh
inside thisinstantclient_12_1
folder and copy the following code and past it on that file. - In a terminal,
cd
into thisinstantclient_12_1
folder, thenchmod +x install.sh
to make this script file executable. - Run
install.sh
bysudo ./install.sh
then type your password. - Add
source /usr/local/share/instantclient/instantclient.sh
to your~/.bashrc
file (also prompted when the script finishes).