Clean out有
delayed block cleanout
而是把cleanout留到下一次對此塊的訪問(select
下面我們來簡單看一下這兩種情況:
SQL> show parameter db_cache;
NAME TYPE VALUE
db_cache_size big integer
SQL> create table t
表已創建
SQL> insert into t
已創建
SQL> commit;
SQL> select * from (
RN ID file# block#
SQL> update t
SQL> select xidusn
XIDUSN XIDSLOT XIDSQN UBAFIL UBABLK UBAREC
SQL> COMMIT;
提交成功
SQL> alter system dump datafile
系統已更改
Start dump data blocks tsn:
buffer tsn:
scn:
frmt:
Block header dump:
Object id on Block? Y
seg/obj:
brn:
inc:
Itl Xid Uba Flag Lck Scn/Fsc
|
|
data_block_dump
===============
tsiz:
hsiz:
pbl:
bdba:
flag=
ntab=
nrow=
frre=
fsbo=
fseo=
avsp=
tosp=
block_row_dump:
tab
tl:
col
col
col
col
col
end_of_block_dump
End dump data blocks tsn:
SQL> update t
已更新
SQL> select xidusn
XIDUSN XIDSLOT XIDSQN UBAFIL UBABLK UBAREC
SQL> COMMIT;
提交成功
SQL> alter system dump datafile
系統已更改
SQL> alter system dump datafile
系統已更改
Start dump data blocks tsn:
buffer tsn:
scn:
frmt:
Block header dump:
Object id on Block? Y
seg/obj:
brn:
inc:
Itl Xid Uba Flag Lck Scn/Fsc
|
|
data_block_dump
===============
tsiz:
hsiz:
pbl:
bdba:
flag=
ntab=
nrow=
frre=
fsbo=
fseo=
avsp=
tosp=
block_row_dump:
tab
tl:
col
col
col
col
col
end_of_block_dump
End dump data blocks tsn:
Start dump data blocks tsn:
buffer tsn:
scn:
frmt:
Block header dump:
Object id on Block? Y
seg/obj:
brn:
inc:
Itl Xid Uba Flag Lck Scn/Fsc
|
|
data_block_dump
===============
tsiz:
hsiz:
pbl:
bdba:
flag=
ntab=
nrow=
frre=
fsbo=
fseo=
avsp=
tosp=
block_row_dump:
tab
tl:
col
col
col
col
col
end_of_block_dump
End dump data blocks tsn:
SQL> set autot on
SQL> select count(*) from t
COUNT(*)
Execution Plan
Statistics
SQL> /
COUNT(*)
Execution Plan
Statistics
SQL> alter system dump datafile
系統已更改
SQL> alter system dump datafile
系統已更改
Start dump data blocks tsn:
buffer tsn:
scn:
frmt:
Block header dump:
Object id on Block? Y
seg/obj:
brn:
inc:
Itl Xid Uba Flag Lck Scn/Fsc
|
|
data_block_dump
===============
tsiz:
hsiz:
pbl:
bdba:
flag=
ntab=
nrow=
frre=
fsbo=
fseo=
avsp=
tosp=
block_row_dump:
tab
tl:
col
col
col
col
col
end_of_block_dump
End dump data blocks tsn:
Start dump data blocks tsn:
buffer tsn:
scn:
frmt:
Block header dump:
Object id on Block? Y
seg/obj:
brn:
inc:
Itl Xid Uba Flag Lck Scn/Fsc
|
|
data_block_dump
===============
tsiz:
hsiz:
pbl:
bdba:
flag=
ntab=
nrow=
frre=
fsbo=
fseo=
avsp=
tosp=
block_row_dump:
tab
tl:
col
col
col
col
col
end_of_block_dump
End dump data blocks tsn:
From:http://tw.wingwit.com/Article/program/Oracle/201311/17960.html