When the primary archive location fills, there is an option of writing to alternate archivelog location. These parameter needs to be set.
log_archive_dest_1='LOCATION=use_db_recovery_file_dest NOREOPEN ALTERNATE=LOG_ARCHIVE_DEST_2' log_archive_dest_2='LOCATION=/other_destination_for_archiving' log_archive_dest_state_1='enable' log_archive_dest_state_2='alternate'
You could use the following to revert back after failover:
alter system set log_archive_dest_state_1 = enable; alter system set log_archive_dest_state_2 = alternate;
But make note of below restriction when setting this.Metalink#369120.1
” The REOPEN attribute takes precedence over the ALTERNATE attribute. The alternate destination is
used only if one of the following is true:
- The NOREOPEN attribute is specified.
- A value of zero (0) is specified for the REOPEN attribute.
- A nonzero REOPEN attribute and a nonzero MAX_FAILURE count have been exceeded. ”
It’s preferable to set NOREOPEN to the default location and enable this option.