SQL> create table undo_layer_t5(c1 number, c2 varchar2(10), c3 char(20));
SQL> insert into undo_layer_t5 values(1, 'A', 'a');
SQL> insert into undo_layer_t5 values(2, 'B', 'b');
SQL> commit;
kjwon:ora10g:KJWON >
l select sid from v$mystat where rownum = 1;
SID
----------
148
kjwon:ora10g:KJWON >
l select rowid, substr(rowid, 1, 15), c1 from undo_layer_t5;
ROWID SUBSTR(ROWID,1,15) C1
------------------ ------------------------------ ----------
AAAM1CAAGAAAAANAAA AAAM1CAAGAAAAAN 1
AAAM1CAAGAAAAANAAB AAAM1CAAGAAAAAN 2
kjwon:ora10g:KJWON >
l @rowid2fb
INPUT ROWID : AAAM1CAAGAAAAANAAA
OBJECT FILE_NO BLOCK_NO ROW_NUMBER
---------- ---------- ---------- ----------
52546 6 13 0
kjwon:ora10g:KJWON >
l alter system dump datafile 6 block 13;
kjwon:ora10g:KJWON >
l delete from undo_layer_t5;
kjwon:ora10g:KJWON >
l alter system dump datafile 6 block 13;
kjwon:ora10g:KJWON >
l select xidusn, xidslot, xidsqn
2 from v$transaction
3 where addr = (select taddr from v$session where sid = 148);
XIDUSN XIDSLOT XIDSQN
---------- ---------- ----------
7 39 313
kjwon:ora10g:KJWON >
l alter system dump undo header '_SYSSMU7$';
kjwon:ora10g:KJWON >
l alter system dump undo block '_SYSSMU7$' xid 7 39 313;
kjwon:ora10g:KJWON >
l commit;
kjwon:ora10g:KJWON >
l alter system dump datafile 6 block 13;
kjwon:ora10g:KJWON >
l alter system dump undo header '_SYSSMU7$';
kjwon:ora10g:KJWON >
l alter system dump undo block '_SYSSMU7$' xid 7 39 313;
Start dump data blocks tsn: 7 file#: 6 minblk 13 maxblk 13 buffer tsn: 7 rdba: 0x0180000d (6/13) scn: 0x0000.0009e77f seq: 0x02 flg: 0x00 tail: 0xe77f0602 frmt: 0x02 chkval: 0x0000 type: 0x06=trans data Object id on Block? Y seg/obj: 0xcd42 csc: 0x00.9e77f itc: 2 flg: E typ: 1 - DATA brn: 0 bdba: 0x1800009 ver: 0x01 opc: 0 inc: 0 exflg: 0 Itl Xid Uba Flag Lck Scn/Fsc 0x01 0x0001.00b.00000133 0x00800241.00b5.10 C--- 0 scn 0x0000.0009e64f 0x02 0x0007.027.00000139 0x008000bd.0107.2f 2 fsc 0x0036.00000000 |
Start dump data blocks tsn: 7 file#: 6 minblk 13 maxblk 13 buffer tsn: 7 rdba: 0x0180000d (6/13) scn: 0x0000.0009e8a9 seq: 0x01 flg: 0x02 tail: 0xe8a90601 frmt: 0x02 chkval: 0x0000 type: 0x06=trans data Block header dump: 0x0180000d Object id on Block? Y seg/obj: 0xcd42 csc: 0x00.9e77f itc: 2 flg: E typ: 1 - DATA brn: 0 bdba: 0x1800009 ver: 0x01 opc: 0 inc: 0 exflg: 0 Itl Xid Uba Flag Lck Scn/Fsc 0x01 0x0001.00b.00000133 0x00800241.00b5.10 C--- 0 scn 0x0000.0009e64f 0x02 0x0007.027.00000139 0x008000bd.0107.2f --U- 2 fsc 0x0036.0009e8a9 |
******************************************************************************** Undo Segment: _SYSSMU7$ (7) ******************************************************************************** TRN TBL:: index state cflags wrap# uel scn dba parent-xid nub stmt_num cmt ... 0x25 9 0x00 0x0139 0x001e 0x0000.0009e617 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682212 0x26 9 0x00 0x0139 0x001f 0x0000.0009e6b8 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682537 0x27 10 0x80 0x0139 0x0002 0x0000.0009e64f 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 0 0x28 9 0x00 0x0139 0xffff 0x0000.0009e747 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682863 0x29 9 0x00 0x0138 0x002c 0x0000.00098f80 0x00800073 0x0000.000.00000000 0x00000001 0x00000000 1307612995 ... |
******************************************************************************** Undo Segment: _SYSSMU7$ (7) ******************************************************************************** TRN TBL:: index state cflags wrap# uel scn dba parent-xid nub stmt_num cmt ... 0x25 9 0x00 0x0139 0x001e 0x0000.0009e617 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682212 0x26 9 0x00 0x0139 0x001f 0x0000.0009e6b8 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682537 0x27 9 0x00 0x0139 0xffff 0x0000.0009e8a9 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307683423 0x28 9 0x00 0x0139 0x0027 0x0000.0009e747 0x008000bd 0x0000.000.00000000 0x00000001 0x00000000 1307682863 0x29 9 0x00 0x0138 0x002c 0x0000.00098f80 0x00800073 0x0000.000.00000000 0x00000001 0x00000000 1307612995 ... |
******************************************************************************** Undo Segment: _SYSSMU7$ (7) xid: 0x0007.027.00000139 Low Blk : (0, 0) High Blk : (3, 7) Object Id : ALL Layer : ALL Opcode : ALL Level : 2 ******************************************************************************** UNDO BLK: Extent: 2 Block: 4 dba (file#, block#): 2,0x000000bd xid: 0x0007.027.00000139 seq: 0x107 cnt: 0x2f irb: 0x2f icl: 0x0 flg: 0x0000 * - * Rec #0x2f slt: 0x27 objn: 52546(0x0000cd42) objd: 52546 tblspc: 7(0x00000007) * Layer: 11 (Row) opc: 1 rci 0x2e Undo type: Regular undo Last buffer split: No Temp Object: No Tablespace Undo: No rdba: 0x00000000 * - KDO undo record: KTB Redo op: 0x02 ver: 0x01 op: C uba: 0x008000bd.0107.2e KDO Op code: IRP row dependencies Disabled xtype: XA flags: 0x00000000 bdba: 0x0180000d hdba: 0x0180000b itli: 2 ispac: 0 maxfr: 4858 tabn: 0 slot: 1(0x1) size/delt: 29 fb: --H-FL-- lb: 0x0 cc: 3 null: --- col 0: 2 c1 03 col 1: 1 42 col 2: 20 62 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 * - * Rec #0x2e slt: 0x27 objn: 52546(0x0000cd42) objd: 52546 tblspc: 7(0x00000007) * Layer: 11 (Row) opc: 1 rci 0x00 Undo type: Regular undo Begin trans Last buffer split: No Temp Object: No Tablespace Undo: No rdba: 0x00000000 * - uba: 0x008000bd.0107.14 ctl max scn: 0x0000.00098f0b prv tx scn: 0x0000.00098f2c txn start scn: scn: 0x0000.0009e64f logon user: 61 prev brb: 8388723 prev bcl: 0 KDO undo record: KTB Redo op: 0x03 ver: 0x01 op: Z KDO Op code: IRP row dependencies Disabled xtype: XA flags: 0x00000000 bdba: 0x0180000d hdba: 0x0180000b itli: 2 ispac: 0 maxfr: 4858 tabn: 0 slot: 0(0x0) size/delt: 29 fb: --H-FL-- lb: 0x0 cc: 3 null: --- col 0: 2 c1 02 col 1: 1 41 col 2: 20 61 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |