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: How do I get _my_ session id?

Re: How do I get _my_ session id?

From: Marc Billiet <Marc.Billiet_at_hae.hydro.com>
Date: Tue, 13 Oct 1998 16:42:19 +0100
Message-ID: <362374DB.249F@hae.hydro.com>


Try one of the following:

select sid from sys.v$session where audsid = userenv('sessionid');

or:

select distinct sid from sys.v$mystat

Marc

Helmut Hahn wrote:
>
> Andreas Dunker wrote:
>
> > Hi *,
> >
> > how do I get the session id of the current connection;
> > for example in sqlplus
> >
> > select something from someviewortable;
> >
> > Andreas
> >
Received on Tue Oct 13 1998 - 10:42:19 CDT

Original text of this message

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