Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: V$session_wait question and rollback segments
I do not think an actual full working SQL was posted. I generally use the
v$transaction table to get this information if I want it but here is an SQL
script that appears to work and which can be found in the
comp.databases.oracle.server archives: enqueue wait events, locks and the
meaning of id1/id2 by Brian Peasland 2004-01-27.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&safe =off&threadm=T9NRb.71%24rj4.789%40news2.e.nsc.no&rnum=1&prev=/groups%3Fas_q% 3Did1%2520rbs%2520segment%26safe%3Doff%26ie%3DUTF-8%26oe%3DUTF-8%26as_ugroup %3Dcomp.databases.oracle*%26as_drrb%3Db%26as_mind%3D1%26as_minm%3D1%26as_min y%3D2000%26as_maxd%3D10%26as_maxm%3D5%26as_maxy%3D2004%26lr%3D%26num%3D30%26 hl%3Den
SELECT TRUNC(id1/POWER(2,16)) rbs,
BITAND(id1,TO_NUMBER('ffff','xxxx'))+0 slot, id2 seq
FROM v$lock
WHERE sid=8 AND type='TX';
HTH -- Mark D Powell --
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Diego Cutrone
Sent: Monday, May 03, 2004 11:26 PM
To: Oracle List
Subject: V$session_wait question and rollback segments
Hi List,
Does anybody know how to derivate the rollback number and the slot number
within the rollback transaction table from v$session_wait id1 and id2 on an
enqueue TX wait?
SID ID1 ID2 112 enqueue 0000000054580006 0000000000030035
I know there's a formula for this, but I just can't find it.
Thank you
I really appreciate your help.
Regards
Diego.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Mon May 10 2004 - 13:48:45 CDT
-----------------------------------------------------------------
![]() |
![]() |