oracleinstantclient_12_2安装下载地址
linux安装oracle依赖包选择:
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)添加a⽂件
新建⽬录:
/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)))

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。