|
这里两个块的dump的显示就很清晰了~
1、data file header block的dump
其实这个datafile header block并不是一个文件里的第一个块,这个其实是block# = 1的block~
block#=0还有一个块
这里面把块结构和每个字节的作用都标的很清楚了~
[php]
Block dump
Dump of KCBH (Kernel Cache layer Block Header, version 2)
Dump of KCBH (Kernel Cache layer Block Header, version 2)
(ty=K_BT of= 0 sz= 1) TYPE (block type) = 11(data file header)
(ty=UB1 of= 1 sz= 1) FRMT (format type) = 2
(ty=UB1 of= 2 sz= 1) SPARE1(Unused) = 0
(ty=UB1 of= 3 sz= 1) SPARE2(Unused) = 0
(ty=KDBA of= 4 sz= 4) RDBA (Relative Disk Block Address)= fno=7, bno=1
(ty=UB4 of= 8 sz= 4) BAS (scn BASe) = 0
(ty=UB2 of= 12 sz= 2) WRP (scn WRaP) = 0
(ty=UB1 of= 14 sz= 1) SEQ (SEQuence) = 1
(ty=UB1 of= 15 sz= 1) FLG (FLaG) = 4
(ty=UB2 of= 16 sz= 2) CHKVAL(optional checksum) = 52081
(ty=UB2 of= 18 sz= 2) SPARE3(unused) = 0
Dump of KCCFH (Generic file header for each file type)
Dump of KCCFH (Generic file header for each file type)
(ty=KCKRL of= 20 sz= 4) SWV (Creating software version)= (8.1.0.0.0)
(ty=KCKRL of= 24 sz= 4) CVN (Compatibility version) = (8.0.0.0.0)
(ty=UB4 of= 28 sz= 4) DBI (Database ID) = 2097583149
(ty=TEXT8 of= 32 sz= 8) DBN (Database name) = "DB817"
(ty=UB4 of= 40 sz= 4) CSQ (Control file seq# at this hdr update)= 1690
(ty=UB4 of= 44 sz= 4) FSZ (File size in # blocks) = 1280
(ty=UB4 of= 48 sz= 4) BSZ (file block size) = 8192
(ty=UB2 of= 52 sz= 2) FNO (file #) = 7
(ty=UB2 of= 54 sz= 2) TYP (file type code) = 3
(ty=UB4 of= 56 sz= 4) SPARE(Currently unused spare) = 0
(ty=UB4 of= 60 sz= 4) CKS (backup set CHeckSum) = 0
(ty=IDENT32 of= 64 sz=32) TAG (backup TAG) = ""
[/php]
2、普通数据块的dump
[php]
Block dump
Dump of KCBH (Kernel Cache layer Block Header, version 2)
Dump of KCBH (Kernel Cache layer Block Header, version 2)
(ty=K_BT of= 0 sz= 1) TYPE (block type) = 6(transaction managed
datablock with itl)
(ty=UB1 of= 1 sz= 1) FRMT (format type) = 2
(ty=UB1 of= 2 sz= 1) SPARE1(Unused) = 0
(ty=UB1 of= 3 sz= 1) SPARE2(Unused) = 0
(ty=KDBA of= 4 sz= 4) RDBA (Relative Disk Block Address)= fno=7, bno=113
(ty=UB4 of= 8 sz= 4) BAS (scn BASe) = 358007
(ty=UB2 of= 12 sz= 2) WRP (scn WRaP) = 0
(ty=UB1 of= 14 sz= 1) SEQ (SEQuence) = 1
(ty=UB1 of= 15 sz= 1) FLG (FLaG) = 0
(ty=UB2 of= 16 sz= 2) CHKVAL(optional checksum) = 0
(ty=UB2 of= 18 sz= 2) SPARE3(unused) = 0
Dump of KTBBH (Transaction layer fixed header)
Dump of KTBBH (Transaction layer fixed header)
(ty=KDDBT of= 20 sz= 1) TYP (block type (table or index))= 1(table/cluster)
(ty=CC16 of= 21 sz= 1) PAD1 (CC generated padding) = 0
(ty=CC32 of= 22 sz= 2) PAD2 (CC generated padding) = 0
(ty=UB4 of= 24 sz= 4) SID (Segment ID OBJ# or header dba)= 4236
Dump of KSCN (Kernel System Commit Number)
(ty=UB4 of= 28 sz= 4) BAS (Sys commit num base) = 358007
(ty=UB2 of= 32 sz= 2) WRP (Sys commit num wrap) = 0
(ty=CC32 of= 34 sz= 2) PAD (CC generated padding) = 0
(ty=B2 of= 36 sz= 2) ICT (number of itl entries) = 2
(ty=KTBF of= 38 sz= 1) FLG (flags) = sym_prt_enum(), No de
cription for 3
(ty=UB1 of= 39 sz= 1) FSL (free space lock) = 0
(ty=KDBA of= 40 sz= 4) FNX (next block in free list)= fno=0, bno=0
Dump of KTBIT (Transaction entry)
Dump of KTBIT[0] (Transaction entry)
Dump of KXID (Kernel Xaction ID)
(ty=UB2 of= 44 sz= 2) USN (Undo Segment Number) = 1
(ty=UB2 of= 46 sz= 2) SLT (SLot Number) = 61
(ty=UB4 of= 48 sz= 4) SQN (Wrap Number) = 14
Dump of KUBA (Kernel Undo Block Address)
(ty=KDBA of= 52 sz= 4) DBA (undo address for last change)= fno=2, bno=262
(ty=UB2 of= 56 sz= 2) SEQ (sequence number) = 20
(ty=UB1 of= 58 sz= 1) REC (record number index in block)= 28
(ty=CC16 of= 59 sz= 1) PAD (C-Compiler generated padding)= 0
(ty=KTBFL of= 60 sz= 2) FLG (num of locks in block and FLaG byte)= 32768
(ty=B2 of= 62 sz= 2) FSC (Free Space Credit/sys commit num wrap)= 0
(ty=UB4 of= 64 sz= 4) BAS (sys commit num BASe) = 337748
Dump of KTBIT[1] (Transaction entry)
Dump of KXID (Kernel Xaction ID)
(ty=UB2 of= 68 sz= 2) USN (Undo Segment Number) = 1
(ty=UB2 of= 70 sz= 2) SLT (SLot Number) = 65
(ty=UB4 of= 72 sz= 4) SQN (Wrap Number) = 14
Dump of KUBA (Kernel Undo Block Address)
(ty=KDBA of= 76 sz= 4) DBA (undo address for last change)= fno=2, bno=262
(ty=UB2 of= 80 sz= 2) SEQ (sequence number) = 20
(ty=UB1 of= 82 sz= 1) REC (record number index in block)= 30
(ty=CC16 of= 83 sz= 1) PAD (C-Compiler generated padding)= 0
(ty=KTBFL of= 84 sz= 2) FLG (num of locks in block and FLaG byte)= 32768
(ty=B2 of= 86 sz= 2) FSC (Free Space Credit/sys commit num wrap)= 0
(ty=UB4 of= 88 sz= 4) BAS (sys commit num BASe) = 357878
Dump of KDBH (Data layer header)
Dump of KDBH (Data layer header)
(ty=KDBHF of= 92 sz= 1) FLAG (Flag) = 0
(ty=KTNO of= 93 sz= 1) NTAB (Number of entries in the table directory)= 1
(ty=KDBSNO of= 94 sz= 2) NROW (Number of entries in the row directory)= 7
(ty=KDBFLL of= 96 sz= 2) FRRE (First free row index entry)= 65535
(ty=KDBOFF of= 98 sz= 2) FSBO (Free space beginning offset)= 32
(ty=KDBOFF of=100 sz= 2) FSEO (Free space ending offset)= 8013
(ty=B2 of=102 sz= 2) AVSP (Available space in the block)= 7981
(ty=B2 of=104 sz= 2) TOSP (Total space that will be available)= 7981
Dump of KDTI (Table Index)
Dump of KDTI[0] (Table Index)
(ty=UB2 of=106 sz= 2) FRNO (First row number) = 0
(ty=UB2 of=108 sz= 2) NROW (Number of rows for this table)= 7
Dump of KDRI (Row Index)
(ty=SB2 of=110 sz= 2) ROFF (Row OFFset) = 8084
(ty=SB2 of=112 sz= 2) ROFF (Row OFFset) = 8072
(ty=SB2 of=114 sz= 2) ROFF (Row OFFset) = 8060
(ty=SB2 of=116 sz= 2) ROFF (Row OFFset) = 8049
(ty=SB2 of=118 sz= 2) ROFF (Row OFFset) = 8039
(ty=SB2 of=120 sz= 2) ROFF (Row OFFset) = 8026
(ty=SB2 of=122 sz= 2) ROFF (Row OFFset) = 8013
[/php] |
|