SQL> select owner,header_file, header_block from dba_segments where segment_name = 'T';
OWNER HEADER_FILE HEADER_BLOCK
------------------------------ ----------- ------------
SCOTT 4 1866
TEST 10 256
SQL> show user
USER 为 "TEST"
BBED> set file 10 block 257
BBED-00312: no LISTFILE specified
SQL> select file#||' '||name||' '||bytes from v$datafile ;
FILE#||''||NAME||''||BYTES
--------------------------------------------------------------------------------
1 /oradata/june/system01.dbf 744488960
2 /oradata/june/sysaux01.dbf 597688320
3 /oradata/june/undotbs01.dbf 2034237440
4 /oradata/june/users01.dbf 3354132480
5 /oradata/june/example01.dbf 104857600
6 /oradata/june/test.dbf 209715200
7 /oradata/june/users02.dbf 4294967296
8 /oradata/june/example02.dbf 2147483648
9 /oradata/june/test1.dbf 1073741824
10 /oradata/june/test2.dbf 1073741824
已选择10行。
[oracle@june2 ~]$ cat file.txt
1 /oradata/june/system01.dbf 744488960
2 /oradata/june/sysaux01.dbf 597688320
3 /oradata/june/undotbs01.dbf 2034237440
4 /oradata/june/users01.dbf 3354132480
5 /oradata/june/example01.dbf 104857600
6 /oradata/june/test.dbf 209715200
7 /oradata/june/users02.dbf 4294967296
8 /oradata/june/example02.dbf 2147483648
9 /oradata/june/test1.dbf 1073741824
10 /oradata/june/test2.dbf 1073741824
[oracle@june2 ~]$ cat bbed.txt
cksize=8192
listfile=/oracle/file.txt
mode=edit
[oracle@june2 ~]$ bbed parfile=/oracle/bbed.txt
Password:
BBED: Release 2.0.0.0.0 - Limited Production on 星期二 1月 21 00:39:21 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> set file 10 block 257
FILE# 10
BLOCK# 257
BBED> map /v
File: /oradata/june/test2.dbf (10)
Block: 257 Dba:0x02800101
------------------------------------------------------------
KTB Data Block (Table/Cluster)
struct kcbh, 20 bytes --块头(kernel cache blcok header) @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
struct ktbbh, 96 bytes @20
ub1 ktbbhtyp @20
union ktbbhsid, 4 bytes @24
struct ktbbhcsc, 8 bytes @28
sb2 ktbbhict @36
ub1 ktbbhflg @38
ub1 ktbbhfsl @39
ub4 ktbbhfnx @40
struct ktbbhitl[3], 72 bytes @44
struct kdbh, 14 bytes @116
ub1 kdbhflag @116
sb1 kdbhntab @117
sb2 kdbhnrow @118
sb2 kdbhfrre @120
sb2 kdbhfsbo @122
sb2 kdbhfseo @124
sb2 kdbhavsp @126
sb2 kdbhtosp @128
struct kdbt[1], 4 bytes @130
sb2 kdbtoffs @130
sb2 kdbtnrow @132
sb2 kdbr[562] @134
ub1 freespace[801] @1258
ub1 rowdata[6129] @2059
ub4 tailchk @8188
ub4 tailchk @8188