上传client64至系统上
链接: https://pan.baidu.com/s/1toTIvyt60DyQrbOKJlkqhg?pwd=pt65 提取码: pt65
解压及赋予权限
##配置用户环境变量
cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
export ORACLE_HOME=解压后的路径
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG='simplified chinese_china'.ZHS16GBK
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=$sid
#测试
sqlplus user/password@ip:1521/$sid