联系:手机/微信(+86 17813235971) QQ(107644445)
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
数据库恢复报错ORA-600 3051
SQL> startup mount pfile=D:\OneDrive\ORACLE\recover\script\pfile.txt ORACLE 例程已经启动。 Total System Global Area 2137886720 bytes Fixed Size 2177456 bytes Variable Size 1224738384 bytes Database Buffers 905969664 bytes Redo Buffers 5001216 bytes 数据库装载完毕。 SQL> select group#,sequence#,status from v$log; GROUP# SEQUENCE# STATUS ---------- ---------- ---------------- 1 743269 ACTIVE 3 743268 ACTIVE 2 743270 CURRENT SQL> select member from v$logfile; MEMBER -------------------------------------------------------------------------------- H:\ORADATA\xifenfei\REDO03.LOG H:\ORADATA\xifenfei\REDO02.LOG H:\ORADATA\xifenfei\REDO01.LOG SQL> recover database; ORA-00279: 更改 5683516934 (在 04/22/2017 15:54:28 生成) 对于线程 1 是必需的 ORA-00289: 建议: D:\APP\XIFENFEI\PRODUCT\11.2.0.1\DBHOME_2\RDBMS\ARC0000743268_0910390029.0001 ORA-00280: 更改 5683516934 (用于线程 1) 在序列 #743268 中 指定日志: {<RET>=suggested | filename | AUTO | CANCEL} H:\ORADATA\xifenfei\REDO03.LOG ORA-00279: 更改 5683516934 (在 04/22/2017 15:54:28 生成) 对于线程 1 是必需的 ORA-00289: 建议: D:\APP\XIFENFEI\PRODUCT\11.2.0.1\DBHOME_2\RDBMS\ARC0000743268_0910390029.0001 ORA-00280: 更改 5683516934 (用于线程 1) 在序列 #743268 中 ORA-00278: 此恢复不再需要日志文件 'H:\ORADATA\xifenfei\REDO03.LOG' 指定日志: {<RET>=suggested | filename | AUTO | CANCEL} H:\ORADATA\xifenfei\REDO01.LOG ORA-00310: archived log contains sequence 743269; sequence 743268 required ORA-00334: archived log: 'H:\ORADATA\xifenfei\REDO01.LOG' ORA-10879: error signaled in parallel recovery slave ORA-00600: internal error code, arguments: [3051], [82], [], [], [], [], [], [], [], [], [], [] ORA-10877: error signaled in parallel recovery slave ORA-10877: error signaled in parallel recovery slave ORA-10877: error signaled in parallel recovery slave ORA-10877: error signaled in parallel recovery slave
从查询的信息看库异常的时候由于redo写比较频繁,后续启动上看,需要sequence 743268的日志,但是由于redo部分异常,导致无法进行完整恢复.
屏蔽一致性强制打开库
SQL> shutdown immediate; ORA-01109: ?????? 已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup mount pfile='D:\OneDrive\ORACLE\recover\script\pfile.txt' ORACLE 例程已经启动。 Total System Global Area 2137886720 bytes Fixed Size 2177456 bytes Variable Size 1224738384 bytes Database Buffers 905969664 bytes Redo Buffers 5001216 bytes 数据库装载完毕。 SQL> recover database until cancel; ORA-00279: 更改 5683516935 (在 04/22/2017 15:54:28 生成) 对于线程 1 是必需的 ORA-00289: 建议: D:\APP\XIFENFEI\PRODUCT\11.2.0.1\DBHOME_2\RDBMS\ARC0000743268_0910390029.0001 ORA-00280: 更改 5683516935 (用于线程 1) 在序列 #743268 中 指定日志: {<RET>=suggested | filename | AUTO | CANCEL} cancel ORA-10879: error signaled in parallel recovery slave ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: 'H:\xifenfei\SYSTEM01.DBF' SQL> alter database open resetlogs; alter database open resetlogs * 第 1 行出现错误: ORA-00603: ORACLE server session terminated by fatal error ORA-00600: internal error code, arguments: [2662], [1], [1388549650], [1], [1388577164], [12583040], [], [], [], [], [], [] ORA-00600: internal error code, arguments: [2662], [1], [1388549649], [1], [1388577164], [12583040], [], [], [], [], [], [] ORA-01092: ORACLE instance terminated. Disconnection forced ORA-00600: internal error code, arguments: [2662], [1], [1388549647], [1], [1388577164], [12583040], [], [], [], [], [], [] 进程 ID: 12120 会话 ID: 192 序列号: 3
数据库这里信息明确,由于ORA-600 2662导致数据库启动失败,可以通过推scn的方式解决
启动报ORA-600 4193错误
SMON: enabling cache recovery Successfully onlined Undo Tablespace 2. Verifying file header compatibility for 11g tablespace encryption.. Verifying 11g file header compatibility for tablespace encryption completed Sat Apr 29 00:30:11 2017 SMON: enabling tx recovery ********************************************************************* WARNING: The following temporary tablespaces contain no files. This condition can occur when a backup controlfile has been restored. It may be necessary to add files to these tablespaces. That can be done using the SQL statement: ALTER TABLESPACE <tablespace_name> ADD TEMPFILE Alternatively, if these temporary tablespaces are no longer needed, then they can be dropped. Empty temporary tablespace: TEMP ********************************************************************* Database Characterset is ZHS16GBK Errors in file d:\app\xifenfei\diag\rdbms\xifenfei\xifenfei\trace\xifenfei_smon_9464.trc(incident=9739): ORA-00600: internal error code, arguments: [4193], [], [], [], [], [], [], [], [], [], [], [] Incident details in: d:\app\xifenfei\diag\rdbms\xifenfei\xifenfei\incident\incdir_9739\xifenfei_smon_9464_i9739.trc No Resource Manager plan active Sat Apr 29 00:30:12 2017 Trace dumping is performing id=[cdmp_20170429003012] Doing block recovery for file 3 block 35588 Resuming block recovery (PMON) for file 3 block 35588 Block recovery from logseq 4, block 76 to scn 6442492674 Recovery of Online Redo Log: Thread 1 Group 1 Seq 4 Reading mem 0 Mem# 0: H:\xifenfei\REDO01.LOG Block recovery completed at rba 4.85.16, scn 1.2147525379 Doing block recovery for file 3 block 208 Resuming block recovery (PMON) for file 3 block 208 Block recovery from logseq 4, block 76 to scn 6442492664 Recovery of Online Redo Log: Thread 1 Group 1 Seq 4 Reading mem 0 Mem# 0: H:\xifenfei\REDO01.LOG Block recovery completed at rba 4.80.16, scn 1.2147525369 Errors in file d:\app\xifenfei\diag\rdbms\xifenfei\xifenfei\trace\xifenfei_smon_9464.trc: ORA-01595: error freeing extent (6) of rollback segment (6)) ORA-00600: internal error code, arguments: [4193], [], [], [], [], [], [], [], [], [], [], [] Starting background process QMNC
错误比较明显,直接通过屏蔽undo,open数据库,导出来数据,恢复完工