If you want to install a client-side oracle tool that can use sqlplus commands on a Linux, you can remotely connect to other oracle to execute some scripts.
step;
1. Install the following three rpm packages of rpm -ivh:
oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm
2. Modify the /etc/profile file, and finally add:
export ORACLE_HOME=/usr/lib/oracle/12.2/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME/bin
3. Unexpected error, prompt when executing sqlplus:
sqlplus: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
#ldd /usr/lib/oracle/12.2/client64/bin/sqlplus shows that libnsl.so.1 cannot be found.
I went directly to another computer and copied libnsl.so.1 to /usr/lib64 of the local computer, and the problem was solved.