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 get serial# of current session or OS user_name

Re: how to get serial# of current session or OS user_name

From: Steve Ashmore <sashmore_at_neonramp.com>
Date: Sun, 21 Apr 2002 15:28:07 -0500
Message-ID: <uc686otc26lf58@corp.supernews.com>


Hi,

v$mystat will show you your sid.

So the query:

select serial#, osuser from v$session
  where sid =
    (select distinct sid from v$mystat);

Will do the trick.
Your session will need select on v$session to do this.

Stephen C. Ashmore
Brainbench MVP for Oracle Administration http://www.brainbench.com

"Blaze" <b_kwiatkowski_at_poczta.onet.pl> wrote in message news:a9v4m4$jj0$1_at_news.tpi.pl...
> Hi!
> I'm trying to get a serial# or OS user name of current session.
> Thanks in advance for help
> Blaze
>
>
Received on Sun Apr 21 2002 - 15:28:07 CDT

Original text of this message

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