1826417 Members
3734 Online
109692 Solutions
New Discussion

Re: SHLIB PATH in 11 i

 
cheers4asc
Occasional Contributor

SHLIB PATH in 11 i

I am exporting SHLIB_PATH as my user id . when I do su oracle ( not su - ) its not taking SHLIB PATH from previous env ..... its only happening with SHLIB_PATH varaible .... is it bug in 11 i ? any ideas ?
5 REPLIES 5
Sandip Ghosh
Honored Contributor

Re: SHLIB PATH in 11 i

Amol,

Until and unless U R doing su - oracle you will not get the environment though you will get the id of oracle.

Sandip
Good Luck!!!
cheers4asc
Occasional Contributor

Re: SHLIB PATH in 11 i

Thanks sandip ..... I am writing a script where I need to retain old env varaible ... thats why I am doing su oracle .... its picking up all old varaible except SHLIB_PATH .... in 11.0 its was wking fine ....
Steve Postlethwaite
New Member

Re: SHLIB PATH in 11 i

Hi,

I've come across exactly the same problem with the SHLIB_PATH being lost when suing to Oracle. Does anyone know if this bug has been acknowledged/fixed by HP?

thanks


stevep
Pete Randall
Outstanding Contributor

Re: SHLIB PATH in 11 i

If you're doing this in a script, why couldn't you capture the value of SHLIB_PATH before you su and then use that to reset it after you su?
Like:
export CURRSHLIB=`echo $SHLIB_PATH`
su oracle
export SHLIB_PATH=`echo $CURRSHLIB`

At least I think that ought to work.

Pete

Pete
Sanjay_6
Honored Contributor

Re: SHLIB PATH in 11 i

Hi,

Did you export the SHLIB_PATH for the old profile,

Login as root

export SHLIB_PATH=$SHLIB_PATH:new_path
su someuser

Hope this helps.

Regds