download link
http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html
Select:
the Instant Client for Linux x86-64
1) Download the following two ZIP package:
- instantclient-basic-linux.x64-12.2.0.1.0.zip
- instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
2) install dependencies:
yum install libaio* -y
3) uploaded to the server and unzip to the same directory
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) Add the environment variable
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) Add tnsnames.ora file
New catalog:
/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)))