- 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
This script was of great help when I installed 12.2 a while back. I had to do it manually since the script was kind of crude and some things were wrong (like putting SDK files on lib directory).
Now that 19.3 is out I decided to upgrade, and this time I made some scripts which I think must work on every Mac.
You can check them here if you want to use them: Oracle Instant Client 9.3 Install Scripts for macOS