加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

[ORACLE 恢复]重现ORA-600 4000异常---惜分飞

发布时间:2020-12-12 15:47:28 所属栏目:百科 来源:网络整理
导读:联系:手机(+86 13429648788)QQ(107644445) 标题:重现ORA-600 4000异常 作者:惜分飞?版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.] 对于数据库恢复感兴趣的人,一定对于ORA-600[4000]这个著名的错误记忆犹新,这里通过试验重
[oracle@xifenfei ~]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 4 06:32:36 2011Copyright (c) 1982,2005,Oracle. All rights reserved.Connected to an idle instance.SQL> startupORACLE instance started.Total System Global Area 318767104 bytesFixed Size 1219160 bytesVariable 92276136 bytesDatabase Buffers 218103808 bytesRedo Buffers 7168000 bytes mounted. opened.SQL> select OBJ#,dbms_rowid.rowid_relative_fno(rowid) rel_fno,2 dbms_rowid.rowid_block_number(rowid) block_num from obj$ 3 where name='CON$';OBJ# REL_FNO BLOCK_NUM---------- ---------- ----------28 1 122SQL> shutdown immediate closed. dismounted.ORACLE instance shut down.

bbed修改数据块
根据催华的研究,当OBJ$中部分数据块中的csc和itl的scn都大于header scn的时候,数据库启动就会报ORA-600[4000]

[oracle@xifenfei ~]$ bbed listfile=list mode=edit password=blockeditBBED: Release 2.0.0.0.0 - Limited Production on Fri Nov 4 06:47:09 2011/or its affiliates. All rights reserved.************* !!! For Oracle Internal Use only !!! ***************BBED> infoFile# Name Size(blks)----- ---- ----------1 /u01/oracle/oradata/XFF/system01.dbf 02 /u01/oracle/oradata/XFF/undotbs01.dbf 03 /u01/oracle/oradata/XFF/sysaux01.dbf 04 /u01/oracle/oradata/XFF/users01.dbf 05 /u01/oracle/oradata/XFF/datfttuser.dbf 0BBED> set block 1 BLOCK# 1set file 1 block 1FILE# 1# 1BBED> p kcvfhckp.kcvcpscnstruct kcvcpscn,8 bytes @484 ub4 kscnbas @484 0x00210f97ub2 kscnwrp @488 0x0000 block 122# 122BBED> p ktbbhstruct ktbbh,48 bytes @20 ub1 ktbbhtyp @20 0x01 (KDDBTDATA)union ktbbhsid,4 bytes @24 ub4 ktbbhsg1 @24 0x00000012ub4 ktbbhod1 @24 0x00000012struct ktbbhcsc,8 bytes @28 <==csc(SCN of the last block cleanout)ub4 kscnbas @28 0x0020770dub2 kscnwrp @32 0x0000sb2 ktbbhict @36 1ub1 ktbbhflg @38 0x02 (NONE)ub1 ktbbhfsl @39 0x00ub4 ktbbhfnx @40 0x00000000struct ktbbhitl[0],24 bytes @44 struct ktbitxid,8 bytes @44 ub2 kxidusn @44 0x0005 <==回滚段序号ub2 kxidslt @46 0x0029ub4 kxidsqn @48 0x0000029astruct ktbituba,8 bytes @52 ub4 kubadba @52 0x00802381ub2 kubaseq @56 0x01f9ub1 kubarec @58 0x03ub2 ktbitflg @60 0x2001 (KTBFUPB)union _ktbitun,2 bytes @62 sb2 _ktbitfsc @62 0ub2 _ktbitwrp @62 0x0000ub4 ktbitbas @64 0x0020770e <==itl commit scn count 16COUNT 16BBED> m /x 0d772010 offset 28Warning: contents of previous BIFILE will be lost. Proceed? (Y/N) yFile: .dbf (1)Block: 122 Offsets: 28 to 60 Dba:0x0040007a------------------------------------------------------------------------0d772010 00000000 01000200 00000000 <32 bytes per line> 0e772010 offset 64.dbf (1)Block: 122 Offsets: 64 to 96 Dba:0x0040007a------------------------------------------------------------------------0e772010 00016c00 ffffea00 53046903 <32 bytes per line>BBED> p ktbbhub1 ktbbhtyp @20 0x01 (KDDBTDATA)ub4 ktbbhsg1 @24 0x00000012ub4 ktbbhod1 @24 0x00000012ub4 kscnbas @28 0x1020770dub2 kscnwrp @32 0x0000sb2 ktbbhict @36 1ub1 ktbbhflg @38 0x02 (NONE)ub1 ktbbhfsl @39 0x00ub4 ktbbhfnx @40 0x00000000ub2 kxidusn @44 0x0005ub2 kxidslt @46 0x0029ub4 kxidsqn @48 0x0000029aub4 kubadba @52 0x00802381ub2 kubaseq @56 0x01f9ub1 kubarec @58 0x03ub2 ktbitflg @60 0x2001 (KTBFUPB)sb2 _ktbitfsc @62 0ub2 _ktbitwrp @62 0x0000ub4 ktbitbas @64 0x1020770esum applyCheck value for File 1,Block 122:current = 0xc902,required = 0xc902

启动数据库

SQL> startupORACLE instance started. Area 318767104 bytes 1219160 bytes 92276136 bytes Buffers 218103808 bytesRedo Buffers 7168000 bytes mounted.ORA-01092: ORACLE instance terminated. Disconnection forced

查看日志

Fri Nov 4 06:50:38 2011Database mounted in Exclusive ModeCompleted: ALTER DATABASE MOUNTFri Nov 4 06:50:38 2011ALTER DATABASE OPENFri Nov 4 06:50:38 2011LGWR: STARTING ARCH PROCESSESARC0 started with pid=16,OS id=7048Fri Nov 4 06:50:38 2011ARC0: Archival startedARC1: Archival startedLGWR: STARTING ARCH PROCESSES COMPLETEARC1 started with pid=17,monospace!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; width:auto!important; direction:ltr!important; display:inline!important">=7050ARC1: STARTING ARCH PROCESSESFri Nov 4 06:50:38 2011ARC0: Becoming the 'no FAL' ARCH'no SRL' ARCHFri Nov 4 06:50:38 2011Thread 1 opened at log sequence 38Current log# 3 seq# 38 mem# 0: /u01/oracle/oradata/XFF/redo03.logSuccessful open of redo thread 1Fri Nov 4 06:50:38 2011MTTR advisory is disabled because FAST_START_MTTR_TARGET is not setFri Nov 4 06:50:38 2011SMON: enabling cache recoveryFri Nov 4 06:50:38 2011ARC2: Archival startedARC1: STARTING ARCH PROCESSES COMPLETEARC1: Becoming the heartbeat ARCHARC2 started with pid=18,monospace!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; width:auto!important; direction:ltr!important; display:inline!important">=7052Fri Nov 4 06:50:38 2011Errors in /u01/oracle/admin/XFF/udump/xff_ora_7046.trc:ORA-00600: internal error code,arguments: [4000],[5],[],[]Fri Nov 4 06:50:40 2011.trc:ORA-00704: bootstrap process failureORA-00704: bootstrap process failureFri Nov 4 06:50:40 2011Error 704 happened during db ,shutting down databaseUSER: terminating instance due to error 704Instance terminated by USER,pid = 7046ORA-1092 signalled during: ALTER DATABASE OPEN...

在ORACL 11.2的版本中,同样的方法无法重新该错误,数据库依然能够正常打开,所以如果要测试的朋友请选择11G以下版本进行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

联系:手机(+86 13429648788)QQ(107644445)

标题:重现ORA-600 4000异常

作者:惜分飞?版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]

对于数据库恢复感兴趣的人,一定对于ORA-600[4000]这个著名的错误记忆犹新,这里通过试验重现ORA-600[4000]
查询数据库obj$.con$记录

    推荐文章
      热点阅读