索引节点导出的块头信息解释

本文解析了 Oracle 数据库中的 RDBA (Relative Database Block Address) 概念,包括其结构组成、各字段含义及其在索引块中的作用。特别介绍了 ITL(Interested Transaction Slots)、kdxcolev 等关键字段的作用。

rdba - relative database block address of the branch block (file no/block no)
scn – system change number of the block when last changed
seq – number of block changes
type – block type
seg/obj – object id
typ – segment type (index)
Itl – Interested transaction Slots (default 2 for leaf blocks) including slot id,
transaction id, undo block address, flag and locking info and scn of transaction

kdxcolev: index level (0 represents leaf blocks)
kdxcolok: denotes whether structural block transaction is occurring
kdxcoopc: internal operation code
kdxconco: index column count
kdxcosdc: count of index structural changes involving block
kdxconro: number of index entries (does not include kdxbrlmc pointer)
kdxcofbo: offset to beginning of free space within block
kdxcofeo: offset to the end of free space (ie. first portion of block containing index data)
kdxcoavs: available space in block (effectively area between the two fields above)

kdxbrlmc: block address if index value is less than the first (row#0) value
kdxbrsno: last index entry to be modified
kdxbrbksz: size of usable block space

kdxlespl: bytes of uncommitted data at time of block split that have been cleaned out
kdxlende: number of deleted entries
kdxlenxt: pointer to the next leaf block in the index structure via corresponding rba
kdxleprv: pointer to the previous leaf block in the index structure via corresponding rba
kdxlebksz: usable block space (by default less than branch due to the additional ITL entry)

Row number (starting at 0) [starting location in block] dba
Column number followed by column length followed by column value
Repeated for each indexed index
Repeated for each branch entry
Note: column value is abbreviated to smallest value that uniquely
defines path

row number (starting at 0) followed by [starting location within block]
followed by various flags (locking information, deletion flag etc.)
index column number (starting at 0) followed by column length
followed by column value
repeated for each indexed column
repeated for each index entry


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/37724/viewspace-152593/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/37724/viewspace-152593/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值