記一次Oracle 聯機日誌檔案丟失的處理方案
Oracle 資料日誌檔案丟失的處理方案
案例如下:
1. sqlplus /nolog
conn sys/ticket as sysdba
shutdown immediate;
2.刪除資料庫日誌檔案
3.startup mount;
4.檢視日誌檔案的組編號
select group#,member from v$logfile;
對應的group#編號值為2
檢視日誌組的狀態
select group#,status from v$log;
發現丟失的日誌檔案組為inactive,由於inactive日
志檔案組表示已經完成了檢查點(dirty資料已經被寫入
資料檔案)。資料庫本身不會發生資料丟失,如果在這個
時候相應的undo丟失或者損壞,可以通過clear重建日誌檔案
組恢復。
5.清理日誌組
alter database clear logfile group 2 (2為日誌組編號,上面查詢出來的)
或者如下強制清理
alter database clear unarchived logfile group n
6.重新啟動資料
shutdown immediate;
startup ;
7.切換日誌
alter system switch logfile;
多次之後(日誌檔案的狀態油unused 變為active狀態)
8.檢查日誌檔案的狀態。
檢視日誌檔案的組編號
select group#,member from v$logfile;
檢視日誌組的狀態
select group#,status from v$log;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23071790/viewspace-723318/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle聯機日誌檔案丟失或損壞的處理方法Oracle
- Oracle資料庫聯機日誌檔案丟失處理方法(1)Oracle資料庫
- Oracle資料庫聯機日誌檔案丟失處理方法(3)Oracle資料庫
- Oracle資料庫聯機日誌檔案丟失處理方法(2)Oracle資料庫
- Oracle資料庫聯機日誌檔案丟失處理方法(4)Oracle資料庫
- Oracle資料庫聯機日誌檔案丟失處理方法(5)Oracle資料庫
- ORACLE聯機日誌檔案丟失或損壞的處理方法(轉)Oracle
- Oracle聯機日誌檔案丟失或損壞的處理方法 (轉)Oracle
- Oracle資料庫聯機日誌檔案丟失處理方法(總結)!Oracle資料庫
- Oracle資料庫聯機日誌檔案丟失處理方法(總結)(轉)Oracle資料庫
- [原創] Oracle資料庫聯機日誌檔案丟失處理方法(總結)!Oracle資料庫
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- 丟失聯機重做日誌檔案的恢復
- 聯機日誌檔案丟失解決方法
- 聯機日誌檔案丟失解決方法(二)
- 聯機日誌檔案丟失解決方法(一)
- Oracle聯機日誌檔案丟失解決方法一例Oracle
- 非歸檔下日誌檔案丟失的處理辦法
- Oracle恢復例項之二:Inactive聯機日誌檔案丟失Oracle
- Oracle恢復例項之一:資料檔案、控制檔案、聯機日誌丟失Oracle
- oracle丟失日誌檔案的恢復( 轉)Oracle
- rman恢復:資料檔案丟失,控制檔案丟失,聯機日誌檔案丟失(非當前使用與當前使用)
- Oracle恢復例項之三:active或current聯機日誌檔案丟失Oracle
- 聯機重做日誌丟失的恢復
- oracle 聯機重做日誌檔案Oracle
- 控制檔案丟失處理方法
- 非歸檔丟失日誌檔案的恢復
- 【redo】日誌檔案的丟失解決方法
- oracle 案例-控制檔案丟失故障處理過程Oracle
- oracle丟失inactive日誌檔案的恢復操作過程Oracle
- Oracle重做日誌檔案損壞或丟失後的恢復Oracle
- 非歸檔模式下,丟失日誌檔案的一次恢復過程模式
- redo log檔案丟失處理措施
- rman恢復--丟失聯機重做日誌的恢復
- 【恢復】Redo日誌檔案丟失的恢復
- Oracle OS認證、口令檔案、密碼丟失處理Oracle密碼
- oracle丟失active或current日誌檔案的恢復操作過程Oracle
- 在歸檔模式下丟失日誌檔案的恢復模式