ORA-03113:通信通道的文件結尾 解決辦法


登錄Oracle時出現錯誤:“ORA-03113:通信通道的文件結尾

錯誤排查方法

Oracle出現錯誤,查看trace日志尋找問題根源:D:\oracle\diag\rdbms\orcl\orcl\trace

打開trace目錄下的alert_orcl.log

************************************************************************
ARC3: Error 19809 Creating archive log file to 'D:\ORACLE_11G INSTALLER\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2019_05_29\O1_MF_1_122_%U_.ARC'
Errors in file D:\ORACLE\diag\rdbms\orcl\orcl\trace\orcl_arc1_18628.trc:
ORA-19815: 警告: db_recovery_file_dest_size 字節 (共 3221225472 字節) 已使用 100.00%, 尚有 0 字節可用。
************************************************************************
You have following choices to free up space from 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.

從日志中可以看到:“ORA-19815: 警告: db_recovery_file_dest_size 字節 (共 3221225472 字節) 已使用 100.00%, 尚有 0 字節可用。”

這個問題是由於db_recovery_file_dest_size(歸檔日志)的空間不足導致的。

解決辦法

 1,修改歸檔日志空間的大小

SQL> startup mount  -- 裝載數據庫
SQL> conn / as sysdba  --dba身份連接
SQL> select * from v$recovery_file_dest;  --查看歸檔日志
SQL> alter system set db_recovery_file_dest_size=4G;  --設置歸檔日志大小
SQL> alter database open;  --打開數據庫

需要注意的是:Oracle數據庫一共有以下幾個狀態

shutdown immediate;
-- shutdown:關閉狀態,Oracle例程關閉。

startup nomount;
-- nomount(STARTED):Oracle例程啟動,讀取參數文件打開實例(分配內存、啟動進程)。

alter database mount;
-- mount(MOUNTED):讀取控制文件。

alter database open;
-- open(OPEN):打開數據文件和日志文件。

查看當前狀態:select status from v$instance;

 

 2,刪除歸檔日志

使用rman(Recovery Manger)工具

rman target /  --進入rman
RMAN> delete noprompt archivelog until time "sysdate-3"; --刪除3天前的歸檔日志

至此問題解決,數據庫可以正常使用。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM