General
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to find library libclntsh.so.10.1

 
SOLVED
Go to solution
Highlighted
Advisor

Unable to find library libclntsh.so.10.1

HP-UX 11.23
Oracel 10.2.0.2

After the dev/root filesystem was full, the administrator relocated a few trace file. This seemingly has resulted in causing the database startup failure. The command ld -s dboraslib.so returns:

+++
find library=libclntsh.so.10.1; required by /usr/sap/ERP/SYS/exe/run/dboraslib
.so
search path=/usr/sap/ERP/SYS/exe/run:/oracle/client/10x_64/instantclient (S
HLIB_PATH)
trying path=/usr/sap/ERP/SYS/exe/run/libclntsh.so.10.1
trying path=/oracle/client/10x_64/instantclient/libclntsh.so.10.1
search path=/oracle/client/10x_64/instantclient:/oracle/client/10x_64/lib:/o
racle/db_sw/102_64/instantclient:/oracle/db_sw/102_64/software/lib:/usr/lib/hpux
64:/opt/langtools/lib/hpux64 (RPATH)
trying path=/oracle/client/10x_64/instantclient/libclntsh.so.10.1
trying path=/oracle/client/10x_64/lib/libclntsh.so.10.1
trying path=/oracle/db_sw/102_64/instantclient/libclntsh.so.10.1
trying path=/oracle/db_sw/102_64/software/lib/libclntsh.so.10.1
trying path=/usr/lib/hpux64/libclntsh.so.10.1
trying path=/opt/langtools/lib/hpux64/libclntsh.so.10.1
search path=/usr/lib/hpux64 (default)
trying path=/usr/lib/hpux64/libclntsh.so.10.1
Unable to find library 'libclntsh.so.10.1'.
+++


The directory /oracle/client/10x_64/instantclient is a symbolic link pointing to /oracle/client/10x_64/instantclient_10201 and the relevant libraries are in the actual directory. So I am stumped why these can't be located by dboraslib.so. Any hints???

Regards
11 REPLIES 11
Highlighted
Honored Contributor

Re: Unable to find library libclntsh.so.10.1

Hi,

Could you post your LD_LIBRARY_PATH env setting?

# echo $LD_LIBRARY_PATH

Regards,
Robert-Jan
Highlighted
Exalted Contributor

Re: Unable to find library libclntsh.so.10.1

Shalom,

SHLIB_PATH should be checked.

Also, if /usr is not a separate filesytstem, root getting filled up could have actually damaged the contents of the filesystem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Advisor

Re: Unable to find library libclntsh.so.10.1

Thanks for the response. SHLIB_PATH points to:

/usr/sap/SID/SYS/exe/run:/oracle/client/10x_64/instantclient

As I mentioned, all the libraries are available in /oracle/client/10x_64/instantclient_10201 which has a link to /oracle/client/10x_64/instantclient. But when I issue file or find command on the symbolic link directory, I get nothing back.
Highlighted
Advisor

Re: Unable to find library libclntsh.so.10.1

file /oracle/client/10x_64/instantclient/libclntsh.so.10.1 returns

/oracle/client/10x_64/instantclient/libclntsh.so.10.1: cannot open

But when I go inside file /oracle/client/10x_64/instantclient, I can see all the files.
Highlighted
Honored Contributor

Re: Unable to find library libclntsh.so.10.1

could you post a ll of both the link aswel as the lib (libclntsh.so.10.1)?

Regards,
Robert-Jan
Highlighted
Advisor

Re: Unable to find library libclntsh.so.10.1

+++
In the sym link directory
# cd instantclient
# ll
total 231162
-rwxrwxr-x 1 erpadm sapsys 1594191 Mar 27 2006 classes12.jar
-rwxrwxr-x 1 erpadm sapsys 36352200 Feb 4 2006 libclntsh.so.10.1
-rwxrwxr-x 1 erpadm sapsys 5227072 Feb 4 2006 libnnz10.so
-rwxrwxr-x 1 erpadm sapsys 3322440 Feb 4 2006 libocci.so.10.1
-rwxrwxr-x 1 erpadm sapsys 70113688 Feb 4 2006 libociei.so
-rwxrwxr-x 1 erpadm sapsys 201112 Feb 4 2006 libocijdbc10.so
-rwxrwxr-x 1 erpadm sapsys 1540457 Mar 27 2006 ojdbc14.jar
#
+++
+++
In the actual directory
# ll
total 231162
-rwxrwxr-x 1 erpadm sapsys 1594191 Mar 27 2006 classes12.jar
-rwxrwxr-x 1 erpadm sapsys 36352200 Feb 4 2006 libclntsh.so.10.1
-rwxrwxr-x 1 erpadm sapsys 5227072 Feb 4 2006 libnnz10.so
-rwxrwxr-x 1 erpadm sapsys 3322440 Feb 4 2006 libocci.so.10.1
-rwxrwxr-x 1 erpadm sapsys 70113688 Feb 4 2006 libociei.so
-rwxrwxr-x 1 erpadm sapsys 201112 Feb 4 2006 libocijdbc10.so
-rwxrwxr-x 1 erpadm sapsys 1540457 Mar 27 2006 ojdbc14.jar
#
+++

Thanks and regards
Highlighted
Advisor

Re: Unable to find library libclntsh.so.10.1

I have tried the file command by switching to root user and it shows the attributes. Seems there is a problem with user erpadm's authorization. Currently, when I issues ls -l for the directory instantclient, I get:


lrwxr-x--- 1 root sapinst 41 May 15 11:57 instantclient -> /oracle/client/10x_64/instantclient_10201


While the actual physical directory instantclient_10201 has the following attributes:

drwxrwxr-x 1 erpadm sapsys 1024 Mar 27 2006 instantclient_10201



Any ideas what the authorizations should be for linked directory so that I can access it using user erpadm?
Highlighted
Honored Contributor
Solution

Re: Unable to find library libclntsh.so.10.1


rwxr-x--- 1 root sapinst 41 May 15 11:57 instantclient -> /oracle/client/10x_64/instantclient_10201

add sapsys to the group sapinst or change the permissions to 755.
Highlighted
Advisor

Re: Unable to find library libclntsh.so.10.1

Thanks. There was an authorization problem which I have addressed. All replies are highly appreciated.

Regards