Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with libclntsh.sl (Oracle on HP-UX 11)

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES

Hi!

Working on HPUX-11, I created a shell script to execute a SQL script on Oracle.

script.sh:
------------//---------
su oracle -c 'env ORACLE_SID=XXXX ORACLE_HOME=/u01/app/oracle/product/8.0.5 /u01/
app/oracle/product/8.0.5/bin/svrmgrl command=@/home/oracle/myscript.sql'
-------------//--------

But when executing, this message appears:
-----------//---------------
/usr/lib/dld.sl: Can't open shared library: /project/805/src/rdbms/lib//libclntsh.sl
/usr/lib/dld.sl: No such file or directory
----------//----------------

My 'libclntsh.sl' file is at /u01/app/oracle/product/8.0.5/lib, and I set
LD_LIBRARY_PATH as $ORACLE_HOME/lib

What's wrong? Thanks.
 
Which user owns that library? What are the permissions on it?

Hmm -- from the look of the path it's trying to open to the sl it's almost as if you have a version with a hard coded path to the sl. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Hi all,

I've just found my mistake: Instead of LD_LIBRARY_PATH, I must use SHLIB_PATH on HP-UX.

Thank you anyway.
 
Ahhh :) thank you... Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top