nerdexam
Oracle

1Z0-052 · Question #259

Redo log files are not multiplexed in your database. Redo log blocks are corrupted in group 2, and archiving has stopped. All the redo logs are filled and database activity is halted. Database…

The correct answer is E. ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2. When a non-multiplexed redo log group is corrupted and has not been archived, ALTER DATABASE CLEAR UNARCHIVED LOGFILE must be used to reinitialize the group so the database can resume archiving and normal operation.

Performing Backup and Recovery

Question

Redo log files are not multiplexed in your database. Redo log blocks are corrupted in group 2, and archiving has stopped. All the redo logs are filled and database activity is halted. Database writer has written everything to disk. Which command would you execute to proceed further?

Options

  • ARECOVER LOGFILE BLOCK GROUP 2;
  • BALTER DATABASE DROP LOGFILE GROUP 2;
  • CALTER DATABASE CLEAR LOGFILE GROUP 2;
  • DALTER DATABASE RECOVER LOGFILE GROUP 2;
  • EALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2;

How the community answered

(33 responses)
  • A
    15% (5)
  • B
    9% (3)
  • C
    3% (1)
  • D
    3% (1)
  • E
    70% (23)

Why each option

When a non-multiplexed redo log group is corrupted and has not been archived, ALTER DATABASE CLEAR UNARCHIVED LOGFILE must be used to reinitialize the group so the database can resume archiving and normal operation.

ARECOVER LOGFILE BLOCK GROUP 2;

RECOVER LOGFILE BLOCK is not a valid Oracle SQL command; Oracle does not provide a built-in mechanism for block-level repair of online redo log files through this syntax.

BALTER DATABASE DROP LOGFILE GROUP 2;

ALTER DATABASE DROP LOGFILE GROUP 2 will be rejected because Oracle will not drop a log group that has not been successfully archived, and dropping it would not repair the archiving stoppage.

CALTER DATABASE CLEAR LOGFILE GROUP 2;

ALTER DATABASE CLEAR LOGFILE GROUP 2 without the UNARCHIVED keyword will fail because Oracle refuses to clear a redo log group that has not yet been archived, to prevent silent data loss.

DALTER DATABASE RECOVER LOGFILE GROUP 2;

ALTER DATABASE RECOVER LOGFILE is not a valid Oracle SQL command; the RECOVER clause in ALTER DATABASE applies to datafiles and tablespaces, not online redo log files.

EALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2;Correct

ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2 reinitializes the corrupted log group even though it was never archived, explicitly acknowledging that the redo in that group will be lost. This command is the designated solution when archiving has stalled due to log corruption and all online redo log groups are full, allowing the ARCH process to resume. After executing this command a full backup is mandatory because media recovery relying on logs prior to the cleared group is no longer possible.

Concept tested: Clearing unarchived corrupted online redo log groups

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-DATABASE.html

Topics

#redo log corruption#CLEAR UNARCHIVED LOGFILE#archiving failure#log recovery

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice