Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Getting SID in PL/SQL

Re: Getting SID in PL/SQL

From: Prabhakar Narayanan <prabhakar.narayanan_at_clsasia.com>
Date: Fri, 07 May 1999 15:57:28 +0800
Message-ID: <37329CE8.82E6B1E1@clsasia.com>


HI

I think you can use USERENV('SESSIONID')

select userenv('sessionid') from dual;

Try this and let me know

Regards

N.Prabhakar

Thomas Keller wrote:

> Hi,
>
> I need a value that's unique at a time (but all values should be in the
> smallest possible range). My idea was to use the SID (for example from
> V$SESSION).
> Is it possible to get the Value from anywhere? When I try a SELECT from
> V$SESSION in a package I get an error when compiling the package...
>
> Any Ideas?
>
> Thomas Keller


Received on Fri May 07 1999 - 02:57:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US