Re: Select Current Session ID ?

From: <fitzjarrell_at_cox.net>
Date: Mon, 11 Feb 2008 12:36:25 -0800 (PST)
Message-ID: <7b2cddaf-da61-43cc-b035-d7a903b65625@c23g2000hsa.googlegroups.com>


On Feb 11, 7:08 am, Cassiano <cassianorol..._at_gmail.com> wrote:
> Hi
>
> How I can select *my* current session id (from v$session?) in sqlplus?
>
> Thanks

Apart from using the v$mystat view (available in 9i and later releases)

select sid
from v$session
where audsid = sys_context('USERENV', 'SESSIONID');

Presuming you have access to the V$SESSION view.

David Fitzjarrell Received on Mon Feb 11 2008 - 14:36:25 CST

Original text of this message