close

最後,來談 partnum !!...partnum 的定義是:0xDDDLLLLL ,
其中 D 是 dbspace number, L 是 logical page within
tablespace tablespace !!!

tablespace tablespace 是啥?!...用來追蹤 dbspace 的 tablespace !!
裡面每一頁都是 partition page , 如果是平凡的 create table 產生的 table ,
會佔一個partition page,如果 create index in another dbspace ,
這個table就會有兩個partition page,如果再加上 fragment...就會更多!!

先看看TBLSPACE TBLSPACE的分布 !!
首先呢,oncheck -pe > /tmp/x ,然後 cat /tmp/x | grep "TBLSPACE TBLSPACE"
你將得到 :
//chunk 1(rootdbs:number 1)
TBLSPACE TBLSPACE 13 50
TBLSPACE TBLSPACE 232475 50
TBLSPACE TBLSPACE 232981 50

//chunk 2(dbspace1:number 2)
TBLSPACE TBLSPACE 3 50
TBLSPACE TBLSPACE 602 50
TBLSPACE TBLSPACE 24712 50
TBLSPACE TBLSPACE 30866 50
TBLSPACE TBLSPACE 33452 50
TBLSPACE TBLSPACE 40507 50
TBLSPACE TBLSPACE 41234 50
TBLSPACE TBLSPACE 42248 50
TBLSPACE TBLSPACE 160405 50
TBLSPACE TBLSPACE 194759 50
TBLSPACE TBLSPACE 195561 50
TBLSPACE TBLSPACE 543208 50
TBLSPACE TBLSPACE 544043 50
TBLSPACE TBLSPACE 546213 50
TBLSPACE TBLSPACE 550183 50
TBLSPACE TBLSPACE 565425 50
TBLSPACE TBLSPACE 568475 100

//chunk 4(dbspace2:number 3)
TBLSPACE TBLSPACE 3 50

//chunk 5(dbspace3:number 4)
TBLSPACE TBLSPACE 3 50

哪裡記載TBLSPACE TBLSPACE 的分布?! 試試 oncheck -pt 0x100001
Extents
Logical Page Physical Page Size
0 10000d 50
50 138c1b 50
100 138e15 50

還有 oncheck -pt 0x200001 :
Physical Address 200004
Extents
Logical Page Physical Page Size
0 200003 50 begin_of_the_skype_highlighting 0 200003 50 免費  end_of_the_skype_highlighting
50 20025a 50
100 206088 50

清楚了嗎?!....每一個 dbspace 的第一頁 partition page ,所記載的 extents ,
就是 TBLSPACE TBLSPACE 的資訊啦!!!!

最後 : 仔細看 chunk 2 TBLSPACE TBLSPACE 是從 page 3 to page 50 ,
而 oncheck -pt 0x200001 顯示, physical address 是 chunk 2 , page offset 4 ,
為什麼不是 page offset 3 ?!

說過啦...partition page 的 initial extent , 第一頁都是 image page ,
所以囉 , oncheck -pP 2 3 , 跟 oncheck -pP 2 602 看到的是不一樣的 ,
一個是 initial extent 的第一頁, 一個是 next extent 的第一頁 ,
自然就有不同的資料內容!!!

arrow
arrow
    全站熱搜

    hedgezzz 發表在 痞客邦 留言(0) 人氣()