联系:手机/微信(+86 17813235971) QQ(107644445)
标题:ORA-600 3020错误引起ORA-600 2663
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
数据库recover异常ORA-600 3020
SQL> recover database using backup controlfile until cancel; ORA-00279: change 5693717234723 generated at 01/19/2021 10:44:52 needed for thread 1 ORA-00289: suggestion : +RECOVER/arch/1_294845_938895110.dbf ORA-00280: change 5693717234723 for thread 1 is in sequence #294845 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +BACKUP/xifenfei/onlinelog/group_5.258.973180257 ORA-00279: change 5693717234723 generated at 01/15/2021 11:41:15 needed for thread 2 ORA-00289: suggestion : +RECOVER/arch/2_336576_938895110.dbf ORA-00280: change 5693717234723 for thread 2 is in sequence #336576 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +DATA1/xifenfei/onlinelog/group_8.298.962885887 ORA-00600: internal error code, arguments: [3020], [128], [248606], [537119518], [], [], [], [], [], [], [], [] ORA-10567: Redo is inconsistent with data block (file# 128, block# 248606, file offset is 2036580352 bytes) ORA-10564: tablespace UNDOTBS1 ORA-01110: data file 128: '+DATA1/xifenfei/datafile/undotbs1_02.dbf' ORA-10560: block type 'KTU UNDO BLOCK' ORA-01112: media recovery not started
这个错误比较简单,一般是允许坏块继续恢复
SQL> recover database using backup controlfile allow 1 corruption; ORA-00279: change 5693717234839 generated at 01/19/2021 10:44:52 needed for thread 1 ORA-00289: suggestion : +RECOVER/arch/1_294845_938895110.dbf ORA-00280: change 5693717234839 for thread 1 is in sequence #294845 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +BACKUP/xifenfei/onlinelog/group_5.258.973180257 ORA-00279: change 5693717234839 generated at 01/15/2021 11:41:15 needed for thread 2 ORA-00289: suggestion : +RECOVER/arch/2_336576_938895110.dbf ORA-00280: change 5693717234839 for thread 2 is in sequence #336576 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +DATA1/xifenfei/onlinelog/group_8.298.962885887 ORA-00279: change 5693717637654 generated at 01/19/2021 10:47:25 needed for thread 1 ORA-00289: suggestion : +RECOVER/arch/1_294846_938895110.dbf ORA-00280: change 5693717637654 for thread 1 is in sequence #294846 ORA-00278: log file '+BACKUP/xifenfei/onlinelog/group_5.258.973180257' no longer needed for this recovery Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +RECOVER/xifenfei/onlinelog/group_3.258.973180321 ORA-00279: change 5693717705759 generated at 01/19/2021 10:48:07 needed for thread 1 ORA-00289: suggestion : +RECOVER/arch/1_294847_938895110.dbf ORA-00280: change 5693717705759 for thread 1 is in sequence #294847 ORA-00278: log file '+RECOVER/xifenfei/onlinelog/group_3.258.973180321' no longer needed for this recovery Specify log: {<RET>=suggested | filename | AUTO | CANCEL} +BACKUP/xifenfei/onlinelog/group_7.265.973181365 Log applied. Media recovery complete.
后续重建ctl,尝试recover库,报ORA-10877错误
SQL> startup mount pfile='/tmp/pfile' ORACLE instance started. Total System Global Area 1.0088E+10 bytes Fixed Size 2261928 bytes Variable Size 2181041240 bytes Database Buffers 7851737088 bytes Redo Buffers 53149696 bytes Database mounted. SQL> recover database; ORA-10877: error signaled in parallel recovery slave --对应的alert日志 Wed Jan 20 13:34:04 2021 ALTER DATABASE RECOVER database Media Recovery Start started logmerger process Parallel Media Recovery started with 64 slaves Wed Jan 20 13:34:06 2021 Errors in file /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/trace/xifenfei1_pr00_50593.trc: ORA-00313: open failed for members of log group 7 of thread 1 Media Recovery failed with error 313 Errors in file /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/trace/xifenfei1_pr00_50593.trc: ORA-00283: recovery session canceled due to errors ORA-00313: open failed for members of log group 7 of thread 1 ORA-10877 signalled during: ALTER DATABASE RECOVER database ...
resetlogs失败open数据库失败,ORA-600 2663
Wed Jan 20 13:42:34 2021 Setting recovery target incarnation to 2 Initializing SCN for created control file Database SCN compatibility initialized to 3 Warning - High Database SCN: Current SCN value is 5693718057561, threshold SCN value is 0 If you have not previously reported this warning on this database, please notify Oracle Support so that additional diagnosis can be performed. Wed Jan 20 13:42:35 2021 Assigning activation ID 3801294256 (0xe29325b0) Thread 1 opened at log sequence 1 Current log# 1 seq# 1 mem# 0: +RECOVER/xifenfei/onlinelog/group_1.260.973179783 Current log# 1 seq# 1 mem# 1: +BACKUP/xifenfei/onlinelog/group_1.260.973179787 Successful open of redo thread 1 MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set Wed Jan 20 13:42:35 2021 SMON: enabling cache recovery Errors in file /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/trace/xifenfei1_ora_52800.trc (incident=189187): ORA-00600: internal error code, arguments: [2663], [1325], [2886390384], [1325], [2886403118], [], [], [], [], [], [], [] Incident details in: /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/incident/incdir_189187/xifenfei1_ora_52800_i189187.trc Wed Jan 20 13:42:38 2021 Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. Errors in file /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/trace/xifenfei1_ora_52800.trc: ORA-00600: internal error code, arguments: [2663], [1325], [2886390384], [1325], [2886403118], [], [], [], [], [], [], [] Errors in file /u01/app/oracle/diag/rdbms/xifenfei/xifenfei1/trace/xifenfei1_ora_52800.trc: ORA-00600: internal error code, arguments: [2663], [1325], [2886390384], [1325], [2886403118], [], [], [], [], [], [], [] Error 600 happened during db open, shutting down database USER (ospid: 52800): terminating the instance due to error 600
这个错误比较明显,由于scn的异常导致,通过调整scn,数据库正常open成功,然后使用hcheck检查数据库字典一致(运气不错),没有太大问题,后续建议客户进行逻辑迁移