undo header trace 文件:
TRN CTL:: seq: 0x07a9 chd: 0x0020 ctl: 0x001f inc: 0x00000000 nfb: 0x0001
--seq表示该回滚段上的事务表被重用了1961次。因此事务表已经被覆盖多次
mgc: 0xb000 xts: 0x0068 flg: 0x0001 opt:
2147483646 (0x7ffffffe)
uba: 0x018000bc.
07a9.
23 scn: 0x0000.00150d58 ------这个SCN是事务表中近期被重用的事务表记录之前的事务的提交SCN,能够理解为已经被覆盖的事务记录中拥有最大的SCN值(事务表记录重用是依照提交SCN从小到大的顺序重用的)
Version: 0x01
FREE BLOCK POOL::
uba: 0x018000be.
07a9.
04 ext: 0x1 spc: 0xf12
uba: 0x00000000.
07a3.
05 ext: 0x1 spc: 0xa84
uba: 0x00000000.0000.
24 ext: 0x0 spc: 0x124e
uba: 0x00000000.0000.00 ext: 0x0 spc: 0x0
uba: 0x00000000.0000.00 ext: 0x0 spc: 0x0
TRN TBL::
index state cflags wrap# uel scn dba parent
-xid nub stmt_num cmt
------------------------------------------------------------------------------------------------
0x00
9 0x00 0x014b 0x0002 0x0000.
00150e05 0x018000bf 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x01
9 0x00 0x014b 0x000b 0x0000.
00150ecf 0x018000be 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x02
9 0x00 0x014b 0x0003 0x0000.
00150e19 0x018000b1 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x03
9 0x00 0x014b 0x0005 0x0000.
00150e2c 0x018000b3 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x04
9 0x00 0x014b 0x0006 0x0000.
00150e54 0x018000b6 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x05
9 0x00 0x014b 0x0004 0x0000.
00150e3e 0x018000b4 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x06
9 0x00 0x014b 0x0007 0x0000.
00150e69 0x018000b7 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x07
9 0x00 0x014b 0x0008 0x0000.
00150e81 0x018000b9 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x08
9 0x00 0x014b 0x0009 0x0000.
00150e94 0x018000bb 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x09
9 0x00 0x014b 0x000a 0x0000.
00150eb8 0x018000bb 0x0000.000.00000000 0x00000001 0x00000000
1399886134
0x0a
9 0x00 0x014b 0x0001 0x0000.
00150ec4 0x018000bd 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x0b
9 0x00 0x014b 0x000c 0x0000.
00150ee2 0x018000b1 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x0c
9 0x00 0x014b 0x000d 0x0000.
00150eea 0x018000b3 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x0d
9 0x00 0x014b 0x000e 0x0000.
00150ef1 0x018000b3 0x0000.000.00000000 0x00000001 0x00000000
1399886134
0x0e
9 0x00 0x014b 0x000f 0x0000.
00150ef8 0x018000b4 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x0f
9 0x00 0x014b 0x0010 0x0000.
00150f09 0x018000b6 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x10
9 0x00 0x014b 0x0011 0x0000.
00150f32 0x018000b7 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x11
9 0x00 0x014b 0x0012 0x0000.
00150f45 0x018000b9 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x12
9 0x00 0x014b 0x0013 0x0000.
00150f64 0x018000ba 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x13 9 0x00 0x014b 0x0014 0x0000.00150f78 0x018000bc 0x0000.000.00000000 0x00000003 0x00000000 1399886134
0x14
9 0x00 0x014b 0x0015 0x0000.
00150f90 0x018000bd 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x15
9 0x00 0x014b 0x0016 0x0000.
00151002 0x018000bf 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x16
9 0x00 0x014b 0x0017 0x0000.
0015108e 0x018000b2 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x17
9 0x00 0x014b 0x0018 0x0000.
00151095 0x018000b2 0x0000.000.00000000 0x00000001 0x00000000
1399886134
0x18
9 0x00 0x014b 0x0019 0x0000.
001510a1 0x018000b4 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x19
9 0x00 0x014b 0x001a 0x0000.
001510b9 0x018000b5 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x1a
9 0x00 0x014b 0x001b 0x0000.
001510e7 0x018000b7 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x1b
9 0x00 0x014b 0x001c 0x0000.
00151135 0x018000b9 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x1c
9 0x00 0x014b 0x001d 0x0000.
0015113c 0x018000b9 0x0000.000.00000000 0x00000001 0x00000000
1399886134
0x1d
9 0x00 0x014b 0x001e 0x0000.
00151146 0x018000bb 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x1e
9 0x00 0x014b 0x001f 0x0000.
00151156 0x018000bc 0x0000.000.00000000 0x00000002 0x00000000
1399886134
0x1f
9 0x00 0x014b 0xffff 0x0000.
00151165 0x018000be 0x0000.000.00000000 0x00000003 0x00000000
1399886134
0x20
9 0x00 0x014a 0x0021 0x0000.
00150d73 0x018000bb 0x0000.000.00000000 0x00000001 0x00000000
1399886134
0x21
9 0x00 0x014a 0x0000 0x0000.
00150d8b 0x018000bd 0x0000.000.00000000 0x00000003 0x00000000
1399886134
undo block trace文件:
UNDO BLK:
xid: 0x0016.
01f.
00000141 seq: 0x76c cnt: 0x2 irb: 0x2 icl: 0x0 flg: 0x0000
Rec
Offset Rec
Offset Rec
Offset Rec
Offset
Rec
Offset
---------------------------------------------------------------------------
0x01 0x1ba0 0x02 0x17bc
*-----------------------------
* Rec #0x1 slt: 0x1f objn:
73429(0x00011ed5) objd:
73429 tblspc:
4(0x00000004)
* Layer:
11 (
Row) opc:
1 rci 0x00
Undo
type: Regular undo
Last buffer split:
No
Temp Object:
No
Tablespace Undo:
No
rdba: 0x018000b3
*-----------------------------
KDO undo record:
KTB Redo
op: 0x02 ver: 0x01
compat
bit:
4 (post
-11) padding:
1
op:
C uba: 0x018000b3.
076c.
07
Array Update of 20 rows:
tabn:
0 slot:
60(0x3c) flag: 0x2c
lock:
0 ckix:
157
ncol:
2 nnew:
1 size:
0
KDO Op code:
21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010002ab hdba: 0x010002aa
itli:
2 ispac:
0 maxfr:
4858
vect
= 3
col
1: [
12]
44 44 44 44 44 44 44 44 44 44 44 44
tabn:
0 slot:
61(0x3d) flag: 0x2c
lock:
0 ckix:
157
ncol:
2 nnew:
1 size:
0
KDO Op code:
21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010002ab hdba: 0x010002aa
itli:
2 ispac:
0 maxfr:
4858
vect
= 3
.................省略这一undo record中的一部分
col
1: [
12]
44 44 44 44 44 44 44 44 44 44 44 44
tabn:
0 slot:
79(0x4f) flag: 0x2c
lock:
0 ckix:
157
ncol:
2 nnew:
1 size:
0
KDO Op code:
21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010002ab hdba: 0x010002aa
itli:
2 ispac:
0 maxfr:
4858
vect
= 3
col
1: [
12]
44 44 44 44 44 44 44 44 44 44 44 44
*-----------------------------
* Rec #0x2 slt: 0x1f objn:
73429(0x00011ed5) objd:
73429 tblspc:
4(0x00000004)
* Layer:
11 (
Row) opc:
1 rci 0x01
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
compat
bit:
4 (post
-11) padding:
1
op:
C uba: 0x018000b4.
076c.
01
Array Update of 18 rows:
tabn:
0 slot:
80(0x50) flag: 0x2c
lock:
0 ckix:
157
ncol:
2 nnew:
1 size:
0
KDO Op code:
21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010002ab hdba: 0x010002aa
itli:
2 ispac:
0 maxfr:
4858
vect
= 3
.....................省略这一undo record中的一部分
col
1: [
12]
44 44 44 44 44 44 44 44 44 44 44 44
tabn:
0 slot:
97(0x61) flag: 0x2c
lock:
0 ckix:
157
ncol:
2 nnew:
1 size:
0
KDO Op code:
21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010002ab hdba: 0x010002aa
itli:
2 ispac:
0 maxfr:
4858
vect
= 3
col
1: [
12]
44 44 44 44 44 44 44 44 44 44 44 44
End dump
data blocks tsn:
7 file#:
6 minblk
180 maxblk
180
能够看到。这个undo block中仅仅有两个undo record。无法再找到延迟事务相应的undo record 即1b。