alter database open * ERROR at line 1: OR..."/>
您好,登錄后才能下訂單哦!
此類錯誤可能發(fā)生在服務(wù)器電源突然失敗(使用備份控制文件進行恢復(fù))
報錯類型:
SQL> alter database open * ERROR at line 1: ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr], [1], [23], [81], [189], [], [], [], [], [], [], []
解決方案:
1.查看控制文件位置與當前oracle使用的聯(lián)機重做日志文件
SQL> Show parameter control_files; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ control_files string D:\APP\MAZAR\ORADATA\ORCL\CONT ROL01.CTL, D:\APP\MAZAR\FLASH_ RECOVERY_AREA\ORCL\CONTROL02.C TL SQL> select a.member,a.group#,b.status from v$logfile a ,v$log b where a.group#=b.group# and b.status='CURRENT'; MEMBER -------------------------------------------------------------------------------- GROUP# STATUS ---------- ---------------- D:\APP\MAZAR\ORADATA\ORCL\REDO02.LOG 2 CURRENT
2.關(guān)閉數(shù)據(jù)庫,并備份控制文件
C:\Windows\system32>COPY D:\APP\MAZAR\ORADATA\ORCL\CONTROL01.CTL D:\APP 1 file(s) copied.
3.掛載數(shù)據(jù)庫并使用控制日志與聯(lián)機重做日志進行恢復(fù)
SQL> recover database using backup controlfile until cancel; ORA-00279: change 1460665 generated at 10/08/2012 08:38:00 needed for thread ORA-00289: suggestion : D:\APP\MAZAR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_10_14\O1_MF_1_23_%U_.ARORA-00280: change 1460665 for thread 1 is in sequence #23 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} D:\APP\MAZAR\ORADATA\ORCL\REDO02.LOG Log applied. Media recovery complete.
4.打開數(shù)據(jù)庫,并重置日志文件
SQL> alter database open resetlogs; Database altered.
參考文件:
http://mohamedazar.com/2012/10/14/ora-00600-kcratr_nab_less_than_odr-when-alter-database-open-fails/
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。