數據庫莫名重啟,導致數據庫奔潰,啟動數據庫時提示如下錯誤
ORA-00600: 內部錯誤代碼, 參數: [kcratr_nab_less_than_odr], [1], [14086], [1429680], [1429932], [], [], [], [], [], [], []
解決辦法如下
1.啟動數據庫到mount狀態
Microsoft Windows [版本 6.1.7601] 版權所有 (c) 2009 Microsoft Corporation。保留所有權利。 C:\Users\Administrator>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on 星期二 10月 30 14:46:44 2018 Copyright (c) 1982, 2010, Oracle. All rights reserved. 連接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> startup mount; ORA-01081: 無法啟動已在運行的 ORACLE - 請首先關閉它 SQL> shutdown immediate; ORA-01109: 數據庫未打開 已經卸載數據庫。 ORACLE 例程已經關閉。 SQL> startup mount; ORACLE 例程已經啟動。 Total System Global Area 6814535680 bytes Fixed Size 2188688 bytes Variable Size 3439331952 bytes Database Buffers 3338665984 bytes Redo Buffers 34349056 bytes 數據庫裝載完畢。
2.用備份控制文件恢復數據庫,給出最新的redolog,如果一個不行,就挨個試過去,如果歸檔開起來了,就歸檔日志去恢復
SQL> recover database using backup controlfile ORA-00279: 更改 15406154975150 (在 10/30/2018 12:25:47 生成) 對於線程 1 是必需的 ORA-00289: 建議: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2018_10_30\O1_MF_1_1408 6_FXHYJRSH_.ARC ORA-00280: 更改 15406154975150 (用於線程 1) 在序列 #14086 中 指定日志: {<RET>=suggested | filename | AUTO | CANCEL} D:\app\Administrator\oradata\orcl\REDO03.LOG 已應用的日志。 完成介質恢復。 SQL>
3.用resetlogs打開數據庫
SQL> alter database open resetlogs; 數據庫已更改。 SQL> startup force; ORACLE 例程已經啟動。 Total System Global Area 6814535680 bytes Fixed Size 2188688 bytes Variable Size 3439331952 bytes Database Buffers 3338665984 bytes Redo Buffers 34349056 bytes 數據庫裝載完畢。 數據庫已經打開。 SQL>
至此數據庫已恢復。