閃回恢復區滿,庫不能打開

今天測試庫啓不來,僅記錄一下

SQL> alter database open;
alter database open
*
第 1 行出現錯誤:
ORA-16014: 日誌 1 的序列號 116 未歸檔, 沒有可用的目的地
ORA-00312: 聯機日誌 1 線程 1:
'G:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G\REDO01.LOG'

查看告警日誌文件:

Fri Feb 17 09:57:53 2012
ARC1: Archiving not possible: No primary destinations
ARC1: Failed to archive thread 1 sequence 116 (4)
ARCH: Archival stopped, error occurred. Will continue retrying
Fri Feb 17 09:57:53 2012
Errors in file g:\oracle\product\10.2.0\db_1\admin\ora10g\bdump\ora10g_arc1_3428.trc:
ORA-16014: log 1 sequence# 116 not archived, no available destinations
ORA-00312: online log 1 thread 1: 'G:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G\REDO01.LOG'

Fri Feb 17 09:58:40 2012
ARC1: Archiving not possible: No primary destinations
ARC1: Failed to archive thread 1 sequence 116 (4)
Fri Feb 17 09:58:54 2012
ARC0: Archiving not possible: No primary destinations
ARC0: Failed to archive thread 1 sequence 116 (4)
Fri Feb 17 09:59:54 2012
ARC1: Archiving not possible: No primary destinations
ARC1: Failed to archive thread 1 sequence 116 (4)
Fri Feb 17 10:00:54 2012
ARC0: Archiving not possible: No primary destinations
ARC0: Failed to archive thread 1 sequence 116 (4)
Fri Feb 17 10:01:54 2012
ARC1: Archiving not possible: No primary destinations
ARC1: Failed to archive thread 1 sequence 116 (4)
Fri Feb 17 10:02:55 2012
Errors in file g:\oracle\product\10.2.0\db_1\admin\ora10g\bdump\ora10g_arc0_3432.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 99.98% used, and has 339456 remaining bytes available.

Fri Feb 17 10:02:55 2012
************************************************************************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
ARC0: Failed to archive thread 1 sequence 116 (19809)
ARCH: Archival stopped, error occurred. Will continue retrying
Fri Feb 17 10:02:55 2012
Errors in file g:\oracle\product\10.2.0\db_1\admin\ora10g\bdump\ora10g_arc0_3432.trc:
ORA-16038: log 1 sequence# 116 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: 'G:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA10G\REDO01.LOG'

然後查看對應的trc文件。
一看就知道是閃回恢復區滿了,告警日誌和trc文件中都給出了對應的解決方法。


採用臨時的方法,增大db_recovery_file_dest_size參數值,就能打開數據庫。

SQL> show parameter db_recovery_file_dest_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest_size           big integer 2G
SQL> alter system set db_recovery_file_dest_size=3G scope=both;

系統已更改。

SQL> alter database open;

數據庫已更改。

20120801  -------------------添加---

如果歸檔日誌默認存儲在閃回恢復區中,可以刪除無用的歸檔日誌解決該問題。

RMAN> delete archivelog until time 'sysdate-7';--刪除7天前的無用的歸檔日誌


這個問題很簡單,僅記錄一下,出現問題了,要記得查看相應的告警日誌文件與trc文件。


發佈了168 篇原創文章 · 獲贊 16 · 訪問量 42萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章