Professional Documents
Culture Documents
--dump 该记录显示
tab 0, row 40, @0x11fc
tl: 72 fb: --H-FL-- lb: 0x0 cc: 18
col 0: [ 2] c1 02
col 1: [ 4] c3 09 4b 15
col 2: [ 1] 80
col 3: [12] 5f 4e 45 58 54 5f 4f 42 4a 45 43 54
col 4: [ 2] c1 02
col 5: *NULL*
col 6: [ 1] 80
col 7: [ 7] 78 71 08 18 0c 26 24
col 8: [ 7] 78 73 03 0d 15 2e 2b
col 9: [ 7] 78 71 08 18 0c 26 24
col 10: [ 1] 80
col 11: *NULL*
col 12: *NULL*
col 13: [ 1] 80
col 14: *NULL*
col 15: [ 1] 80
col 16: [ 4] c3 07 38 24
col 17: [ 1] 80
tab 0, row 41, @0x9af
tl: 2 fb: --HDFL-- lb: 0x2
这里我们知道 i_obj4 中的 dataobj#最大值为 87420 对应的 16 进制记录为 04 c3 09 4b 15
BBED> x /rnnncnnncc
rowdata[2446] @4696
-------------
flag@4696: 0x2c (KDRHFL, KDRHFF, KDRHFH)
lock@4697: 0x00
cols@4698: 18
col 0[2] @4699: 1
col 1[4] @4702: 87420
col 2[1] @4707: 0
col 3[12] @4709: _NEXT_OBJECT
col 4[2] @4722: 1
col 5[0] @4725: *NULL*
col 6[1] @4726: 0
col 7[7] @4728: xq...&$
col 8[7] @4736: xs....+
col 9[7] @4744: xq...&$
col 10[1] @4752: .
col 11[0] @4754: *NULL*
col 12[0] @4755: *NULL*
col 13[1] @4756: .
col 14[0] @4758: *NULL*
col 15[1] @4759: .
col 16[4] @4761: Ã.8$
col 17[1] @4766: .
BBED> d
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 98085 Offsets: 4702 to 4733 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 1501800c 5f4e4558 545f4f42 4a454354 02c102ff 01800778 7108180c
BBED> d
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 98085 Offsets: 4706 to 4737 Dba:0x00000000
------------------------------------------------------------------------
1501800c 5f4e4558 545f4f42 4a454354 02c102ff 01800778 7108180c 26240778
<32 bytes per line>
BBED> m /x 17
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 98085 Offsets: 4706 to 4737 Dba:0x00000000
------------------------------------------------------------------------
1701800c 5f4e4558 545f4f42 4a454354 02c102ff 01800778 7108180c 26240778
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/xifenfei/system01.dbf
BLOCK = 98085
分析 ORA-8102 错误
SQL> col OBJECT_NAME for a30
SQL> select object_name,object_type from dba_objects where object_id=87404;
OBJECT_NAME OBJECT_TYPE
------------------------------ -------------------
I_OBJ4 INDEX
使用 bbed 修复 ORA-8102
[oracle@localhost ~]$ bbed blocksize=8192 mode=edit filename='/u01/app/oracle/oradata/xife
nfei/system01.dbf'
Password:
BBED> f /x 04c3
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2714 to 3225 Dba:0x00000000
------------------------------------------------------------------------
04c3094a 5f02c115 01800600 417f2500 0f000204 c3094b14 02c11501 80060041
7f25000e 000204c3 094b1202 c1140180 0600417f 25000d00 0004c309 4b150180
<32 bytes per line>
BBED> f
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2733 to 3244 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 1402c115 01800600 417f2500 0e000204 c3094b12 02c11401 80060041
7f25000d 000004c3 094b1501 80018006 00417f25 00280100 04c3094b 10018001
<32 bytes per line>
BBED> f
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2752 to 3263 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 1202c114 01800600 417f2500 0d000004 c3094b15 01800180 0600417f
25002801 0004c309 4b100180 01800600 417f2500 28000004 c3094b08 02c10201
<32 bytes per line>
BBED> f
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2771 to 3282 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 15018001 80060041 7f250028 010004c3 094b1001 80018006 00417f25
00280000 04c3094b 0802c102 01800600 417f2500 24000004 c3094b09 02c10201
BBED> f
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2789 to 3300 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 10018001 80060041 7f250028 000004c3 094b0802 c1020180 0600417f
25002400 0004c309 4b0902c1 02018006 00417f25 00250000 04c3094b 0a02c103
<32 bytes per line>
BBED> d
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2771 to 2802 Dba:0x00000000
------------------------------------------------------------------------
04c3094b 15018001 80060041 7f250028 010004c3 094b1001 80018006 00417f25
<32 bytes per line>
BBED> d
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2775 to 2806 Dba:0x00000000
------------------------------------------------------------------------
15018001 80060041 7f250028 010004c3 094b1001 80018006 00417f25 00280000
<32 bytes per line>
BBED> m /x 17
Warning: contents of previous BIFILE will be lost. Proceed? (Y/N) y
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 2775 to 2806 Dba:0x00000000
------------------------------------------------------------------------
17018001 80060041 7f250028 010004c3 094b1001 80018006 00417f25 00280000
<32 bytes per line>
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/xifenfei/system01.dbf
BLOCK = 97266
BBED> d
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 8188 to 8191 Dba:0x00000000
------------------------------------------------------------------------
0206d82e
BBED> m /x 01
File: /u01/app/oracle/oradata/xifenfei/system01.dbf (0)
Block: 97266 Offsets: 8188 to 8191 Dba:0x00000000
------------------------------------------------------------------------
0106d82e
BBED> sum
Check value for File 0, Block 97266:
current = 0x7955, required = 0x7956
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/xifenfei/system01.dbf
BLOCK = 97266
Table created.