search
HomeDatabaseMysql Tutorial非IMU模式下一条update语句产生REDORECORD条数的探究

注意: 每个实验前最好做下日志切换,更详细方法dump redo 文件的方法及本篇DUMP的TRACE文件见下载附件:本篇TRACE等附件下载,或者另一篇博客 :非IMU模式下DML语句产生的REDO日志内容式解读 实验1: BYS@ bys3select * from dept; DEPTNO DNAME LOC ------

注意:每个实验前最好做下日志切换,更详细方法dump redo 文件的方法及本篇DUMP的TRACE文件见下载附件:本篇TRACE等附件下载,或者另一篇博客 :非IMU模式下DML语句产生的REDO日志内容格式解读

实验1:

BYS@ bys3>select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
10 database NEW YORK
20 database DALLAS
40 OPERATIONS BOSTON
11 database bj
22 test sh
update dept set dname='oracle' where deptno 4 rows updated.

这个更新语句会产生四条REDO RECORD,因为对四条记录改为oracle
#############################

实验2:

BYS@ bys3>select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
40 OPERATIONS BOSTON
11 database bj
22 test sh
BYS@ bys3>update dept set dname='database' where deptno 3 rows updated.
这个更新语句中,已经有一条是database,这次更新了三条语句,但是只有两条REDO RECORD,
有一个REDO RECORD的CHANGE #1不一样:这个REDO RECORD只有CHANGE #1,CHANGE #2,CHANGE #1中就把这两个值放入UNDO,详见后面日志。
##########################################

实验3:

BYS@ bys3>select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
10 oracle NEW YORK
20 oracle DALLAS
40 OPERATIONS BOSTON
11 oracle bj
22 oracle sh
BYS@ bys3>set time on
09:47:59 BYS@ bys3>update dept set dname='oracle' where deptno=10;
1 row updated.
将一行中oracle--UPDATE为oracle,一条REDO RECORD
####################

实验4:

10:08:32 BYS@ bys3>select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
10 oracle NEW YORK
20 oracle DALLAS
40 OPERATIONS BOSTON
11 oracle bj
22 oracle sh
10:08:57 BYS@ bys3>update dept set dname='oracle' where deptno 4 rows updated.

更新了四行,这四行原值oracle,更新为oracle,只有一条一条REDO RECORD

##################

附dump 每次操作的redo日志

实验1的:

REDO RECORD - Thread:1 RBA: 0x00013b.00000029.0010 LEN: 0x01e4 VLD: 0x05
SCN: 0x0000.00704cb2 SUBSCN: 1 01/06/2014 22:04:42
(LWN RBA: 0x00013b.00000029.0010 LEN: 0003 NST: 0001 SCN: 0x0000.00704cb1)
CHANGE #1 TYP:0 CLS:33 AFN:3 DBA:0x00c00100 OBJ:4294967295 SCN:0x0000.00704c81 SEQ:1 OP:5.2 ENC:0 RBL:0
ktudh redo: slt: 0x0015 sqn: 0x00000e9f flg: 0x0012 siz: 164 fbi: 0
uba: 0x00c02e0e.0247.2a pxid: 0x0000.000.00000000
CHANGE #2 TYP:0 CLS:34 AFN:3 DBA:0x00c02e0e OBJ:4294967295 SCN:0x0000.00704c80 SEQ:3 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 164 spc: 3160 flg: 0x0012 seq: 0x0247 rec: 0x2a
xid: 0x0009.015.00000e9f
ktubl redo: slt: 21 rci: 0 opc: 11.1 [objn: 22327 objd: 22327 tsn: 4]
Undo type: Regular undo Begin trans Last buffer split: No
Temp Object: No
Tablespace Undo: No
0x00000000 prev ctl uba: 0x00c02e0e.0247.27
prev ctl max cmt scn: 0x0000.007049b5 prev tx cmt scn: 0x0000.007049e3
txn start scn: 0xffff.ffffffff logon user: 32 prev brb: 12591203 prev bcl: 0 BuExt idx: 0 flg2: 0
KDO undo record:
KTB Redo
op: 0x04 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: L itl: xid: 0x0001.00f.00000e9c uba: 0x00c01cbf.0250.0f
flg: C--- lkc: 0 scn: 0x0000.00702fe2
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 2
col 1: [ 8] 64 61 74 61 62 61 73 65
CHANGE #3 TYP:2 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00703bc4 SEQ:1 OP:11.5 ENC:0 RBL:0
KTB Redo
op: 0x11 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: F xid: 0x0009.015.00000e9f uba: 0x00c02e0e.0247.2a
Block cleanout record, scn: 0x0000.00704cb2 ver: 0x01 opt: 0x02, entries follow...
itli: 2 flg: 2 scn: 0x0000.00703bc4
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 1 ckix: 0
ncol: 3 nnew: 1 size: -2
col 1: [ 6] 6f 72 61 63 6c 65
##############################################################
REDO RECORD - Thread:1 RBA: 0x00013b.0000002a.0010 LEN: 0x0108 VLD: 0x01
SCN: 0x0000.00704cb2 SUBSCN: 1 01/06/2014 22:04:42
CHANGE #1 TYP:0 CLS:34 AFN:3 DBA:0x00c02e0e OBJ:4294967295 SCN:0x0000.00704cb2 SEQ:1 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 96 spc: 2994 flg: 0x0022 seq: 0x0247 rec: 0x2b
xid: 0x0009.015.00000e9f
ktubu redo: slt: 21 rci: 42 opc: 11.1 objn: 22327 objd: 22327 tsn: 4
Undo type: Regular undo Undo type: Last buffer split: No
Tablespace Undo: No
0x00000000
KDO undo record:
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2a
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 2
col 1: [ 8] 64 61 74 61 62 61 73 65
CHANGE #2 TYP:0 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00704cb2 SEQ:1 OP:11.5 ENC:0 RBL:0
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2b
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 1 ckix: 0
ncol: 3 nnew: 1 size: -2
col 1: [ 6] 6f 72 61 63 6c 65
###################################################
REDO RECORD - Thread:1 RBA: 0x00013b.0000002a.0118 LEN: 0x0108 VLD: 0x01
SCN: 0x0000.00704cb2 SUBSCN: 1 01/06/2014 22:04:42
CHANGE #1 TYP:0 CLS:34 AFN:3 DBA:0x00c02e0e OBJ:4294967295 SCN:0x0000.00704cb2 SEQ:2 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 96 spc: 2896 flg: 0x0022 seq: 0x0247 rec: 0x2c
xid: 0x0009.015.00000e9f
ktubu redo: slt: 21 rci: 43 opc: 11.1 objn: 22327 objd: 22327 tsn: 4
Undo type: Regular undo Undo type: Last buffer split: No
Tablespace Undo: No
0x00000000
KDO undo record:
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2b
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 2
col 1: [ 8] 64 61 74 61 62 61 73 65
CHANGE #2 TYP:0 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00704cb2 SEQ:2 OP:11.5 ENC:0 RBL:0
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2c
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 1 ckix: 0
ncol: 3 nnew: 1 size: -2
col 1: [ 6] 6f 72 61 63 6c 65
###################################################################
REDO RECORD - Thread:1 RBA: 0x00013b.0000002b.0030 LEN: 0x0104 VLD: 0x01
SCN: 0x0000.00704cb2 SUBSCN: 1 01/06/2014 22:04:42
CHANGE #1 TYP:0 CLS:34 AFN:3 DBA:0x00c02e0e OBJ:4294967295 SCN:0x0000.00704cb2 SEQ:3 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 92 spc: 2798 flg: 0x0022 seq: 0x0247 rec: 0x2d
xid: 0x0009.015.00000e9f
ktubu redo: slt: 21 rci: 44 opc: 11.1 objn: 22327 objd: 22327 tsn: 4
Undo type: Regular undo Undo type: Last buffer split: No
Tablespace Undo: No
0x00000000
KDO undo record:
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2c
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 6(0x6) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: -2
col 1: [ 4] 74 65 73 74
CHANGE #2 TYP:0 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00704cb2 SEQ:3 OP:11.5 ENC:0 RBL:0
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c02e0e.0247.2d
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 1 ispac: 0 maxfr: 4858
tabn: 0 slot: 6(0x6) flag: 0x2c lock: 1 ckix: 0
ncol: 3 nnew: 1 size: 2
col 1: [ 6] 6f 72 61 63 6c 65
################################################提交的日志条目:
REDO RECORD - Thread:1 RBA: 0x00013b.0000002c.0010 LEN: 0x008c VLD: 0x05
SCN: 0x0000.00704cb4 SUBSCN: 1 01/06/2014 22:04:43
(LWN RBA: 0x00013b.0000002c.0010 LEN: 0001 NST: 0001 SCN: 0x0000.00704cb3)
CHANGE #1 TYP:0 CLS:33 AFN:3 DBA:0x00c00100 OBJ:4294967295 SCN:0x0000.00704cb2 SEQ:1 OP:5.4 ENC:0 RBL:0
ktucm redo: slt: 0x0015 sqn: 0x00000e9f srt: 0 sta: 9 flg: 0x2 ktucf redo: uba: 0x00c02e0e.0247.2d ext: 8 spc: 2704 fbi: 0
END OF REDO DUMP

实验2的:

REDO RECORD - Thread:1 RBA: 0x00013a.00000002.0010 LEN: 0x01c0 VLD: 0x05
SCN: 0x0000.00703bc1 SUBSCN: 1 01/06/2014 21:56:03
(LWN RBA: 0x00013a.00000002.0010 LEN: 0002 NST: 0001 SCN: 0x0000.00703bc0)
CHANGE #1 TYP:0 CLS:23 AFN:3 DBA:0x00c000b0 OBJ:4294967295 SCN:0x0000.00703b80 SEQ:1 OP:5.2 ENC:0 RBL:0
ktudh redo: slt: 0x0004 sqn: 0x00000ec7 flg: 0x0012 siz: 168 fbi: 0
uba: 0x00c01ddb.0283.21 pxid: 0x0000.000.00000000
CHANGE #2 TYP:0 CLS:24 AFN:3 DBA:0x00c01ddb OBJ:4294967295 SCN:0x0000.00703b7f SEQ:9 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 168 spc: 3658 flg: 0x0012 seq: 0x0283 rec: 0x21
xid: 0x0004.004.00000ec7
ktubl redo: slt: 4 rci: 0 opc: 11.1 [objn: 22327 objd: 22327 tsn: 4]
Undo type: Regular undo Begin trans Last buffer split: No
Temp Object: No
Tablespace Undo: No
0x00000000 prev ctl uba: 0x00c01ddb.0283.01
prev ctl max cmt scn: 0x0000.007034c7 prev tx cmt scn: 0x0000.007034f1
txn start scn: 0xffff.ffffffff logon user: 32 prev brb: 12590550 prev bcl: 0 BuExt idx: 0 flg2: 0
KDO undo record:
KTB Redo
op: 0x04 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: L itl: xid: 0x0003.013.00000eac uba: 0x00c01ac7.0250.06
flg: C--- lkc: 0 scn: 0x0000.00702d7a
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 2 ---ACCOUNTING 比database多两个字节
col 1: [10] 41 43 43 4f 55 4e 54 49 4e 47 ---对应的是将第一行第二列的值放进UNDO---ACCOUNTING
CHANGE #3 TYP:0 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00703bb3 SEQ:3 OP:11.5 ENC:0 RBL:0
KTB Redo
op: 0x01 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: F xid: 0x0004.004.00000ec7 uba: 0x00c01ddb.0283.21
KDO Op code: URP row dependencies Disabled
xtype: XA flags: 0x00000000 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: -2
col 1: [ 8] 64 61 74 61 62 61 73 65

REDO RECORD - Thread:1 RBA: 0x00013a.00000002.01d0 LEN: 0x0190 VLD: 0x01 --这个REDO RECORD只有CHANGE #1,CHANGE #2
SCN: 0x0000.00703bc1 SUBSCN: 1 01/06/2014 21:56:03
CHANGE #1 TYP:0 CLS:24 AFN:3 DBA:0x00c01ddb OBJ:4294967295 SCN:0x0000.00703bc1 SEQ:1 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 164 spc: 3488 flg: 0x0022 seq: 0x0283 rec: 0x22
xid: 0x0004.004.00000ec7
ktubu redo: slt: 4 rci: 33 opc: 11.1 objn: 22327 objd: 22327 tsn: 4
Undo type: Regular undo Undo type: Last buffer split: No
Tablespace Undo: No
0x00000000
KDO undo record:
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c01ddb.0283.21
Array Update of 2 rows:
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 8] 52 45 53 45 41 52 43 48 ---DUMP('RESEARCH',16)
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 8] 64 61 74 61 62 61 73 65 --DUMP('DATABASE',16)
CHANGE #2 TYP:0 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00703bc1 SEQ:1 OP:11.19 ENC:0 RBL:0
KTB Redo
op: 0x02 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: C uba: 0x00c01ddb.0283.22
Array Update of 2 rows:
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 8] 64 61 74 61 62 61 73 65
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 8] 64 61 74 61 62 61 73 65
REDO RECORD - Thread:1 RBA: 0x00013a.00000004.0010 LEN: 0x008c VLD: 0x05 --这个是提交语句的。
SCN: 0x0000.00703bc4 SUBSCN: 1 01/06/2014 21:56:07
(LWN RBA: 0x00013a.00000004.0010 LEN: 0001 NST: 0001 SCN: 0x0000.00703bc3)
CHANGE #1 TYP:0 CLS:23 AFN:3 DBA:0x00c000b0 OBJ:4294967295 SCN:0x0000.00703bc1 SEQ:1 OP:5.4 ENC:0 RBL:0
ktucm redo: slt: 0x0004 sqn: 0x00000ec7 srt: 0 sta: 9 flg: 0x2 ktucf redo: uba: 0x00c01ddb.0283.22 ext: 16 spc: 3322 fbi: 0

实验3的日志:

REDO RECORD - Thread:1 RBA: 0x00013d.00000002.0010 LEN: 0x0214 VLD: 0x05
SCN: 0x0000.0070cae5 SUBSCN: 1 01/07/2014 09:48:10
(LWN RBA: 0x00013d.00000002.0010 LEN: 0002 NST: 0001 SCN: 0x0000.0070cae4)
CHANGE #1 TYP:0 CLS:23 AFN:3 DBA:0x00c000b0 OBJ:4294967295 SCN:0x0000.0070caaa SEQ:1 OP:5.2 ENC:0 RBL:0
ktudh redo: slt: 0x000d sqn: 0x00000ee5 flg: 0x0012 siz: 188 fbi: 0
uba: 0x00c040fa.0286.12 pxid: 0x0000.000.00000000
CHANGE #2 TYP:0 CLS:24 AFN:3 DBA:0x00c040fa OBJ:4294967295 SCN:0x0000.0070caa9 SEQ:3 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 188 spc: 5884 flg: 0x0012 seq: 0x0286 rec: 0x12
xid: 0x0004.00d.00000ee5
ktubl redo: slt: 13 rci: 0 opc: 11.1 [objn: 22327 objd: 22327 tsn: 4]
Undo type: Regular undo Begin trans Last buffer split: No
Temp Object: No
Tablespace Undo: No
0x00000000 prev ctl uba: 0x00c040fa.0286.0f
prev ctl max cmt scn: 0x0000.0070c50b prev tx cmt scn: 0x0000.0070c522
txn start scn: 0xffff.ffffffff logon user: 32 prev brb: 12599542 prev bcl: 0 BuExt idx: 0 flg2: 0
KDO undo record:
KTB Redo
op: 0x04 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: L itl: xid: 0x0004.004.00000ec7 uba: 0x00c01ddb.0283.22
flg: C--- lkc: 0 scn: 0x0000.00703bc4
Array Update of 1 rows:
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
CHANGE #3 TYP:2 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.00704cb4 SEQ:1 OP:11.19 ENC:0 RBL:0
KTB Redo
op: 0x11 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: F xid: 0x0004.00d.00000ee5 uba: 0x00c040fa.0286.12
Block cleanout record, scn: 0x0000.0070cae5 ver: 0x01 opt: 0x02, entries follow...
itli: 1 flg: 2 scn: 0x0000.00704cb4
Array Update of 1 rows:
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65

REDO RECORD - Thread:1 RBA: 0x00013d.00000004.0010 LEN: 0x008c VLD: 0x05
SCN: 0x0000.0070cae7 SUBSCN: 1 01/07/2014 09:48:11
(LWN RBA: 0x00013d.00000004.0010 LEN: 0001 NST: 0001 SCN: 0x0000.0070cae6)
CHANGE #1 TYP:0 CLS:23 AFN:3 DBA:0x00c000b0 OBJ:4294967295 SCN:0x0000.0070cae5 SEQ:1 OP:5.4 ENC:0 RBL:0
ktucm redo: slt: 0x000d sqn: 0x00000ee5 srt: 0 sta: 9 flg: 0x2 ktucf redo: uba: 0x00c040fa.0286.12 ext: 19 spc: 5694 fbi: 0

实验4的:

REDO RECORD - Thread:1 RBA: 0x00013f.000000de.0010 LEN: 0x0304 VLD: 0x05
SCN: 0x0000.0070cfe9 SUBSCN: 1 01/07/2014 10:09:20
(LWN RBA: 0x00013f.000000de.0010 LEN: 0002 NST: 0001 SCN: 0x0000.0070cfe8)
CHANGE #1 TYP:0 CLS:33 AFN:3 DBA:0x00c00100 OBJ:4294967295 SCN:0x0000.0070cfbf SEQ:1 OP:5.2 ENC:0 RBL:0
ktudh redo: slt: 0x0004 sqn: 0x00000ebc flg: 0x0012 siz: 308 fbi: 0
uba: 0x00c037d5.0249.08 pxid: 0x0000.000.00000000
CHANGE #2 TYP:0 CLS:34 AFN:3 DBA:0x00c037d5 OBJ:4294967295 SCN:0x0000.0070cfbe SEQ:3 OP:5.1 ENC:0 RBL:0
ktudb redo: siz: 308 spc: 7252 flg: 0x0012 seq: 0x0249 rec: 0x08
xid: 0x0009.004.00000ebc
ktubl redo: slt: 4 rci: 0 opc: 11.1 [objn: 22327 objd: 22327 tsn: 4]
Undo type: Regular undo Begin trans Last buffer split: No
Temp Object: No
Tablespace Undo: No
0x00000000 prev ctl uba: 0x00c037d5.0249.05
prev ctl max cmt scn: 0x0000.0070cc57 prev tx cmt scn: 0x0000.0070cc81
txn start scn: 0xffff.ffffffff logon user: 32 prev brb: 12597202 prev bcl: 0 BuExt idx: 0 flg2: 0
KDO undo record:
KTB Redo
op: 0x04 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: L itl: xid: 0x0004.00d.00000ee5 uba: 0x00c040fa.0286.12
flg: C--- lkc: 0 scn: 0x0000.0070cae7
Array Update of 4 rows:
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 6(0x6) flag: 0x2c lock: 0 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
CHANGE #3 TYP:2 CLS:1 AFN:4 DBA:0x010000fd OBJ:22327 SCN:0x0000.0070cb7f SEQ:1 OP:11.19 ENC:0 RBL:0
KTB Redo
op: 0x11 ver: 0x01
compat bit: 4 (post-11) padding: 1
op: F xid: 0x0009.004.00000ebc uba: 0x00c037d5.0249.08
Block cleanout record, scn: 0x0000.0070cfe9 ver: 0x01 opt: 0x02, entries follow...
itli: 1 flg: 2 scn: 0x0000.0070cb7f
Array Update of 4 rows:
tabn: 0 slot: 2(0x2) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 3(0x3) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 5(0x5) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65
tabn: 0 slot: 6(0x6) flag: 0x2c lock: 2 ckix: 0
ncol: 3 nnew: 1 size: 0
KDO Op code: 21 row dependencies Disabled
xtype: XAxtype KDO_KDOM2 flags: 0x00000080 bdba: 0x010000fd hdba: 0x010000fa
itli: 2 ispac: 0 maxfr: 4858
vect = 3
col 1: [ 6] 6f 72 61 63 6c 65

REDO RECORD - Thread:1 RBA: 0x00013f.000000df.0124 LEN: 0x0060 VLD: 0x01
SCN: 0x0000.0070cfea SUBSCN: 1 01/07/2014 10:09:20
CHANGE #1 TYP:0 CLS:33 AFN:3 DBA:0x00c00100 OBJ:4294967295 SCN:0x0000.0070cfe9 SEQ:1 OP:5.4 ENC:0 RBL:0
ktucm redo: slt: 0x0004 sqn: 0x00000ebc srt: 0 sta: 9 flg: 0x2 ktucf redo: uba: 0x00c037d5.0249.08 ext: 10 spc: 6942 fbi: 0

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Explain the InnoDB Buffer Pool and its importance for performance.Explain the InnoDB Buffer Pool and its importance for performance.Apr 19, 2025 am 12:24 AM

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

MySQL vs. Other Programming Languages: A ComparisonMySQL vs. Other Programming Languages: A ComparisonApr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Learning MySQL: A Step-by-Step Guide for New UsersLearning MySQL: A Step-by-Step Guide for New UsersApr 19, 2025 am 12:19 AM

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL: Essential Skills for Beginners to MasterMySQL: Essential Skills for Beginners to MasterApr 18, 2025 am 12:24 AM

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL: Structured Data and Relational DatabasesMySQL: Structured Data and Relational DatabasesApr 18, 2025 am 12:22 AM

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL: Key Features and Capabilities ExplainedMySQL: Key Features and Capabilities ExplainedApr 18, 2025 am 12:17 AM

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

The Purpose of SQL: Interacting with MySQL DatabasesThe Purpose of SQL: Interacting with MySQL DatabasesApr 18, 2025 am 12:12 AM

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

MySQL for Beginners: Getting Started with Database ManagementMySQL for Beginners: Getting Started with Database ManagementApr 18, 2025 am 12:10 AM

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment