MacOS 安装sqlplus

下载地址 http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

安装方法:1. Download the desired Instant Client ZIP files. All installations require the Basic or Basic Lite package.

2. Unzip the packages into a single directory such as “/opt/oracle/instantclient_11_2” that is accessible to your application.

3. Create the appropriate libclntsh.dylib and libocci.dylib links for the version of Instant Client. For example:

cd /opt/oracle/instantclient_11_2
ln -s libclntsh.dylib.11.1 libclntsh.dylib
ln -s libocci.dylib.11.1 libocci.dylib

4. Set the environment variable DYLD_LIBRARY_PATH to the directory created in Step 2, for example:

export DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2:$DYLD_LIBRARY_PATH

5. To use supplied binaries such as SQL*Plus, update your PATH environment variable, for example:

export PATH=/opt/oracle/instantclient_11_2:$PATH

6. Start your application.