Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Session# and SID In a Trigger
"B. Alfredo M. Naling, Jr." <someone_at_hotmail.com> wrote in message news:<angthm$m7r$1_at_reader01.singnet.com.sg>...
> How do I determine the session serial# and session sid inside a trigger. I
> know
> you can query v$session with a "where username = user" but I don't want this
> criteria as it is possible that one user is logged on more than once.
>
> Help!!!
>
> cheers,
> Alfredo
the correct criterion is
where audsid = userenv('sessionid')
This solution doesn't work for SYS.
Hth
Sybrand Bakker
Senior Oracle DBA
Received on Thu Oct 03 2002 - 08:49:12 CDT