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: Anton Buijs <aammbuijs_at_xs4all.nl>
Date: Sun, 21 Apr 2002 22:32:02 +0200
Message-ID: <a9v7iv$ml8$1@news1.xs4all.nl>


Not a solution I'am proud of but the only one I can think of so quickly:

SELECT * FROM v$session WHERE sid = (SELECT DISTINCT sid FROM v$mystat);

v$mystat gives statistics info of your current session and includes the sessions sid which is the unique key for v$session. Note that v$session is only accessable for users with select_catalog_role (like system). It includes a.o. the OS user name.

Blaze <b_kwiatkowski_at_poczta.onet.pl> schreef in berichtnieuws 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:32:02 CDT

Original text of this message

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