HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting SHLIB_PATH Env.

 
Kasi_1
Advisor

Setting SHLIB_PATH Env.

I am finding it extremely difficult to set the SHLIB_PATH environment variable in the system for my SAP System copy procedure.

I need to set /sapmnt/BQ1/exe as my SHLIB_PATH as my SAP DB copy requires this. It was giving this following error.
"ERROR 2009-05-26 19:49:21
MUT-02044 The following paths expected but not found in the library path environment variable (SHLIB_PATH) /sapmnt/BQ1/exe/."

Even after I set this I have the same error repeating itself.

My strong feeling is I am missing something here. But dont know what. My exposure to UNIX systems is limited

Please provide some suggestion as to how I go about correcting it.

So I tried setting this environment variable by
"
# export SHLIB_PATH=/sapmnt/BQ1/exe
# echo $SHLIB_PATH
/sapmnt/BQ1/exe"
5 REPLIES
mobidyc
Trusted Contributor

Re: Setting SHLIB_PATH Env.

Hello,

is /sapmnt/BQ1/exe an NFS automount directory ?
can you see your libraries in this directory ?

Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
Mel Burslan
Honored Contributor

Re: Setting SHLIB_PATH Env.

would the SAP DB copy process is a script which may not inherit your shell variables ?

SAP guys on UNIX OS variants are, inexplicably, are enamored with the C-shell and variable assignments do not work the same way in c-shell as they do in POSIX.

Without knowing the details of the SAP DB copy process it is not quite possible to give you an answer correctly.
________________________________
UNIX because I majored in cryptology...
OldSchool
Honored Contributor

Re: Setting SHLIB_PATH Env.

is the db copy procedure a script? if so, did you check to see that it's not unsetting / reseting SHLIB_PATH inside somewhere?
James R. Ferguson
Acclaimed Contributor

Re: Setting SHLIB_PATH Env.

Hi:

You don't say exactly what you are doing. If after setting SHLIB_PATH you 'su' to another user as with 'su sapuser -c ..." then the 'SU_KEEP_ENV_VARS' setting of your '/etc/default/security' file needs to be examined. By default, 'su' does not export the environment variables HOME, ENV, IFS, SHLIB_PATH or LD_*.

http://docs.hp.com/en/B3921-60631/security.4.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Setting SHLIB_PATH Env.

Shalom,

SHLIB_PATH is not sufficient.

It needs to include other standard libraries that your compiler needs.

This should be available from the SAP and back end database documentation.

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