Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to get serial# of current session or OS user_name
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