Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SID and sessionid
> SQL> select userenv('sessionid') from dual;
>
> USERENV('SESSIONID')
> --------------------
> 149
>
> SQL> select * from v$session where sid=149;
>
> no rows selected
>
> SID and SESSIONID are not the same ????
No they are not. USERENV('SESSIONID') corresponds to the column AUDSID in v$session. You can find several documents on this topic on Metalink.
Peter Received on Sun Dec 29 2002 - 09:17:57 CST