从Undo, Redo, DataFile看Oracle中的事务过程
2009-06-12 11:51:00 来源:WEB开发网Xid和Uba的内容和V$transactio中的内容一致。
data_block_dump,data header at 0x30a105c
===============
tsiz: 0x1fa0
hsiz: 0x14
pbl: 0x030a105c
bdba: 0x0040c732
76543210
flag=--------
ntab=1
nrow=1
frre=-1
fsbo=0x14
fseo=0x1f99
avsp=0x1f83
tosp=0x1f83
0xe:pti[0] nrow=1 offs=0
0x12:pri[0] offs=0x1f99
block_row_dump:
tab 0, row 0, @0x1f99
tl: 7 fb: --H-FL-- lb: 0x2 cc: 1
col 0: [ 3] c2 05 39<----修改后的数据,即456
end_of_block_dump
buffer tsn: 0 rdba: 0x0040c733 (1/50995)
scn: 0x0000.00000000 seq: 0x01 flg: 0x05 tail: 0x00000001
frmt: 0x02 chkval: 0xc073 type: 0x00=unknown
Dump of memory from 0x030A1014 to 0x030A2FFC
30A1010 00000000 00000000 00000000 [............]
30A1020 00000000 00000000 00000000 00000000 [................]
Repeat 508 times
30A2FF0 00000000 00000000 00000000 [............]
End dump data blocks tsn: 0 file#: 1 minblk 50993 maxblk 50995
7:提交事务
SQL> commit;
Commit complete.
SQL> connect sys/coffee@testdb as sysdba;
Connected.
查看事务提交后的scn,我们将以此作为redo log dump的内容。
SQL> select max(ktuxescnw * power(2, 32) + ktuxescnb) from x$ktuxe;
MAX(KTUXESCNW*POWER(2,32)+KTUXESCNB)
------------------------------------
41684393
更多精彩
赞助商链接