恢復REDO Log丟失的Oracle資料庫
假設一個redo group已經丟失,啟動資料庫時,會出現如下的資訊:
已連線到空閒例程。
SQL> startup
ORACLE 例程已經啟動。
Total System Global Area 1553305600 bytes
Fixed Size 2176048 bytes
Variable Size 1023413200 bytes
Database Buffers 520093696 bytes
Redo Buffers 7622656 bytes
資料庫裝載完畢。
ORA-03113: 通訊通道的檔案結尾
程式 ID: 4352
會話 ID: 5 序列號: 3
可以通過如下動作恢復:
C:\Users\chenyj>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期日 9月 8 22:38:07 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
已連線到空閒例程。
SQL> startup mount
ORACLE 例程已經啟動。
Total System Global Area 1553305600 bytes
Fixed Size 2176048 bytes
Variable Size 1023413200 bytes
Database Buffers 520093696 bytes
Redo Buffers 7622656 bytes
資料庫裝載完畢。
SQL> select group#, status, archived from v$log;
GROUP# STATUS ARCHIV
---------- -------------------------------- ------
1 CURRENT NO
3 INACTIVE YES
2 INACTIVE YES
SQL> alter database clear logfile group 1;
alter database clear logfile group 1
*
第 1 行出現錯誤:
ORA-00350: 日誌 1 (例項 orcl 的日誌, 執行緒 1) 需要歸檔
ORA-00312: 聯機日誌 1 執行緒 1: 'C:\ORACLE\ORADATA\ORCL\REDO01.LOG'
SQL> alter database clear unarchived logfile group 1;
資料庫已更改。
SQL> alter database open;
資料庫已更改。
請注意其中的unarchived關鍵字.
If you clear your missing log file group, then this will re-create the missing log files;
alter database clear logfile group 1
*
第 1 行出現錯誤:
ORA-00350: 日誌 1 (例項 orcl 的日誌, 執行緒 1) 需要歸檔
ORA-00312: 聯機日誌 1 執行緒 1: 'C:\ORACLE\ORADATA\ORCL\REDO01.LOG'
這個是因為Redo logfile已經被刪除, 因而不能被歸檔。因為log file沒有被歸檔,因而LGWR也不能覆蓋它,即使它已經不再存在。
因而我們需要使用unarchived關鍵字。這樣丟失的redo log就被重建了,然後我們就可以重新啟動資料庫了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-772365/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Redo丟失恢復方案Oracle
- 記一次oracle資料庫redolog全部丟失的恢復Oracle資料庫
- 【恢復】Redo日誌檔案丟失的恢復
- Oracle-真實環境的丟失current redo log file的故障恢復Oracle
- Oracle資料庫Redo故障的恢復Oracle資料庫
- 【資料庫資料恢復】斷電導致Oracle資料庫資料丟失的資料恢復案例資料庫資料恢復Oracle
- 【資料庫資料恢復】mdb_catalog.wt檔案丟失的MongoDB資料恢復案例資料庫資料恢復MongoDB
- oracle歸檔日誌丟失後的資料庫恢復Oracle資料庫
- Oracle備份與恢復【丟失資料檔案的恢復】Oracle
- 寶塔資料庫恢復 mysql資料庫丟失恢復 mysql資料庫刪除庫恢復 寶塔mysql資料庫恢復資料庫MySql
- 【資料庫資料恢復】Sql Server資料庫檔案丟失的資料恢復過程資料庫資料恢復SQLServer
- REDO檔案丟失或者損壞的恢復
- oracle 線上日誌全部丟失的資料恢復Oracle資料恢復
- 資料檔案丟失的恢復
- redo log 丟失(非歸檔模式,資料庫正常關閉,redo log 被誤刪除!)模式資料庫
- 硬碟資料丟失如何恢復?硬碟
- Sql Server資料庫檔案丟失的恢復方法SQLServer資料庫
- 資料庫資料恢復—MongoDB資料庫檔案丟失,啟動報錯的資料恢復案例資料庫資料恢復MongoDB
- Oracle閃回功能恢復偶然丟失的資料(轉)Oracle
- 用Oracle閃回功能恢復偶然丟失的資料Oracle
- 完全恢復之所有資料庫檔案丟失資料庫
- 資料庫各種檔案丟失恢復大全。資料庫
- 恢復archivelog模式下丟失的系統資料檔案Hive模式
- chkdsk 後資料丟失的恢復方法
- 解決Oracle資料庫日誌檔案丟失恢復問題Oracle資料庫
- 伺服器資料丟失了怎麼恢復/分割槽丟失恢復教程伺服器
- 資料檔案丟失如何恢復
- DATA GUARD主庫丟失資料檔案的恢復(2)
- DATA GUARD主庫丟失資料檔案的恢復(3)
- DATA GUARD主庫丟失資料檔案的恢復(1)
- MongoDB資料庫報錯,資料庫檔案丟失資料恢復案例MongoDB資料庫資料恢復
- RMAN恢復案例:丟失全部資料檔案恢復
- Oracle資料庫恢復之resetlogsOracle資料庫
- 丟失一個控制檔案並恢復資料庫資料庫
- oracle資料庫正常關閉狀態下丟失undo檔案的恢復Oracle資料庫
- 伺服器資料恢復-誤操作導致mysql資料庫資料丟失的資料恢復案例伺服器資料恢復MySql資料庫
- Oracle Password檔案丟失的恢復Oracle
- Oracle資料恢復:強制Resetlogs的可能資料損失Oracle資料恢復