這部分跟 partnum , rowid , oncheck 等資訊
相當有關係, 有點複雜...慢慢來解析~~
將先跳過 fragment , fragment 的部分以後專篇討論!!!

首先是 chuck 中每一頁的 physical page 都是用 4 bytes 表示
0xCCCPPPPP ... ccc 是 chunk number,PPPPP 是 page offset of this chunk ,
舉例來說, oncheck -pt stores7:customer , 獲得以下訊息 :

TBLspace Report for stores7:informix.customer
Physical Address 284a13
Partition partnum 2097745(0x200251)
Partition lockid 2097745
Extents
Logical Page Physical Page Size
0 284cf3 8

這裡的 Physical Address 284a13 是 stores7:customer 的 partition page
的 physical page address , 分別是 chunk 0x2 , page offset 0x84a13 ,
so , oncheck -pP 0x2 0x84a13 可以看到 extents information 是在 slot 5 ,
slot 1 有 partnum information , slot 2 有 table customer 的 information !!!

什麼是 logical page ?!... 舉例來說 , oncheck -pt sit2:quote
得到以下資訊:
Physical Address 2855be
Partition partnum 2097827(0x2002A3)
Partition lockid 2097827
Extents
Logical Page Physical Page Size
0 284a8a 89
89 29543c 1520
1609 29b313 2520
看到沒?!...Extents 有 Logical Page 和 Physical Page 的對照表!!!
要注意的是 , oncheck -pP 2 0x84a8a 和 oncheck -pP 2 0x9543c page type 不一樣 ,
這是因為 , table 的 initial extent 的第一頁 是 image page , 不是 data page !!!

你如果要看某一個 chunk 的某一頁是屬於哪個 table , 最簡單的方法就是比對 oncehck -pe !!

 

arrow
arrow
    全站熱搜

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