Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: No local connection via sqlplus (TNS:lost contact)
Thorsten Jens <thojens_at_gmx.de> wrote:
>> >Any ideas? >> >> LD_LIBRARY_PATH or LIBPATH issue?
I think I know what your problem is.
To sum up the situation:
The oracle executable has the SETUID and SETGID bits set as it should,
but only the oracle user can connect via sqlplus, other users in the dba
group cannot. Setting LD_LIBRARY_PATH does not help.
Was this correct so far?
The problem is that because the SETUID bit is set, the LD_LIBRARY_PATH is ignored for the executable for other users. This is to prevent a security leak: else you could set LD_LIBRARY_PATH to a forged libc library and get it executed as root by invoking su, for example.
The solution is to add /oracle/product/9.2.0/lib to the trusted library path with crle.
Check with your system documentation as I have no Solaris in reach, but
crle -uvs/oracle/product/9.2.0/lib
should do the trick.
Is there an RPATH in Solaris? If yes, that would be another possibility: relink the oracle executable so that it directly references the correct library path.
Yours,
Laurenz Albe
Received on Mon Nov 28 2005 - 03:22:15 CST
![]() |
![]() |