BlueXIII's Blog

热爱技术,持续学习

0%

Ubuntu 16.04下安装InstantClient12.2

下载地址

http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html

选择:
Instant Client for Linux x86-64

下载以下两个ZIP包:

  • instantclient-basic-linux.x64-12.2.0.1.0.zip
  • instantclient-sqlplus-linux.x64-12.2.0.1.0.zip

解压安装

1
2
3
unzip instantclient-basic-linux.x64-12.2.0.1.0.zip
unzip instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
sudo mv instantclient_12_2 /opt/instantclient

环境变量

1
2
3
4
export ORACLE_HOME=/opt/instantclient
export LD_LIBRARY_PATH=/opt/instantclient
export TNS_ADMIN=/opt/instantclient
export PATH=$PATH:/opt/instantclient