Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: V$session_wait question and rollback segments

Re: V$session_wait question and rollback segments

From: Diego Cutrone <diegocutrone_at_yahoo.com.ar>
Date: Tue, 4 May 2004 17:43:48 -0700
Message-ID: <05f101c4323a$087f50f0$a504fea9@DC>


Yeap, Sorry Jonathan.
This is the correct infomation from v$lock (ID1 and ID2):

      SID TY ID1 ID2 LMODE REQUEST CTIME BLOCK --------- -- --------- --------- --------- --------- --------- ---------

      112 TX 196661 514403 0 6 439874 0

I know I can get rollback segment ID from "trunc(ID1/65536)". Do you know how to get the slot number?

BTW, I think I have finally found the cause of the problem from my other question: (the TX 4 enqueue wait --)

It was not an ITL shortage.
Two sessions were executing the same procedure and I believe (I cannot be sure cause I can't get the bind values of a command that has already been executed) they were using the same values.I took a process dump on both sessions and they showed that the same INSERT there.

Session 112 inserted a value in the table PO_REQUISITION_LINES_ALL, which has no contraints but has 2 unique indexes. It did not commit or rollback. And after a while session 121 performed the same insert. And it is still there waiting for a TX 4 on session 112 TX enqueue.

      SID TY ID1 ID2 LMODE REQUEST CTIME BLOCK --------- -- --------- --------- --------- --------- --------- ---------

      102 TX    196661    514403         6         0    440693         1
      102 TM     45172         0         2         0    440542         0
      102 TM     45137         0         2         0    440693         0
      112 TX   1114137     17942         6         0    439874         1
      112 TM     45137         0         3         0    439874         0
      112 TM     45172         0         3         0    439874         0
      112 TX    196661    514403         0         6    439874         0
      121 TX   1179714      7865         6         0    438439         0
      121 TM     45172         0         3         0    438439         0
      121 TX   1114137     17942         0         4    438439         0


This is the block header where Session 112 is holding the TX 6 (and Session 121 is waiting for.)

 Block header dump: 0x3b003b81
 Object id on Block? Y
 seg/obj: 0xb074 csc: 0x00.28dacfab itc: 10 flg: O typ: 1 - DATA

     fsl: 0 fnx: 0x0 ver: 0x01

 Itl           Xid                  Uba         Flag  Lck        Scn/Fsc
0x01   xid:  0x0011.019.00004616    uba: 0x5b404350.0188.50  ----    1  fsc 0x00   <<<<<<<<<<<<<<<<<<
00.00000000
0x02 xid: 0x0012.054.00001eb5 uba: 0x5b400cc1.00b1.2d C--- 0 scn 0x00 00.28b61f10
0x03 xid: 0x0005.008.00086ef6 uba: 0x59400b30.8f0f.0f C--- 0 scn 0x00 00.28b61fd8
0x04 xid: 0x000e.01e.00004815 uba: 0x5b4039d5.0178.42 C--- 0 scn 0x00 00.28be0a93
0x05 xid: 0x0010.01a.00002117 uba: 0x5ac00aac.00a0.0b C--- 0 scn 0x00 00.28be0c92
0x06 xid: 0x0006.058.00083fce uba: 0x5b000b22.88c5.12 C--- 0 scn 0x00 00.28be0ea3
0x07 xid: 0x0001.00e.000789e0 uba: 0x59400eb0.81e2.32 C--- 0 scn 0x00 00.28d4c94f
0x08 xid: 0x000f.04f.00003122 uba: 0x5b000a6c.00f2.3b C--- 0 scn 0x00 00.28d65a09
0x09 xid: 0x000c.001.00005576 uba: 0x5b401828.01fa.37 C--- 0 scn 0x00 00.28d65ac8
0x0a xid: 0x0003.035.0007d963 uba: 0x59401146.8771.3f ---- 1 fsc 0x00 00.00000000

v$transaction

SID name XIDUSN XIDSLOT XIDSQN UBAFIL UBABLK UBASQN U_BLK status START_TIME

---------------- ----- ------ ------- ------ ------ ------ ------ ----- ------ -----------
102              RBS06      6       8 541484    357   5572 -30503     1 ACTIVE 05/04 08:55
112              RBS17     17      25  17942    365  17233    392     2 ACTIVE 04/29 13:38
121              RBS18     18      66   7865    365   3289    177     1 ACTIVE 04/29 14:02


Let me know if you have any additional input.

Thank you
and
Regards
Diego.

>
> You've lost a bit of your wait.
> From your previous post:
>
> name|mode
> 0000000054580006
> id1
> 0000000000030035
> id2
> 000000000007D963
>
> Name/Mode:
> 5458 / 06
> T X / mode 6 (exclusive)
>
> ID1
> 3 35 Undo segment 3, slot 0x35
> ID2
> 7D963 Sequence number
>
> The ID1 / ID2 correspond to the id1/id2 in v$lock
> which also correspond, after slicing up into the
> XIDUSN
> XIDSLOT
> XIDSQN
> from v$transaction.
>
> This is one of the ones that is easier to read in Hex
> than it is in the decimal form.
>
> Regards
>
> Jonathan Lewis
> http://www.jlcomp.demon.co.uk
>
> The Co-operative Oracle Users' FAQ
> http://www.jlcomp.demon.co.uk/faq/ind_faq.html
>
> Optimising Oracle Seminar
> http://www.jlcomp.demon.co.uk/seminar.html
>
> June 2004 UK Manchester
> July 2004 Iceland
> July 2004 USA California
> Aug 2004 USA North Carolina
> Sept 2004 UK Manchester
> Sept 2004 USA NYC
> Oct 2004 USA Boston
>
>
> ----- Original Message -----
> From: "Diego Cutrone" <diegocutrone_at_yahoo.com.ar>
> To: "Oracle List" <oracle-l_at_freelists.org>
> Sent: Tuesday, May 04, 2004 4:25 AM
> 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.
>
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue May 04 2004 - 15:38:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US