error while loading shared libraries: libclntsh.so.19.1

While trying to run one of the Oracle Utilities (oratop), I received the following error:
oratop: error while loading shared libraries: libclntsh.so.19.1: cannot open shared object file: No such file or directory.

This error doesn’t mean that the library doesn’t exist, but in most cases, it is missing environment settings.

Let us first check if this library exist under the ORACLE_HOME or not:

So, library is there. So, we just need to identify the path to this library and other libraries.
This done by setting the LD_LIBRARY_PATH variable as follows:

sudo su – oracle

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

Now, let us test running the oratop utility again:

Now, it is working fine.

We may touch the functionality of the oratop utility in another post.

Leave a comment