首页 > 代码库 > Linux 上安装oracle客户端

Linux 上安装oracle客户端

1. 下载安装包

http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.zip
oracle-instantclient11.2-sdk-11.2.0.1.0-1.x86_64.zip
oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.x86_64.zip

 

2. 解压三个压缩包到/opt/oracle/  -->/opt/oracle/instantclient_11_2

 

3. 设置环境变量

export ORACLE_HOME=/opt/oracle/instantclient_11_2
export PATH=$PATH:$ORACLE_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH
export TNS_ADMIN=$ORACLE_HOME
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"

 

3. 在/opt/oracle/instantclient_11_2添加tnsnames.ora文件就OK了

 

Linux 上安装oracle客户端