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: Darryl E Balaski <darryl_e_balaski_at_groton.pfizer.com>
Date: Wed, 14 Oct 1998 15:52:11 -0400
Message-ID: <362500EB.2A8C@groton.pfizer.com>


I believe you can also do it from
dbms_sessions package (dbms_session.unique_session_id)

Marc Billiet wrote:
>
> 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 Wed Oct 14 1998 - 14:52:11 CDT

Original text of this message

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