- 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
and copy the following code and past it on that file. - Run
source /usr/local/share/instantclient/instantclient.sh
- Run
sqlplus
to check if you can run "sqlplus" in any place - Add
source /usr/local/share/instantclient/instantclient.sh
to your .bashrc
For me it does not work on my MacOS. THe install.sh script says this:
"Error on line 18 /usr/local/bin folder not found" and
"Error on line 23 /usr/local/share folder not found"
I added the following right before going into the respective directories:
mkdir -p /usr/local/bin
cd /usr/local/bin
But again nothing works for me. Should I execute install.sh at step 3 ?