Operating System - HP-UX
1830898 Members
2706 Online
110017 Solutions
New Discussion

Re: Changing the embedded library search path

 
SOLVED
Go to solution
marko asplund
Frequent Advisor

Changing the embedded library search path

hi

I have a binary only library (Oracle10g Instant Client) which uses an embedded library search path that i would like to change. Can the embedded search path be changed somehow?

Are there other mechanisms on HP-UX 11i v1 for setting the library search path in addition to the embedded search path and environment variables? I would like to try and avoid using environment variables.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Changing the embedded library search path

Shalom Marko,

You may wish to avoid environment variables but Oracle absolutely, positively won't work without the correct SHLIB_PATH

To avoid messing up the system, I would make special environment files for the oracle user to run right before starting the database or client.

Sorry, Oracle is an environmental beast.

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
Peter Godron
Honored Contributor
Solution

Re: Changing the embedded library search path

Marko,
I doubt you can change a 'hardcoded' path.
Are you sure you have set all your environment variables (SLIB_PATH,PATH,LD_LIBRARY_PATH ...)

Alternatively you may want to look at creating a link between the 'hardcoded' path and the actual location.

Any more details available ?
marko asplund
Frequent Advisor

Re: Changing the embedded library search path

Using environment variables does work but I've found that the environment variables don't always get passed to subprocesses, especially in cases where a web application process created by Apache creates another subprocess (too many places where the variables need to be set. Also, Apache doesn't automatically pass all variables to subprocesses). For this reason I feel that the more reliable way is to use the embedded library search path that is present in the Instant Client.

For this reason I've found that it's simpler to link the installation path to the embedded search dir. This is slightly problematic from a system administration point of view but still acceptable. I wanted to make sure if this change could be bundled somehow with our application but apparently this is not possible.

Thanks for your help Steven and Peter.
Arunvijai_4
Honored Contributor

Re: Changing the embedded library search path

Hi,

I think, you can use "chatr" to do this. Check the man page for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
marko asplund
Frequent Advisor

Re: Changing the embedded library search path

if i've understood correctly, you can only control which mechanisms are used to define the search paths but not change the embedded search path.