故障现象:
一、错误日志
Thu Nov 10 17:08:43 2011
Oracle Instance zjport - Archival Error
Thu Nov 10 17:08:43 2011
ORA-16038: log 1 sequence# 101 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:08:43 2011
Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc:
ORA-16038: log 1 sequence# 101 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:09:43 2011
ARCH: Archival stopped, error occurred. Will continue retrying
Thu Nov 10 17:09:43 2011
ORACLE Instance online - Archival Error
Thu Nov 10 17:09:43 2011
ORA-16014: log 1 sequence# 101 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:09:43 2011
Errors in file /home/oracle/admin/online/bdump/online_arc0_30095.trc:
ORA-16014: log 1 sequence# 101 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:14:43 2011
Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
Thu Nov 10 17:14:43 2011
************************************************************************
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.
************************************************************************
二、日志切换失败
SQL> alter system switch logfile;
alter system switch logfile
长时间无响应,
iis7站长之家日志提示
Thu Nov 10 17:14:43 2011
ORACLE Instance online - Archival Error
Thu Nov 10 17:14:43 2011
ORA-16038: log 1 sequence# 101 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:14:43 2011
Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc:
ORA-16038: log 1 sequence# 101 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:15:43 2011
ARCH: Archival stopped, error occurred. Will continue retrying
Thu Nov 10 17:15:43 2011
ORACLE Instance online - Archival Error
Thu Nov 10 17:15:43 2011
ORA-16014: log 1 sequence# 101 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
Thu Nov 10 17:15:43 2011
Errors in file /home/oracle/admin/online/bdump/online_arc0_30095.trc:
ORA-16014: log 1 sequence# 101 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log'
原因分析:
oracle log_archive_dest_1 未指定导致归档到flash_recovery_area路径,这点从后文的rman备份对归档部分的处理日志可以明显看出来,例如其中一个归档路径为“home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_52_79ftss3d_.arc”