博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

CLEANER

如果你的工作,机器也可以做。那总有一天,你也要变成机器。
   yuechaotian.cublog.cn
关于作者  
name:yuechaotian
employment:coder
age:25
from:NEU
about me:a retardate
email:yuechaotian(at)gmail.com
msn:yuechaotian(at)hotmail.com

我的分类  




数据块(5)— Row Data

我们先回顾一下 Row Data 中的信息:

 

-- Row Data

block_row_dump:

tab 0, row 0, @0x1eff

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 1, @0x1ef6

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 2, @0x1eed

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 3, @0x1ee4

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 4, @0x1edb

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 5, @0x1ed2

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 6, @0x1ec9

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

tab 0, row 7, @0x1ec0

tl: 7 fb: --H-FL-- lb: 0x2  cc: 1

col  0: [ 3]  c2 07 43

end_of_block_dump

End dump data blocks tsn: 11 file#: 11 minblk 226 maxblk 226

 
这里是我们先前查询到的这些数据的实际存储方式:

 

SQL> select * from test3;

 

         B

----------

       666

       666

       666

       666

       666

       666

 

已选择6行。

 

SQL>

 

tab: 所在表的序号。

 

row: 该行在块中的行号

 

@0x1eff: 该行在数据块中的偏移地址,与 Row Directory 中的偏移地址对应。

 

tl: rowsize(number of bytes plus data)

 

fb: 记录的状态

 

lb: lock byteitl entry then has this row locked

 
cc: number of columns in this row piece
 
col 0: 第1列(下标从0开始)。
 
[ 3]: 长度为3。
 
c2 07 43: 存储在数据块中的数字 666。我们可以将它转换一下:

 

SQL> select my_tool.get_inner('[ 3]  c2 07 43', 'n') b from dual;

 

B

---------

666

 

 发表于: 2008-05-15,修改于: 2008-05-15 23:32 已浏览379次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:9.9764

京ICP证041476号