码迷,mamicode.com
首页 > 数据库 > 详细

oracle instantclient_12_2安装

时间:2019-07-03 20:19:03      阅读:567      评论:0      收藏:0      [点我收藏+]

标签:home   index   asi   ice   http   tab   down   ash   cat   

下载地址

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

选择:
Instant Client for Linux x86-64

1)下载以下两个ZIP包:

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

2)安装依赖包:
yum install libaio* -y 

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 /soft/

 4)添加环境变量

export ORACLE_HOME=/soft/instantclient_12_2
export LD_LIBRARY_PATH=/soft/instantclient_12_2
export TNS_ADMIN=/soft/instantclient_12_2
export PATH=$PATH:/soft/instantclient_12_2

5)添加tnsnames.ora文件

新建目录:

/soft/instantclient_12_2/network/admin

test =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 47.75.108.44)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
      (SERVICE_NAME = tro)))

 

oracle instantclient_12_2安装

标签:home   index   asi   ice   http   tab   down   ash   cat   

原文地址:https://www.cnblogs.com/Dev0ps/p/11128514.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!