|
SQL> create table test_droptable (a char(10),b number);
Table created.
SQL> insert into test_droptable values('1',1);
1 row created.
SQL> insert into test_droptable values('2',2);
1 row created.
SQL> commit ;
Commit complete.
SQL> select dbms_rowid.rowid_block_number(rowid),b from test_droptable;
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) B
------------------------------------ ----------
432 1
432 2
SQL> select HEADER_FILE,HEADER_BLOCK from dba_segments ds where ds.segment_name='TEST_DROPTABLE' ;
HEADER_FILE HEADER_BLOCK
----------- ------------
11 427
SQL> alter system dump datafile 11 block 432;
System altered.
SQL> alter table test_droptable drop column b;
Table altered.
SQL> alter system dump datafile 11 block 432;
System altered.
ÎÒÃǶԱÈǰºóµÄtrace file :
ǰ:
** 2006-07-14 22:16:48.000
Start dump data blocks tsn: 12 file#: 11 minblk 432 maxblk 432
buffer tsn: 12 rdba: 0x02c001b0 (11/432)
scn: 0x0000.0124a9c4 seq: 0x01 flg: 0x02 tail: 0xa9c40601
frmt: 0x02 chkval: 0x0000 type: 0x06=trans data
Block header dump: 0x02c001b0
Object id on Block? Y
seg/obj: 0x76ef csc: 0x00.124a9c0 itc: 2 flg: E typ: 1 - DATA
brn: 0 bdba: 0x2c001a9 ver: 0x01
inc: 0 exflg: 0
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0009.023.00003ea4 0x0080008e.080f.23 --U- 2 fsc 0x0000.0124a9c4
0x02 0x0000.000.00000000 0x00000000.0000.00 ---- 0 fsc 0x0000.00000000
data_block_dump,data header at 0xb0f1064
===============
tsiz: 0x1f98
hsiz: 0x16
pbl: 0x0b0f1064
bdba: 0x02c001b0
76543210
flag=--------
ntab=1
nrow=2
frre=-1
fsbo=0x16
fseo=0x1f76
avsp=0x1f60
tosp=0x1f60
0xe ti[0] nrow=2 offs=0
0x12 ri[0] offs=0x1f87
0x14 ri[1] offs=0x1f76
block_row_dump:
tab 0, row 0, @0x1f87
tl: 17 fb: --H-FL-- lb: 0x1 cc: 2
col 0: [10] 31 20 20 20 20 20 20 20 20 20
col 1: [ 2] c1 02
tab 0, row 1, @0x1f76
tl: 17 fb: --H-FL-- lb: 0x1 cc: 2
col 0: [10] 32 20 20 20 20 20 20 20 20 20
col 1: [ 2] c1 03
end_of_block_dump
End dump data blocks tsn: 12 file#: 11 minblk 432 maxblk 432
ºó:
*** 2006-07-14 22:17:57.000
Start dump data blocks tsn: 12 file#: 11 minblk 432 maxblk 432
buffer tsn: 12 rdba: 0x02c001b0 (11/432)
scn: 0x0000.0124b0d1 seq: 0x01 flg: 0x02 tail: 0xb0d10601
frmt: 0x02 chkval: 0x0000 type: 0x06=trans data
Block header dump: 0x02c001b0
Object id on Block? Y
seg/obj: 0x76ef csc: 0x00.124b0ce itc: 2 flg: E typ: 1 - DATA
brn: 0 bdba: 0x2c001a9 ver: 0x01
inc: 0 exflg: 0
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x0009.023.00003ea4 0x0080008e.080f.23 C--- 0 scn 0x0000.0124a9c4
0x02 0x0009.002.00003ea6 0x0080008f.080f.3c --U- 2 fsc 0x0006.0124b0d1
data_block_dump,data header at 0xb0f1064
===============
tsiz: 0x1f98
hsiz: 0x16
pbl: 0x0b0f1064
bdba: 0x02c001b0
76543210
flag=--------
ntab=1
nrow=2
frre=-1
fsbo=0x16
fseo=0x1f76
avsp=0x1f60
tosp=0x1f66
0xe ti[0] nrow=2 offs=0
0x12 ri[0] offs=0x1f87
0x14 ri[1] offs=0x1f76
block_row_dump:
tab 0, row 0, @0x1f87
tl: 14 fb: --H-FL-- lb: 0x2 cc: 1
col 0: [10] 31 20 20 20 20 20 20 20 20 20
tab 0, row 1, @0x1f76
tl: 14 fb: --H-FL-- lb: 0x2 cc: 1
col 0: [10] 32 20 20 20 20 20 20 20 20 20
end_of_block_dump
End dump data blocks tsn: 12 file#: 11 minblk 432 maxblk 432
ÎÒÃÇÊÇ·ñ¿ÉÒԶ϶¨:drop ºódump ³öµÄtrace file ÒѾ²»´æÔÚcol 1 ,ÄÇôҲ¾Í¿ÉÒԶ϶¨¿é·¢ÉúÁ˸ıä,Ò²¾ÍÊÇÒª²úÉúundo record ,ÓÃÀ´½øÐÐrollback ÒÔ¼°consistent reads£¡ |
|