Wednesday, August 26, 2009

oracle client libraries on 64bit linux (resolving libclntsh.so.10.1 error loading shared libraries)

I recently had a problem when after an oracle client install looked like it went ok, I tried to execute a particular utility (csscan) and it gave me an error of "libclntsh.so.10.1 error loading shared libraries".

I checked my LD_LIBRARY_PATH, and it was set to the following:

/home/oracle/product/10.2.0/lib:/lib/:/usr/lib

After banging my head, I realized I was installing a 64 bit Oracle client, but trying to load 32 bit shared libraries from the OS (/lib and /usr/lib are 32 bit, but the Oracle 'lib' directory is 64 bit. Oracle has a 'lib32' directory for 32 bit libraries)

After changing my LD_LIBRARY_PATH to the following:

/home/oracle/product/10.2.0/lib:/lib64/:/usr/lib64

My problems were solved... so even if you think your LD_LIBRARY_PATH is set right, it probably isn't if you get that error.

No comments: