Installing Oracle Instant Client on Mac OS X
Thursday, July 26th, 2007Getting right down to business...
- Download the Instant Client Packages (4 files)
- Unzip the files into
instantclient10_1unzip instantclient-basic-macosx-10.1.0.3.zip
unzip instantclient-sqlplus-macosx-10.1.0.3.zip
unzip instantclient-sdk-macosx-10.1.0.3.zip
unzip instantclient-jdbc-macosx-10.1.0.3.zip - Create two symbolic links for the files that have the version appended. This is so the Ruby
OCI8driver can find what it’s looking for.cd instantclient10_1
ln -s libclntsh.dylib.10.1 libclntsh.dylib
ln -s libocci.dylib.10.1 libocci.dylib
cd .. - Create directory
/usr/local/oracleand then copyinstantclient10_1into itsudo mkdir /usr/local/oracle
sudo mv instantclient10_1 /usr/local/oracle/instantclient10_1 - Open the system
/etc/profile
sudo pico /etc/profile - Add these lines to
/etc/profileDYLD_LIBRARY_PATH="/usr/local/oracle/instantclient10_1"
export DYLD_LIBRARY_PATH
SQLPATH="/usr/local/oracle/instantclient10_1"
export SQLPATHAdd
/usr/local/oracle/instantclient10_1to yourPATHwhile you have/etc/profileopen. Then save it. - Reload your profile
source /etc/profile
- Test it out with the
sqlpluscommand line app.sqlplus [username][/password]@//[hostname][:port][/database]
If you can connect with that, then you’re good to go.


