鱼C论坛

 找回密码
 立即注册
查看: 2464|回复: 0

[Oracle] BBED map dump命令

[复制链接]
发表于 2013-9-8 22:32:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
BBED> info

File#  Name                                                        Size(blks)
-----  ----                                                        ----------
     1  /u01/app/oracle/oradata/omrep/system01.dbf                       89600
     2  /u01/app/oracle/oradata/omrep/sysaux01.dbf                       76800
     3  /u01/app/oracle/oradata/omrep/undotbs01.dbf                      25600
     4  /u01/app/oracle/oradata/omrep/users01.dbf                        22560

BBED> map
File: /u01/app/oracle/oradata/omrep/system01.dbf (1)
Block: 1                                     Dba:0x00400001
------------------------------------------------------------
Data File Header

struct kcvfh, 860 bytes                    @0      

ub4 tailchk                                @8188   

@后面代表的对应的信息在block里的偏移量,即offset。
使用/v 选项,可以查看更详细的信息。
BBED> map /v dba 1,33129
File: /u01/app/oracle/oradata/omrep/system01.dbf (1)
Block: 33129                                 Dba:0x00408169
------------------------------------------------------------
KTB Data Block (Table/Cluster)

struct kcbh, 20 bytes                      @0      
    ub1 type_kcbh                           @0      
    ub1 frmt_kcbh                           @1      
    ub1 spare1_kcbh                         @2      
    ub1 spare2_kcbh                         @3      
    ub4 rdba_kcbh                           @4      
    ub4 bas_kcbh                            @8      
    ub2 wrp_kcbh                            @12      
    ub1 seq_kcbh                            @14      
    ub1 flg_kcbh                            @15      
    ub2 chkval_kcbh                         @16      
    ub2 spare3_kcbh                         @18         
......................................................
ub1 freespace[8062]                        @114     

ub1 rowdata[12]                            @8176   

ub4 tailchk                                @8188   
***********************************************************************
BBED> map block 8888
File: /u01/app/oracle/oradata/omrep/system01.dbf (1)
Block: 8888                                  Dba:0x004022b8
------------------------------------------------------------
Unlimited Data Segment Header

struct kcbh, 20 bytes                      @0      

struct ktech, 72 bytes                     @20      

struct ktemh, 16 bytes                     @92      

struct ktetb[1], 8 bytes                   @108     

struct ktshc, 8 bytes                      @4148   

struct ktsfs_seg[1], 20 bytes              @4156   

struct ktsfs_txn[16], 320 bytes            @4176   

ub4 tailchk                                @8188   

BBED> dump /v dba 1,33129 offset 0 count 128
File: /u01/app/oracle/oradata/omrep/system01.dbf (1)
Block: 33129   Offsets:    0 to  127  Dba:0x00408169
-------------------------------------------------------
06a20000 69814000 0e671300 00000606 l .¢..i.@..g......
15d50000 01000000 9c360000 0c671300 l .Õ.......6...g..
00000000 02000300 00000000 06000100 l ................
67020000 1202c000 4e003a00 02200000 l g.....à.N.:.. ..
0e671300 00000000 00000000 00000000 l .g..............
00000000 00000000 00000000 00010200 l ................
ffff1600 941f781f 781f0000 02009a1f l ......x.x.......
941f0000 00000000 00000000 00000000 l ................

<16 bytes per line>

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-7-3 22:48

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表