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

Home -> Community -> Usenet -> c.d.o.server -> Re: how to find session id/serial no. of current session

Re: how to find session id/serial no. of current session

From: Martin Haltmayer <Martin_Haltmayer_at_KirchGruppe.de>
Date: 1997/10/06
Message-ID: <3438818F.CA5577A8@KirchGruppe.de>#1/1

Thomas Kyte wrote:
>
> On Sun, 5 Oct 1997 01:04:35 +0800, "S S Wan" <sswan_at_hk.super.net> wrote:
>
> >Does anybody know how to find the session id and serial number
> >of the current session?
> >
> >Thanks.
> >
>
> select sid, serial# from v$session where audsid = userenv('sessionid');
>
> will do it....
>

It will only for a user having SELECT ANY TABLE privilege. That's exactly the problem...

-- 
Martin Haltmayer
Received on Mon Oct 06 1997 - 00:00:00 CDT

Original text of this message

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