on 2008 May 19 11:26 AM
OS: HP-UX 11.23
SAP: NW2004s SR2
DB: Oracle 10.2.0.2
Hi,
I am trying to start SAP WebAS ABAP system using startsap script but it fails at DB startup phase. The log file suggests that startdb is unable to locate library libclntsh.so.10.1
SHLIB_PATH points to /oracle/client/10x_64/instantclient and I can see that libclntsh.so.10.1 is there. But ldd dboraslib.so says:
libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1
libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1
Unable to find library libclntsh.so.10.1
The system was working fine until the root file system got full and some system admin acivity took place on the server. The oracle trace files were relocated. Thats about it. But now when I try to start the system, I keep on getting this error.
I have referred to various SAP notes (e.g 819829) and threads on SDN but none seem to be much helpful.
Thanks in advance for your time.
Regards
Edited by: Shehryar Khan on May 19, 2008 3:27 PM
I have run command ldd -s dboraslib and the output is:
...
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. Any hints???
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In both directories, sym link and the actual one, file libclntsh.so.10.1 returns:
file libclntsh.so.10.1: ELF-64 shared object file - IA64
Should a find command work in both cases as well? I have tried issuing a find command on both directories and I get results in case of the original one but the not the from link.
Regards
Ok, I have tried the file command by switching to root user and it shows the attributes. Seems there is a problem with sidadm user'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?
Regards
> Thanks. System configuration was working fine until there was a space problem in root file system. From SAP note 819829, it says that LD_LIBRARY_PATH is for LINUX and SOLARIS.
This is not completely correct - see the blog at
http://administratosphere.wordpress.com/2007/10/19/shared-libraries-hp-ux/
> I have tried it though but same response. It still can't locate the file.
This is really strange. I can do that nicely:
testsyst:fooadm> ldd dboraslib.so
libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1
libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1
libclntsh.so.10.1 => /oracle/client/10x_64/instantclient/libclntsh.so.10.1
libnnz10.so => /oracle/client/10x_64/instantclient/libnnz10.so
libc.so.1 => /usr/lib/hpux64/libc.so.1
libxti.so.1 => /usr/lib/hpux64/libxti.so.1
libnnz10.so => /oracle/client/10x_64/instantclient/libnnz10.so
librt.so.1 => /usr/lib/hpux64/librt.so.1
libnss_dns.so.1 => /usr/lib/hpux64/libnss_dns.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
libm.so.1 => /usr/lib/hpux64/libm.so.1
libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1
libunwind.so.1 => /usr/lib/hpux64/libunwind.so.1
libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
libuca.so.1 => /usr/lib/hpux64/libuca.so.1
What we can try is to take the instantclient path out of both SHLIB_PATH and LD_LIBRARY_PATH since it's hardcoded (using -R).
Check with command
chatr dboraslib.so
if the instantclient path is there.
Then, after taking that out of the environment, try again.
Markus
I have here
testsyst:fooadm> ls -l /oracle/client/
total 0
drwxrwxr-x 3 fooadm sapsys 96 Apr 23 05:01 10x_64
testsyst:fooadm> ls -l /oracle/client/10x_64/
total 4
-rwxrwxr-x 1 fooadm sapsys 100 Mar 27 2006 dbclient.lst
lrwxr-x--- 1 root sapinst 41 Apr 23 05:01 instantclient -> /oracle/client/10x_64/instantc
lient_10201
drwxrwxr-x 2 fooadm sapsys 1024 Mar 27 2006 instantclient_10201
Markus
Hello,
>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. Any hints???
As you are using an old version of the instantclient (as per note 819829 it is recommended to use 10.2.0.2 version) I'd try to install (using the correct user) the version 10.2.0.2
I think you have an authorization problem, but lets try first installing a nwer version.
Thanks. It seems there is a difference in my /oracle/client authorizations. You have
ls -l /oracle/client/
total 0
drwxrwxr-x 3 fooadm sapsys 96 Apr 23 05:01 10x_64
When I run ls -l /oracle/client as erpadm, I get
/oracle/client unreadable
total 0
But when I run ls -l /oracle/client as root, I get
total 2
drwxr-xr-x 4 root root 1024 May 19 14:06 10x_64
Should I change authorization of the oracle/client or is there a workaround to this?
> Thanks. It seems there is a difference in my /oracle/client authorizations. You have
>
>
> ls -l /oracle/client/
> total 0
> drwxrwxr-x 3 fooadm sapsys 96 Apr 23 05:01 10x_64
>
is the sapsid FOO or is this another system, it is not very clear
>
> When I run ls -l /oracle/client as erpadm, I get
>
> /oracle/client unreadable
> total 0
>
>
> But when I run ls -l /oracle/client as root, I get
>
> total 2
> drwxr-xr-x 4 root root 1024 May 19 14:06 10x_64
>
>
> Should I change authorization of the oracle/client or is there a workaround to this?
change the aauthorizations to erpadm and group sapsys. only root can make that change.
Also, you should update to 10.2.0.2, but this change will allow you to use the instantclient.
> As you are using an old version of the instantclient (as per note 819829 it is recommended to use 10.2.0.2 version) I'd try to install (using the correct user) the version 10.2.0.2
Yes - I know - but the client on the installation DVD as well as the client downloadable from the SMP have that version for HP-UX IA64. I didn't check the latest ORCLR2 release.
Markus
> Not sure, in theory the file should be called OCL10264_V2.SAR
> Perhaps is the "normal" 10.2.0.2 that they forgot to upload 😄
lol
I just downloaded and and installed on one of our testsystems:
<...>
M kernel runs with dp version 235000(ext=110000) (@(#) DPLIB-INT-VERSION-235000-UC)
M length of sys_adm_ext is 576 bytes
M ***LOG Q01=> ThInit, WPStart (Workproc 0 1 19474) [thxxhead.c 1281]
M ThInit: running on host testsyst
M calling db_connect ...
C Oracle Client Version: '10.2.0.2.0'
C Client NLS settings: AMERICAN_AMERICA.UTF8
C Logon as OPS$-user to get SAPFOO's password
<...>
So at least it's now 10.2.0.2.
I unpacked it using "fooadm" and recreated the link:
testsyst:fooadm> cd /oracle/client/10x_64/
testsyst:fooadm> ls -l
total 87440
-rw-rw-rw- 1 fooadm sapsys 44765594 May 19 23:20 OCL10264_HP_IA64.SAR
-rw-r--r-- 1 fooadm sapsys 100 May 4 2006 dbclient.lst
lrwxrwxrwx 1 fooadm sapsys 41 May 19 23:21 instantclient -> /oracle/client/10x_64/instantclient_10202
drwxrwxr-x 2 fooadm sapsys 1024 Mar 27 2006 instantclient_10201
drwxr-xr-x 2 fooadm sapsys 1024 May 4 2006 instantclient_10202
Markus
User | Count |
---|---|
57 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.