Why do I get error "[unixODBC][Easysoft][Oracle]Could not open libclntsh.a No such file or directory [ISQL]ERROR: Could not SQLConnect" on AIX?
libclntsh.a
is an "archived" file, which cannot be opened by the Oracle ODBC driver. To work around this, "unarchive" the file and extract the shared object. To do this, change directory to $ORACLE_HOME/lib
(or $ORACLE_HOME/lib32
if you're using the 32-bit library). Then enter ar -xv libclntsh.a
.
This generates a file called shr.o
, which you then need to rename to libclntsh.so
. The Oracle ODBC driver can then load the required shared object.
Add $ORACLE_HOME/lib
or $ORACLE_HOME/lib32
to your LIBPATH
.