1、安装:
oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
2、添加:tnsnames.ora
/usr/lib/oracle/11.2/client64/network/admin/tnsnames.ora
3、添加环境变量
export ORACLE_HOME=/usr/lib/oracle/11.2/client64
export NLS_LANG=american_america.zhs16gbk
export TNS_ADMIN=$ORACLE_HOME/network/admin/tnsnames.ora
export LD_LIBRARY_PATH=$ORACLE_HOME/lib