sqlplus: error while loading shared libraries: lib

Why can’t you grab tickets when you travel on holiday?Reveal the key technology of 12306 how to ensure the ticket is not oversold>>>

If you want to install a client-side Oracle tool that can use the sqlplus command on a Linux, you can connect to other Oracle remotely to execute some scripts conveniently

Steps

1. Install the following three RPM packages for 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 machine and copied libnsl. So. 1 to/usr/lib64 on this machine, and the problem was solved

Similar Posts: