Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0) (523 Views)
Reply
Occasional Visitor
Moulinath Ray
Posts: 2
Registered: ‎07-27-2009
Message 1 of 6 (1,498 Views)

Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

[ Edited ]

Hi Experts,
I am not able to start my sap system.
DB is Oracle 10g;OS is HP-UX; SAP version:ECC6.0

I am able to start DB from SQL command prompt, but application is not starting up.

R3trans -d is finished with return code 12.

Following is the error in "trans.log"
####################################
4 ETW000 [dev trc ,00000] Loading DB library '/usr/sap/IN1/SYS/exe/run/dboraslib.so' ...
4 ETW000 48 0.000374
4 ETW000 [dlux.c ,00000] *** ERROR => DlLoadLib: dlopen()= Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)
4 ETW000 815 0.001189
4 ETW000 [dbcon.c ,00000] *** ERROR => Couldn't load library '/usr/sap/IN1/SYS/exe/run/dboraslib.so'
4 ETW000 41 0.001230
2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/IN1/SYS/exe/run') or dbms_type ('ORA')"
###################################
Here are the inputs which may help
1.

NGMINDIA01:orain1 31> echo $DIR_LIBRARY
/usr/sap/IN1/SYS/exe/run
2.

NGMINDIA01:orain1 32> echo $SHLIB_PATH
/usr/sap/IN1/SYS/exe/run:/oracle/IN1/102_64/lib

3.

NGMINDIA01:orain1 33> cd /oracle
NGMINDIA01:orain1 34> ls -lrt
total 6
drwxr-xr-x 2 root root 96 Dec 16 2008 lost+found
drwxr-x--- 3 root sapinst 96 Jan 8 2009 client
drwxr-x--- 3 root sapinst 96 Jan 8 2009 stage
drwxr-xr-x 6 115 dba 1024 Jun 26 17:11 oraInventory
drwxr-xr-x 18 orain1 dba 2048 Jul 27 15:02 IN1

4.

NGMINDIA01:orain1 40> cd /oracle/client/10x_64
NGMINDIA01:orain1 41> ls -lrt
total 2
drwxrwx--- 2 orain1 dba 1024 Jul 27 16:2

5.
NGMINDIA01:orain1 42> cd instantclient_10201
NGMINDIA01:orain1 43> ls -lrt
total 218158
-rwxrwxrwx 1 orain1 dba 70113688 Feb 4 2006 libociei.so
-rwxrwxrwx 1 orain1 dba 5227072 Feb 4 2006 libnnz10.so
-rwxrwxrwx 1 orain1 dba 36352200 Feb 4 2006 libclntsh.so.10.1
-rw-r--r-- 1 in1adm sapsys 1423 Jul 27 16:28 trans.log

Please help.

 

P.S. This thread has been moved from HP-UX>General to HP-UX > databases. -HP Forum Moderator

Trusted Contributor
Roopesh Francis_1
Posts: 168
Registered: ‎03-31-2008
Message 2 of 6 (1,498 Views)

Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

Moulinath,

were you able to start SAP ealier in this machine.
can you pls try after adding the absolute path of the parent directory of libclntsh.so.10.1 to SHLIB_PATH
SHLIB_PATH=$SHLIB_PATH:

Thanks
Acclaimed Contributor
Dennis Handly
Posts: 25,071
Registered: ‎03-06-2006
Message 3 of 6 (1,498 Views)

Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

>cd instantclient_10201
-rwxrwxrwx 1 orain1 dba libclntsh.so.10.1

I don't see this in your SHLIB_PATH. Also your shlibs shouldn't have write permission. Do "chmod a-w" on all of them.
Honored Contributor
Wim Rombauts
Posts: 888
Registered: ‎08-20-1997
Message 4 of 6 (1,498 Views)

Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

Are you sure that SAP has enough with an instantclient installation ? To my knowledge, but we lag behind on our SAP version, you need a full Oracle Client installation.

Normally, for 64-bit application, you need to set LD_LIBRARY PATH, not SHLIB_PATH, and if your SAP software is a 32-bit version, you could have the wrong client installation (64 bit instead of 32 bit).
And maybe it's just a typo, but the SHLIB_PATH points to /oracle/IN1/102_64/lib, and after that, you show us the contents of /oracle/client/10x_64/... That's another directory, not used by SAP for as far as I can see.
Occasional Visitor
Moulinath Ray
Posts: 2
Registered: ‎07-27-2009
Message 5 of 6 (1,498 Views)

Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

Hi,
I could solve the issue.
The thing was that, the library files are in the directory /oracle/client/10x_64.But there is a link in the same path mentioned above(/oracle/client/10x_64)called "instantclient" which points to instantclient_10201.Somehow the link was missing.I created the link and the problem was solved.

Thanks to all of you for your cooperation.

Regards,
Moulinath Ray
Occasional Visitor
gsimpelo
Posts: 1
Registered: ‎06-24-2014
Message 6 of 6 (523 Views)

Re: Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (0,Error 0)

[ Edited ]

i had the same error earlier while finishing CU&UC upgrade. fixed it immediately by correcting my SHLIB_PATH env variable. make sure that the database client folders are the same with the env variable.

 

from:

SHLIB_PATH=/usr/sap/UP6/SYS/exe/run:/oracle/client/10x_64/instantclient

to:

SHLIB_PATH=/usr/sap/UP6/SYS/exe/run:/oracle/client/102_64/instantclient

 

 

now i am able to continue post-upgrade steps.

 

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.