Tablespace and Table 的存储属性设置的实验与理解(二)

2014-11-24 17:27:07 · 作者: · 浏览: 1
TEST1','TEST2','TEST3');



TABLE TABLESP PCT_FREE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS BLOCKS EMPTY_BLOCKS

----- ------- ---------- -------------- ----------- ----------- ----------- ---------- ------------

TEST3 TEST3 10 524288 524288 1 2147483645 26 0


TEST2 TEST2 10 65536 1048576 1 2147483645 1 0


TEST1 TEST1 10 65536 1048576 1 2147483645 5 0




-- 从上面的查询看到,TEST1初始分配了5个DATA BLOCKS,与之前的实验结果吻合,TEST2初始分配了1个DATA BLOCK,也与之前的实验结果吻合。



ZN@PROD>ALTER SESSION SET EVENTS 'IMMEDIATE TRACE NAME BUFFERS LEVEL 1';



Session altered.



ZN@PROD>SELECT * FROM V$DIAG_INFO where name ='Default Trace File';



INST_ID NAME VALUE


---------- ------------------ ------------------------------------------------------------

1 Default Trace File /s01/app/oracle/diag/rdbms/prod/PROD/trace/PROD_ora_3108.trc




SYS@PROD>select obj#,owner#,name from obj$ where name in ('TEST1','TEST2','TEST3');



OBJ# OWNER# NAME


---------- ---------- ------------------


13594 32 TEST1


13595 32 TEST2


13596 32 TEST3



SYS@PROD>select segment_name,header_block,header_file,blocks from dba_segments where segment_name='TEST2';



SEGME HEADER_BLOCK HEADER_FILE BLOCKS


----- ------------ ----------- ----------


TEST2 128 7 8



SYS@PROD>select segment_name,header_block,header_file,blocks from dba_segments where segment_name='TEST1';



SEGME HEADER_BLOCK HEADER_FILE BLOCKS


----- ------------ ----------- ----------


TEST1 130 6 8




--下面重点看一下TEST3 ,看看DUMP出来的BH数量中,类型为DATA BLOCK的是否有26个


SYS@PROD>select segment_name,header_block,header_file,blocks from dba_segments where segment_name='TEST3';



SEGME HEADER_BLOCK HEADER_FILE BLOCKS


----- ------------ ----------- ----------


TEST3 133 8 64



vi trace file


find: obj: 13596-TABLE TEST3:


class=8: 4


class=9: 1


class=4: 1


BH (0x757d91e8) file#: 8 rdba: 0x02000080 (8/128) class: 8 ba: 0x75420000


BH (0x757e23f8) file#: 8 rdba: 0x02000081 (8/129) class: 8 ba: 0x75516000


BH (0x757ebf88) file#: 8 rdba: 0x02000082 (8/130) class: 8 ba: 0x7561c000


BH (0x757f6368) file#: 8 rdba: 0x02000083 (8/131) class: 8 ba: 0x75730000


BH (0x757f6498) file#: 8 rdba: 0x02000084 (8/132) class: 9 ba: 0x75732000


BH (0x757ec0b8) file#: 8 rdba: 0x02000085 (8/133) class: 4 ba: 0x7561e000






class=1: 16


BH (0x757e2198) file#: 8 rdba: 0x02000090 (8/144) class: 1 ba: 0x75512000


BH (0x757ebd28) file#: 8 rdba: 0x02000091 (8/145) class: 1 ba: 0x75618000


BH (0x757f6238) file#: 8 rdba: 0x02000092 (8/146) class: 1 ba: 0x7572e000


BH (0x757d8f88) file#: 8 rdba: 0x02000093 (8/147) class: 1 ba: 0x7541c000


BH (0x757e2068) file#: 8 rdba: 0x02000094 (8/148) class: 1 ba: 0x75510000


BH (0x757ebbf8) file#: 8 rdba: 0x02000095 (8/149) class: 1 ba: 0x75616000


BH (0x757f6108) file#: 8 rdba: 0x02000096 (8/150) class: 1 ba: 0x7572c000


BH (0x757d8e58) file#: 8 rdba: 0x02000097 (8/151) class: 1 ba: 0x7541a000


BH (0x757e1f38) file#: 8 rdba: 0x02000098 (8/152) class: 1 ba: 0x7550e000


BH (0x757ebac8) file#: 8 rdba: 0x02000099 (8/153) class: 1 ba: 0x75614000


BH (0x757f5fd8) file#: 8 rdba: 0x0200009a (8/154) class: 1 ba: 0x7572a000


BH (0x757d8d28) file#: 8 rdba: 0x0200009b (8/155) class: 1 ba: 0x75418000


BH (0x757e1e08) file#: 8 rdba: 0x0200009c (8/156) class: 1 ba: 0x7550c000


BH (0x757eb998) file#: 8 rdba: 0x0200009d (8/157) class: 1 ba: 0x75612000


BH (0x757f5ea8) file#: 8 rdba: 0x0200009e (8/158) class: 1 ba: 0x75728000


BH (0x757d8bf8) file#: 8 rdba: 0x0200009f (8/159) class: 1 ba: 0x75416000


-- TEST3的数据块一共找到22个,其中DATA BLOC