What happens at the next log switch?

Your database is running in archivelog mode. Examine the parameters for your database
instance: LOG_ARCHIVE_DEST_l =’LOCATION=/disk1/arch MANDATORY’
LOG_ARCHIVE_DEST_2 =’LOCATION=/disk2/arch’ LOG_ARCHIVE_DEST_3
=’LOCATIO=/disk3/arch’ LOG_ARCHIVE_DEST _4 =’LOCATIONs/disk4/arch’
LOG_ARCHIVE _MIN_SUCCEED_DEST = 2 While the database is open, you notice that
the destination set by the log_archive_dest_1 parameter is not available. All redo log groups
have been used. What happens at the next log switch?

Your database is running in archivelog mode. Examine the parameters for your database
instance: LOG_ARCHIVE_DEST_l =’LOCATION=/disk1/arch MANDATORY’
LOG_ARCHIVE_DEST_2 =’LOCATION=/disk2/arch’ LOG_ARCHIVE_DEST_3
=’LOCATIO=/disk3/arch’ LOG_ARCHIVE_DEST _4 =’LOCATIONs/disk4/arch’
LOG_ARCHIVE _MIN_SUCCEED_DEST = 2 While the database is open, you notice that
the destination set by the log_archive_dest_1 parameter is not available. All redo log groups
have been used. What happens at the next log switch?

A.
The database instance hangs and the redo log files are not overwritten.

B.
The archived redo log files are written to the fast recovery area until the mandatory
destination is made available.

C.
The database instance is shutdown immediately.

D.
The destination set by the log_archive_dest parameter is ignored and the archived redo
log files are created in the next two available locations to guarantee archive log success.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


yogui

yogui

D
LOG_ARCHIVE_MIN_SUCCEED_DEST defines the minimum number of destinations that must succeed in order for the online logfile to be available for reuse.

Sorin

Sorin

Correct answer: A.

Explanation:
However, if the archival operation of a mandatory destination fails, online redo log files cannot be overwritten.
The failure of any mandatory destination makes the LOG_ARCHIVE_MIN_SUCCEED_DEST parameter irrelevant.

Maxim

Maxim

Tested it on 12.1.0.2 with FRA on and space available. Issued ‘alter system switch logfile;’ N+1 times (N log groups). Instance hangs on last one with ‘All online logs need archiving’ in alert.log.

A indeed.