ORA-00265:修改Oracle歸檔模式錯誤分析

taogchan發表於2011-12-16

今天開啟資料庫,想修改Oracle的歸檔模式結果出現以下錯誤:

  1. SQL> alter database archivelog;
  2. alter database archivelog
  3. *
  4. ERROR at line 1:
  5. ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

上網查了下,原來是上次系統的非正常關閉導致。需要重新開啟資料庫,使資料檔案,控制檔案,日誌檔案同步,再修改歸檔模式。

  1. SQL> alter database open;
  2. Database altered.
  3. SQL> shutdown immediate;
  4. Database closed.
  5. Database dismounted.
  6. ORACLE instance shut down.
  7. SQL> startup mount;
  8. ORACLE instance started.
  9. Total System Global Area 301305856 bytes
  10. Fixed Size 1336148 bytes
  11. Variable Size 167775404 bytes
  12. Database Buffers 125829120 bytes
  13. Redo Buffers 6365184 bytes
  14. Database mounted.
  15. SQL> alter database archivelog;
  16. Database altered.
  17. SQL> alter database open;
  18. Database altered.

重新檢視資料庫歸檔模式:

  1. SQL> archive log list
  2. Database log mode Archive Mode
  3. Automatic archival Enabled
  4. Archive destination USE_DB_RECOVERY_FILE_DEST
  5. Oldest online log sequence 6
  6. Next log sequence to archive 8
  7. Current log sequence 8

OK。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22392018/viewspace-713460/,如需轉載,請註明出處,否則將追究法律責任。

相關文章