Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: enqueue wait events, locks and the meaning of id1/id2
Brian Peasland wrote:
>>I modified the query a bit, to this: >>SELECT >> TRUNC(id1/POWER(2,16)) rbs, >> BITAND(id1,65535)+0 slot, id2 seq >>FROM v$lock >>WHERE type='TX' >>AND lmode = 6 >> >>This gives me the following output: >> RBS SLOT SEQ >>---------- ---------- ---------- >> 6 80 1195257 >> 6 70 1192089 >> 6 42 1193083 >> 5 72 1060150 >> 5 96 1055042 >> 6 16 1190901 >> 5 14 1056651 >> 5 9 1058258 >> 6 1 1196554 >> 5 51 1057005 >> 5 1 1056275 >> >> RBS SLOT SEQ >>---------- ---------- ---------- >> 6 9 1189959
>>Is it possible to join this info with e.g. v$transaction to find the object?
I joined v$lock with v$transaction, but wasn't able to make much sense of the output. UBAFIL+UBABLK is either 0 or refers to a RBS, and START_UBAFIL+START_UBABLK always refers to a RBS. (That makes sense, I guess.)
>
> Alternatively, to find the object, query V$LOCKED_OBJECT. The RBS, SLOT,
> and SEQ columns above match the XIDUSN, XIDSLOT, and XIDSQN columns of
> V$LOCKED_OBJECT, respectively. From there, you should be able to get the
> OBJECT_ID, which maps to DBA_OBJECTS.
Hmm, it turns out that V$LOCKED_OBJECT is empty.
Some more facts & questions.
- The instance is set up with TRANSACTIONS = 489 and
TRANSACTIONS_PER_ROLLBACK_SEGMENT=49, but has only two rollback
segments(+ SYSTEM). Can this cause problems?
Thanks again.
Regards,
Bjørn
>
>
> HTH,
> Brian
>
>
Received on Fri Jan 30 2004 - 03:52:32 CST
![]() |
![]() |