首页 > 应用开发 > IT综合 > Block cleanout块清除
delayed block cleanout的例子:SQL> select * from ttID NAME---------- --------------------1 xxxxxxx2 xxxxxxx3 xxxxxxxSQL> update tt set name='111111111' where id=1;1 row updated.SQL> update tt set name='222222222222' where id=2;1 row updated.SQL> update tt set name='3333333333' where id=3;1 row updated.SQL> alter session set events 'immediate trace name flush_cache';Session altered.SQL> commit;Commit complete.SQL> alter system dump datafile 4 block 92;System altered.查看dump出来的内容之后,发现block中海油ITL的信息。如下为block dump的信息:---===========================================Itl Xid Uba Flag Lck Scn/Fsc0x01 0x0005.003.00000383 0x00801a95.012b.15 --U- 3 fsc 0x0000.00194a1e0x02 0x0008.015.00000385 0x00800204.0123.03 C--- 0 scn 0x0000.001949e9data_block_dump,data header at 0x8ee5264===============tsiz: 0x1f98hsiz: 0x18pbl: 0x08ee5264bdba: 0x0100005c76543210flag=--------ntab=1nrow=3frre=-1fsbo=0x18fseo=0x1f16avsp=0x1f4ctosp=0x1f4c0xe:pti[0] nrow=3 offs=00x12:pri[0] offs=0x1f3a0x14:pri[1] offs=0x1f270x16:pri[2] offs=0x1f16block_row_dump:tab 0, row 0, @0x1f3atl: 16 fb: --H-FL-- lb: 0x1 cc: 2col 0: [ 2] c1 02col 1: [ 9] 31 31 31 31 31 31 31 31 31tab 0, row 1, @0x1f27tl: 19 fb: --H-FL-- lb: 0x1 cc: 2col 0: [ 2] c1 03col 1: [12] 32 32 32 32 32 32 32 32 32 32 32 32tab 0, row 2, @0x1f16tl: 17 fb: --H-FL-- lb: 0x1 cc: 2col 0: [ 2] c1 04col 1: [10] 33 33 33 33 33 33 33 33 33 33end_of_block_dumpEnd dump data blocks tsn: 4 file#: 4 minblk 92 maxblk 92---=====================================================下次访问更新的时候,就可以清除。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1059682/ ,如需转载,请注明出处,否则将追究法律责任。