您好,登錄后才能下訂單哦!
常常會遇到下面的報錯信息
歡迎大家加入ORACLE超級群:17115662 免費解決各種ORACLE問題,以后BLOG將遷移到http://www.htz.pw
ARCH: Error 19809 Creating archive log file to '/oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_113_%u_.arc' ARC1: Error 19809 Creating archive log file to '/oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_114_%u_.arc' Errors in file /oracle/app/oracle/diag/rdbms/orcl1124/orcl1124/trace/orcl1124_ora_22611.trc: ORA-16038: log 2 sequence# 113 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online log 2 thread 1: '/oracle/app/oracle/oradata/orcl1124/redo02.log' ARCH: Archival stopped, error occurred. Will continue retrying ORACLE Instance orcl1124 - Archival Error ORA-16038: log 3 sequence# 114 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online log 3 thread 1: '/oracle/app/oracle/oradata/orcl1124/redo03.log' System state dump requested by (instance=1, osid=22611), summary=[abnormal instance termination]. System State dumped to trace file /oracle/app/oracle/diag/rdbms/orcl1124/orcl1124/trace/orcl1124_diag_22544_20140605180150.trc Dumping diagnostic data in directory=[cdmp_20140605180150], requested by (instance=1, osid=22611), summary=[abnormal instance termination]. USER (ospid: 22611): terminating the instance due to error 16038 Instance terminated by USER, pid = 22611 |
原因很簡單:歸檔目錄滿了,解決的方法也很多的
1,如果歸檔存放在FRA區,修改一個FRA區的大小就可以了,前提是FRA目錄上還有剩余的空間。
2,使用單獨的歸檔目錄,擴一下文件系統或者將歸檔路徑修改到其它的地方就可以了。
3,下面我們測試另一種方法
1,啟動數據庫報錯
[oracle@www.htz.pw oradata]$sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Jun 5 18:01:30 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
www.htz.pw > startup ORACLE instance started.
Total System Global Area 379965440 bytes Fixed Size 2253464 bytes Variable Size 171969896 bytes Database Buffers 201326592 bytes Redo Buffers 4415488 bytes Database mounted. ORA-03113: end-of-file on communication channel Process ID: 22611 Session ID: 1 Serial number: 5 |
2,alert中報下面的錯誤
ORA-19815: WARNING: db_recovery_file_dest_size of 4385144832 bytes is 100.00% used, and has 0 remaining bytes available. ************************************************************************ 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. ************************************************************************ ARCH: Error 19809 Creating archive log file to '/oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_113_%u_.arc' ARC1: Error 19809 Creating archive log file to '/oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_114_%u_.arc' Errors in file /oracle/app/oracle/diag/rdbms/orcl1124/orcl1124/trace/orcl1124_ora_22611.trc: ORA-16038: log 2 sequence# 113 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online log 2 thread 1: '/oracle/app/oracle/oradata/orcl1124/redo02.log' ARCH: Archival stopped, error occurred. Will continue retrying ORACLE Instance orcl1124 - Archival Error ORA-16038: log 3 sequence# 114 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online log 3 thread 1: '/oracle/app/oracle/oradata/orcl1124/redo03.log' System state dump requested by (instance=1, osid=22611), summary=[abnormal instance termination]. System State dumped to trace file /oracle/app/oracle/diag/rdbms/orcl1124/orcl1124/trace/orcl1124_diag_22544_20140605180150.trc Dumping diagnostic data in directory=[cdmp_20140605180150], requested by (instance=1, osid=22611), summary=[abnormal instance termination]. USER (ospid: 22611): terminating the instance due to error 16038 Instance terminated by USER, pid = 22611 |
3,下面將歸檔庫更改為非歸檔就可以正常啟動了
我做的事情增加了resetlog的方式,在生產環境這里可以使用noresetlogs的方式就可以了,因為我們只是更改一下歸檔模式的。
CREATE CONTROLFILE REUSE DATABASE "ORCL1124" RESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE GROUP 1 '/oracle/app/oracle/oradata/orcl1124/redo01.log' SIZE 50M BLOCKSIZE 512, GROUP 2 '/oracle/app/oracle/oradata/orcl1124/redo02.log' SIZE 50M BLOCKSIZE 512, GROUP 3 '/oracle/app/oracle/oradata/orcl1124/redo03.log' SIZE 50M BLOCKSIZE 512 -- STANDBY LOGFILE DATAFILE '/oracle/app/oracle/oradata/orcl1124/system01.dbf', '/oracle/app/oracle/oradata/orcl1124/sysaux01.dbf', '/oracle/app/oracle/oradata/orcl1124/undotbs01.dbf', '/oracle/app/oracle/oradata/orcl1124/users01.dbf', '/oracle/app/oracle/oradata/orcl1124/htz01.dbf', '/oracle/app/oracle/oradata/orcl1124/undotbs02.dbf' CHARACTER SET ZHS16GBK ;
www.htz.pw > recover database using backup controlfile until cancel; ORA-00279: change 2795841 generated at 06/05/2014 17:52:39 needed for thread 1 ORA-00289: suggestion : /oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_115 _%u_.arc ORA-00280: change 2795841 for thread 1 is in sequence #115
Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /oracle/app/oracle/oradata/orcl1124/redo03.log ORA-00310: archived log contains sequence 114; sequence 115 required ORA-00334: archived log: '/oracle/app/oracle/oradata/orcl1124/redo03.log'
www.htz.pw > recover database using backup controlfile until cancel; ORA-00279: change 2795841 generated at 06/05/2014 17:52:39 needed for thread 1 ORA-00289: suggestion : /oracle/app/oracle/fast_recovery_area/ORCL1124/archivelog/2014_06_05/o1_mf_1_115 _%u_.arc ORA-00280: change 2795841 for thread 1 is in sequence #115
Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /oracle/app/oracle/oradata/orcl1124/redo01.log Log applied. Media recovery complete. 這里一定要手動輸入日志路徑,不然可以會丟失數據,或者遇到其它的報錯的。
www.htz.pw > alter database open resetlogs;
Database altered.
www.htz.pw > archive log list; Database log mode No Archive Mode Automatic archival Disabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 1 Current log sequence 1 |
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。