Install oracle client on Redhat 7

When trying to run one of our application on a Redhat 7 amazon  instance, I had this error:


libclntsh.so: cannot open shared object file: No such file or directory

DBMS API Library loading fails
This library is a part of DBMS client installation, not SQLAPI++
Make sure DBMS client is installed and
this required library is available for dynamic loading

Linux/Unix:
1) The directories in the user's LD_LIBRARY_PATH environment variable
2) The list of libraries cached in /etc/ld.so.cache
3) /usr/lib, followed by /lib

The application needed the oracle client library to connect to our Oracle DB.

To install it, we did:

  • download from oracle the file oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
  • install it:
    • yum install oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
  • Create a symbolic link

cd /usr/lib/oracle/12.1/client64/lib/

ln -s  libclntsh.so.12.1 libclntsh.so

 

 

 

Advertisements
This entry was posted in Cracking the coding interview - a python experience. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s