[20231109]bbed p命令dba参数问题.txt
--//使用bbed的p命令遇到的问题做一个记录。
--//一般输入dba支持几个格式,直接输入数值10,16进制都可以,还有就是file#,block#方式。
--//例子:
BBED> map dba 16777950
File: /mnt/ramdisk/book/users01.dbf (4)
Block: 734 Dba:0x010002de
------------------------------------------------------------
KTB Data Block (Index Leaf)
struct kcbh, 20 bytes @0
struct ktbbh, 4080 bytes @20
struct kdxle, 32 bytes @4108
sb2 kd_off[7] @4140
ub1 freespace[383] @4154
ub1 rowdata[3591] @4537
ub4 tailchk @8188
--//输入map dba 7,734 (逗号之间有空格也可以),map dba 0x010002de都可以,但是有点奇怪的是P命令不支持直接输入数值方式。
BBED> p dba 16777950 kd_off
BBED-00207: invalid offset specifier (dba)
$ oerr bbed 00207
0207, 1, "invalid offset specifier (%s)"
// *Cause: The specified symbol is not in the block or the indirect offset
// value is out of range.
BBED> p dba 4,734 kd_off
sb2 kd_off[0] @4140 4024
sb2 kd_off[1] @4142 24403
sb2 kd_off[2] @4144 433
sb2 kd_off[3] @4146 946
sb2 kd_off[4] @4148 1459
sb2 kd_off[5] @4150 1972
sb2 kd_off[6] @4152 2485
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2994800/ ,如需转载,请注明出处,否则将追究法律责任。