<<<< code 6101 和 code 6111的解决办法
<<<<
<<<< kdbchk: row locked by non-existent transaction
<<<< table=0 slot=0
<<<< lockid=2 ktbbhitc=2
<<<< Block 96081 failed with check code 6101
<<<<
<<<< kdbchk: space available on commit is incorrect
<<<< tosp=8030 fsc=0 stb=2 avsp=8030
<<<< Block 96081 failed with check code 6111
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block Checking: DBA = 4290385, Block Type = KTB-managed data block
data header at 0x1c5145c
kdbchk: row locked by non-existent transaction
table=0 slot=0
lockid=2 ktbbhitc=2
Block 96081 failed with check code 6101
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 1
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> x /rnnnnnc
rowdata[24] @8182
-----------
flag@8182: 0x2c (KDRHFL, KDRHFF, KDRHFH)
lock@8183: 0x02 <<<< lock置为0.
cols@8184: 1
col 0[2] @8185: 1
BBED> modify /x 00 offset 8183
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Offsets: 8183 to 8191 Dba:0x00417751
------------------------------------------------------------------------
000102c1 02020699 5a
<32 bytes per line>
BBED> sum apply
Check value for File 1, Block 96081:
current = 0x09c9, required = 0x09c9
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block Checking: DBA = 4290385, Block Type = KTB-managed data block
data header at 0x1c7345c
kdbchk: the amount of space used is not equal to block size
used=66 fsc=0 avsp=8023 dtl=8096
Block 96081 failed with check code 6110
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 1
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block Checking: DBA = 4290385, Block Type = KTB-managed data block
data header at 0x1f4b05c
kdbchk: the amount of space used is not equal to block size
used=66 fsc=0 avsp=8019 dtl=8096
Block 96081 failed with check code 6110
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 1
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> map /v
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Dba:0x00417751
------------------------------------------------------------
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
struct ktbbh, 72 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[2], 48 bytes @44
struct kdbh, 14 bytes @92
ub1 kdbhflag @92
sb1 kdbhntab @93
sb2 kdbhnrow @94
sb2 kdbhfrre @96
sb2 kdbhfsbo @98
sb2 kdbhfseo @100
sb2 kdbhavsp @102
sb2 kdbhtosp @104
struct kdbt[1], 4 bytes @106
sb2 kdbtoffs @106
sb2 kdbtnrow @108
sb2 kdbr[5] @110
ub1 freespace[8038] @120
ub1 rowdata[30] @8158
ub4 tailchk @8188
BBED> p ktbbh
struct ktbbh, 72 bytes @20
ub1 ktbbhtyp @20 0x01 (KDDBTDATA)
union ktbbhsid, 4 bytes @24
ub4 ktbbhsg1 @24 0x00015db6
ub4 ktbbhod1 @24 0x00015db6
struct ktbbhcsc, 8 bytes @28
ub4 kscnbas @28 0x40045a97
ub2 kscnwrp @32 0x0000
sb2 ktbbhict @36 7938
ub1 ktbbhflg @38 0x03 (KTBFONFL)
ub1 ktbbhfsl @39 0x00
ub4 ktbbhfnx @40 0x00000000
struct ktbbhitl[0], 24 bytes @44
struct ktbitxid, 8 bytes @44
ub2 kxidusn @44 0x0009
ub2 kxidslt @46 0x000f
ub4 kxidsqn @48 0x00000460
struct ktbituba, 8 bytes @52
ub4 kubadba @52 0x00c02b3e
ub2 kubaseq @56 0x00ea
ub1 kubarec @58 0x14
ub2 ktbitflg @60 0x8000 (KTBFCOM)
union _ktbitun, 2 bytes @62
sb2 _ktbitfsc @62 0
ub2 _ktbitwrp @62 0x0000
ub4 ktbitbas @64 0x40045a8b
struct ktbbhitl[1], 24 bytes @68
struct ktbitxid, 8 bytes @68
ub2 kxidusn @68 0x0007
ub2 kxidslt @70 0x0001
ub4 kxidsqn @72 0x00000345
struct ktbituba, 8 bytes @76
ub4 kubadba @76 0x00c00183
ub2 kubaseq @80 0x012d
ub1 kubarec @82 0x02
ub2 ktbitflg @84 0x8000 (KTBFCOM)
union _ktbitun, 2 bytes @86
sb2 _ktbitfsc @86 0
ub2 _ktbitwrp @86 0x0000
ub4 ktbitbas @88 0x40045a99
BBED> p kdbh
struct kdbh, 14 bytes @92
ub1 kdbhflag @92 0x00 (NONE)
sb1 kdbhntab @93 1
sb2 kdbhnrow @94 5
sb2 kdbhfrre @96 -1
sb2 kdbhfsbo @98 28
sb2 kdbhfseo @100 8066
sb2 kdbhavsp @102 8019
sb2 kdbhtosp @104 8028
SYS@ora11g> c/8028/8030
1* select to_char('8030','xxxxx') from dual
SYS@ora11g> /
TO_CHA
------
1f5e
BBED> d /v offset 102
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Offsets: 102 to 111 Dba:0x00417751
-------------------------------------------------------
531f5c1f 00000500 9a1f l S.\.......
<16 bytes per line>
BBED> modify /x 5e offset 102
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Offsets: 102 to 111 Dba:0x00417751
------------------------------------------------------------------------
5e1f5c1f 00000500 9a1f
<32 bytes per line>
BBED> modify /x 5e offset 104
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Offsets: 104 to 113 Dba:0x00417751
------------------------------------------------------------------------
5e1f0000 05009a1f 941f
<32 bytes per line>
BBED> p kdbh
struct kdbh, 14 bytes @92
ub1 kdbhflag @92 0x00 (NONE)
sb1 kdbhntab @93 1
sb2 kdbhnrow @94 5
sb2 kdbhfrre @96 -1
sb2 kdbhfsbo @98 28
sb2 kdbhfseo @100 8066
sb2 kdbhavsp @102 8030
sb2 kdbhtosp @104 8030
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block 96081 is corrupt
Corrupt block relative dba: 0x00417751 (file 0, block 96081)
Bad check value found during verification
Data in bad block:
type: 6 format: 2 rdba: 0x00417751
last change scn: 0x0000.40045a99 seq: 0x2 flg: 0x06
spare1: 0x0 spare2: 0x0 spare3: 0x0
consistency value in tail: 0x5a990602
check value in block header: 0x9f1
computed block checksum: 0xf
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 0
Total Blocks Failing (Data) : 0
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 1
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> sum
Check value for File 1, Block 96081:
current = 0x09f1, required = 0x09fe
BBED> sum apply
Check value for File 1, Block 96081:
current = 0x09fe, required = 0x09fe
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block Checking: DBA = 4290385, Block Type = KTB-managed data block
data header at 0x1f4f05c
kdbchk: space available on commit is incorrect
tosp=8030 fsc=0 stb=2 avsp=8030
Block 96081 failed with check code 6111
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 1
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> map /v
File: /u01/app/oracle/oradata/ora11g/system01.dbf (1)
Block: 96081 Dba:0x00417751
------------------------------------------------------------
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
struct ktbbh, 72 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[2], 48 bytes @44
struct kdbh, 14 bytes @92
ub1 kdbhflag @92
sb1 kdbhntab @93
sb2 kdbhnrow @94
sb2 kdbhfrre @96
sb2 kdbhfsbo @98
sb2 kdbhfseo @100
sb2 kdbhavsp @102
sb2 kdbhtosp @104
struct kdbt[1], 4 bytes @106
sb2 kdbtoffs @106
sb2 kdbtnrow @108
sb2 kdbr[5] @110
ub1 freespace[8038] @120
ub1 rowdata[30] @8158
ub4 tailchk @8188
BBED> p kdbh
struct kdbh, 14 bytes @92
ub1 kdbhflag @92 0x00 (NONE)
sb1 kdbhntab @93 1
sb2 kdbhnrow @94 5
sb2 kdbhfrre @96 -1
sb2 kdbhfsbo @98 28
sb2 kdbhfseo @100 8066
sb2 kdbhavsp @102 8030
sb2 kdbhtosp @104 8030
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
Block Checking: DBA = 4290385, Block Type = KTB-managed data block
data header at 0x1f71c5c
kdbchk: space available on commit is incorrect
tosp=8030 fsc=0 stb=2 avsp=8030
Block 96081 failed with check code 6111
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 1
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED> assign kdbh.kdbhtosp=8032 <<<< --//猜测tosp - fsc - stb = avsp. from http://blog.itpub.net/267265/viewspace-2137121/
sb2 kdbhtosp @104 8032
BBED> sum
Check value for File 1, Block 96081:
current = 0x09fe, required = 0x09c0
BBED> sum apply
Check value for File 1, Block 96081:
current = 0x09c0, required = 0x09c0
BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/ora11g/system01.dbf
BLOCK = 96081
DBVERIFY - Verification complete
Total Blocks Examined : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing (Data) : 0
Total Blocks Processed (Index): 0
Total Blocks Failing (Index): 0
Total Blocks Empty : 0
Total Blocks Marked Corrupt : 0
Total Blocks Influx : 0
Message 531 not found; product=RDBMS; facility=BBED
BBED验证通过。