oracle - redo 損壞或刪除處理方法
OS:
Oracle Linux Server release 5.7
DB:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
資料庫開啟模式,非歸檔模式,非當前日誌損壞
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 234
Current log sequence 236
SQL>
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARCHIVED STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- ----------- ------------ -----------
1 1 234 52428800 512 1 NO INACTIVE 3298602 2013/10/31 3298605 2013/10/31
2 1 236 52428800 512 1 NO CURRENT 3298609 2013/10/31 281474976710
3 1 235 52428800 512 1 NO INACTIVE 3298605 2013/10/31 3298609 2013/10/31
[root@b28-122 yoon]# rm -rf redo01.log
[root@b28-122 yoon]# ls
control01.ctl redo02.log redo03.log sysaux01.dbf system01.dbf temp01.dbf undotbs01.dbf users01.dbf
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
執行dml語句,以及切換日誌都能成功,但是資料庫重啟就報錯
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database Buffers 1275068416 bytes
Redo Buffers 16326656 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 32731
Session ID: 1 Serial number: 5
SQL>
SQL> conn / as sysdba
Connected to an idle instance.
SQL> shutdown abort
ORACLE instance shut down.
SQL>
解決方法,資料庫啟動到mount,將損壞的日誌檔案清除日誌組:
SQL> startup mount
ORACLE instance started.
Total System Global Area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database Buffers 1275068416 bytes
Redo Buffers 16326656 bytes
Database mounted.
SQL>
SQL> alter database clear logfile group 1;
Database altered.
SQL> alter database open;
Database altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database Buffers 1275068416 bytes
Redo Buffers 16326656 bytes
Database mounted.
Database opened.
SQL>
SQL> select member from v$logfile;
MEMBER
--------------------------------------------------------------------------------
/u01/oracle/oradata/yoon/redo03.log
/u01/oracle/oradata/yoon/redo02.log
/u01/oracle/oradata/yoon/redo01.log
非歸檔模式,資料庫關閉,不是正在使用的日誌檔案損壞,解決方法同上。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1061495/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Oracle】Current online Redo 和 Undo 損壞的處理方法Oracle
- Oracle REDO損壞Oracle Redo
- Undo和Current Online Redo損壞的處理方法
- Current online Redo 和 Undo 損壞的處理方法
- Oracle聯機日誌檔案丟失或損壞的處理方法Oracle
- ORACLE聯機日誌檔案丟失或損壞的處理方法(轉)Oracle
- Oracle聯機日誌檔案丟失或損壞的處理方法 (轉)Oracle
- Online Redo Log損壞處理實驗(上)
- Online Redo Log損壞處理實驗(中)
- Online Redo Log損壞處理實驗(下)
- oracle 誤刪除的處理方法Oracle
- oracle redo各種狀態(inactive、active、current)損壞的處理方式Oracle Redo
- 處理塊損壞
- oracle10g rac 表決盤損壞、ocr損壞處理Oracle
- Redo Log File(inactive、active)損壞,處理恢復對策
- redo日誌損壞
- ORACLE 回滾段表空間資料檔案丟失或損壞處理方法(1) (轉)Oracle
- (轉)oracle redolog損壞的處理辦法Oracle Redo
- 段頭損壞的處理
- win10ie核心損壞怎麼修復_win10電腦ie顯示核心丟失或損壞處理方法Win10
- 第7章 處理塊損壞
- oracle 11gr2 針對ocr/vote asm diskgroup損壞的處理方法OracleASM
- ORACLE資料庫壞塊的處理 (處理無物件壞快的方法)Oracle資料庫物件
- Mac應用程式無法開啟提示不明開發者或檔案損壞的處理方法Mac
- 處理 Oracle 塊損壞 (文件 ID 1526911.1)Oracle
- oracle 9i刪除public使用者造成資料字典損壞所有sql語句不能操作的故障處理OracleSQL
- 回滾段表空間損壞處理(ORA-01552)處理方法
- RAC磁碟頭損壞問題處理
- UNDO表空間損壞的處理
- Oracle壞塊處理Oracle
- ORACLE 壞塊處理Oracle
- Oracle 無備份情況下undo檔案損壞處理Oracle
- windows10應用商店損壞怎麼修復_win10應用商店損壞處理方法WindowsWin10
- SQL Server 2005日誌檔案損壞的處理方法SQLServer
- ORACLE-00600 4194 斷電undo損壞處理過程Oracle
- 對oracle中出現的壞塊的處理方法Oracle
- ORACLE壞塊(ORA-01578)處理方法Oracle
- oracle redo 日誌刪除後的恢復Oracle Redo