mac os oracle client sqlplus

到oracle网站下载oracleClient解压到目录,配置好tnsnames.ora

.bashrc文件

export ORACLE_CLIENT_HOME=/Users/***/oracleClient/64/11.2.0.4.0/
export DYLD_LIBRARY_PATH=${ORACLE_CLIENT_HOME}
export PATH=${ORACLE_CLIENT_HOME}:$PATH    
export TNS_ADMIN=${ORACLE_CLIENT_HOME}
export SQLPATH=${ORACLE_CLIENT_HOME}
export nls_lang="simplified chinese_china.Utf8"

如果打开新的终端不执行.bashrc文件时,编辑.bash_profile

if [ "${BASH-no}" != "no" ]; then  
    [ -r ~/.bashrc ] && . ~/.bashrc  
fi