Re: Solaris strip LD_LIBRARY_PATH when su - oracle

From: <>
Date: Thu, 14 May 2009 17:47:20 -0700 (PDT)
Message-ID: <>

On May 14, 12:34 pm, KT <> wrote:
> Hi All,
> In my rc script, I have su - oracle to run
> /var/opt/oracle/product/10.2.0/db_1/bin/lsnrctl
> However, it fails with the following:
> /var/opt/oracle/product/10.2.0/db_1/bin/lsnrctl: fatal:
> open failed: No such file or directory
> The cause is that the env var
> LD_LIBRARY_PATH=/var/opt/oracle/product/10.2.0/db_1/lib was stripped
> by the su process. According to the su man page:
> " Variables with LD_ prefix are removed for security reasons.
> Thus, su bin will not retain previously exported variables
> with LD_ prefix while becoming user bin (bin used as example
> previously)"
> How do I make Solaris 8 su to keep the LD_LIBRARY_PATH setting or hard
> code this setting into Oracle configuration file so that lsnrctl will
> not fail?
> Thanks,
> Kerr

The Oracle install documentation for your release of oracle on the correct operating system has complete information about what environment variables you need to set and what they should be set to.

Please consider following the oracle documentation ... it makes life much easier. Received on Thu May 14 2009 - 19:47:20 CDT

Original text of this message