IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    2025年首个故障恢复—ORA-600 kcbzib_kcrsds_1

    惜分飞发表于 2025-01-04 14:25:21
    love 0

    联系:手机/微信(+86 17813235971) QQ(107644445)QQ咨询惜分飞

    标题:2025年首个故障恢复—ORA-600 kcbzib_kcrsds_1

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

    一个12.2.0.1的库由于某种原因引起的双机切换,导致数据库无法正常mount

    2025-01-04T15:45:44.424193+08:00
    alter database mount
    2025-01-04T15:45:48.491054+08:00
    Network throttle feature is disabled as mount time
    
    2025-01-04T15:45:48.601366+08:00
    LGWR (ospid: 34014): terminating the instance
    2025-01-04T15:45:48.602480+08:00
    System state dump requested by (instance=1, osid=34014 (LGWR)), summary=[abnormal instance termination].
    System State dumped to trace file /u01/app/oracle/diag/rdbms/xifenfei/trace/xifenfei_diag_33978_20250104154548.trc
    2025-01-04T15:45:48.790674+08:00
    Dumping diagnostic data in directory=[cdmp_20250104154548], requested by (instance=1, osid=34014 (LGWR))
    2025-01-04T15:45:49.915068+08:00
    Instance terminated by LGWR, pid = 34014
    

    这个错误相对比较明显,是由于ctl异常导致,通过重建ctl,然后mount库,利用Oracle数据库异常恢复检查脚本(Oracle Database Recovery Check)脚本进行检测发现所有数据文件头的checkpoint 信息被冻结在 2024-11-29 19:00:29 (scn 2112302221),分析alert日志数据库在此后20天中正常提供服务,业务运行都正常,客户反馈在这个冻结checkpoint信息的时间点,使用备份一体机发起过备份,之后就没有再备份了.
    当时急着恢复数据库,没有对文件头进行dump不然应该可以发现类似begin backup的信息,类似这样(测试环境重现):

    DATA FILE #1:
      name #7: /u01/app/oracle/oradata/xifenfei/system01.dbf
    creation size=0 block size=8192 status=0xe head=7 tail=7 dup=1
     tablespace 0, index=1 krfil=1 prev_file=0
     unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
     Checkpoint cnt:625 scn: 0x0105.0106deef 01/04/2025 22:02:50
     Stop scn: 0xffff.ffffffff 12/14/2024 08:15:07
     Creation Checkpointed at scn:  0x0000.00000007 08/24/2013 11:37:33
     thread:0 rba:(0x0.0.0)
     enabled  threads:  00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000
     Offline scn: 0x0000.000e2005 prev_range: 0
     Online Checkpointed at scn:  0x0000.000e2006 03/20/2024 20:53:56
     thread:1 rba:(0x1.2.0)
     enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000
     Hot Backup end marker scn: 0x0000.00000000
     aux_file is NOT DEFINED
     Plugged readony: NO
     Plugin scnscn: 0x0000.00000000
     Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988 00:00:00
     Foreign creation scn/timescn: 0x0000.00000000 01/01/1988 00:00:00
     Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988 00:00:00
     Online move state: 0
     V10 STYLE FILE HEADER:
            Compatibility Vsn = 186647552=0xb200400
            Db ID=1780931490=0x6a26dba2, Db Name='XIFENFEI'
            Activation ID=0=0x0
            Control Seq=32953021=0x1f6d2bd, File size=98560=0x18100
            File Number=1, Blksiz=8192, File Type=3 DATA
    Tablespace #0 - SYSTEM  rel_fn:1
    Creation   at   scn: 0x0000.00000007 08/24/2013 11:37:33
    Backup taken at scn: 0x0105.0106deef 01/04/2025 22:02:50 thread:1    <====注意
     reset logs count:0x45636764 scn: 0x0000.000e2006
     prev reset logs count:0x3121c97a scn: 0x0000.00000001
     recovered at 12/14/2024 08:36:35
     status:0x2001 root dba:0x00400208 chkpt cnt: 625 ctl cnt:624
    begin-hot-backup file size: 98560                        <====注意
    Checkpointed at scn:  0x0105.0106deef 01/04/2025 22:02:50
     thread:1 rba:(0x205.fdd9.10)
     enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000
    Backup Checkpointed at scn:  0x0105.0106df14 01/04/2025 22:03:20   <====注意
     thread:1 rba:(0x209.2.10)
     enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      00000000 00000000 00000000 00000000 00000000 00000000
    External cache id: 0x0 0x0 0x0 0x0
    Absolute fuzzy scn: 0x0000.00000000
    Recovery fuzzy scn: 0x0000.00000000 01/01/1988 00:00:00
    Terminal Recovery Stamp  01/01/1988 00:00:00
    Platform Information:    Creation Platform ID: 13
    Current Platform ID: 13 Last Platform ID: 13
    

    基于上述情况,尝试强制打开库,报ORA-00600: internal error code, arguments: [kcbzib_kcrsds_1]错误
    ora-600 kzbzib_kcrsds_1


    对于这个情况,以前有过大量恢复案例,修改数据库scn即可
    kcbzib_kcrsds_1报错汇总
    12C数据库报ORA-600 kcbzib_kcrsds_1故障处理
    存储故障,强制拉库报ORA-600 kcbzib_kcrsds_1处理
    https://www.xifenfei.com/2023/12/patch-scn-ora-600-kcbzib_kcrsds_1.html
    此类故障处理太多,不一一列举,解决这个错误之后,数据库open成功,然后安排逻辑迁移即可

    • dd操作数据文件
    • 在UltraEdit中定位数据文件内容
    • 记录因磁盘头被重写,抢救redo恢复经历
    • 系统中数据文件第一个数据块和oracle 中第一个数据块关系
    • 校验代码为 6054 坏块故障修复
    • 表空间online出现ORA-00600[kcbz_check_objd_typ]处理过程
    • oradebug poke ORA-32521/ORA-32519故障解决
    • bbed简单替换block测试
    • 使用oradebug修改数据库scn
    • file 1 block 128 corrupted/坏块恢复—system rollback坏块修复
    • ORA-600 krhpfh_03-1210故障处理
    • ORA-01410: invalid ROWID 分析


沪ICP备19023445号-2号
友情链接