1 問題描述
1)登錄數據庫出錯
[oracle@odd agent]$ sqlplus alen/alen@prod2
SQL*Plus: Release 12.1.0.2.0 Production on Fri May 22 23:46:30 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ERROR:
ORA-00257: Archiver error. Connect AS SYSDBA only until resolved.
2 問題查看
1)查看ORA錯誤
[oracle@odd agent]$ oerr ora 00257
00257, 00000, "Archiver error. Connect AS SYSDBA only until resolved."
// *Cause: The archiver process received an error while trying to archive
// a redo log. If the problem is not resolved soon, the database
// will stop executing transactions. The most likely cause of this
// message is that the destination device is out of space to store the
// redo log file. Another possible cause is that a destination marked
// as MANDATORY has failed.
// *Action: Check the alert log and trace files for detailed error
// information.
2)查看告警日志
3 解決方案
通過上面的問題查看,發現閃回恢復區的空間被歸檔日志占滿,導致無法對歸檔日志進行歸檔,查看數據字典視圖v$recovery_area_usage發現歸檔日志的占用空間很大,故解決辦法是刪除歸檔日志或者增大快閃恢復區的空間。
1)增大快閃恢復區
ALEN@PROD2> alter system set db_recovery_file_dest_size=10G;
2)刪除歸檔日志(刪除前需確認能否直接刪除)
RMAN> delete archivelog all;