| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: How can I get a transaction's session id from inside the transaction ?
JusungYang_at_yahoo.com (Jusung Yang) wrote in
news:130ba93a.0210121021.7cc48a71_at_posting.google.com:
> Let's try this again:
>
> JusungYang_at_yahoo.com (Jusung Yang) wrote in message
> news:<130ba93a.0210111755.47d083ae_at_posting.google.com>...
>> > How can I find out if an Oracle object is accessed simultanously by >> > multiple transactions ? >> >> Look up v$locked_object. Though if you explicitly lock a table, it >> would also show up in this view.
>> > How can I get a transaction's session id from inside the
>> > transaction?
>>
>> select sid from v$session, v$transaction where saddr=ses_addr and
>> audsid=userenv('sessionid');
>>
select sid from v$mystats
where rowid = 1;
Received on Sat Oct 12 2002 - 14:55:00 CDT
![]() |
![]() |