nerdexam
Oracle

1Z0-052 · Question #156

Your test database is configured to run in NOARCHIVELOG mode. One of the data files in the USERS tablespace is lost due to a media failure. You notice that all the online redo logs have been…

The correct answer is C. Shutdown the instance, restores all the database files from the last consistent backup and restart the. In NOARCHIVELOG mode with all redo logs overwritten, recovery requires restoring the entire database from the last consistent closed backup because incomplete media recovery is not possible.

Performing Backup and Recovery

Question

Your test database is configured to run in NOARCHIVELOG mode. One of the data files in the USERS tablespace is lost due to a media failure. You notice that all the online redo logs have been overwritten since the last backup. What would you do to recover the data file?

Options

  • ATake the USERS tablespace offline and re-create the lost data file
  • BShutdown the instance, restore the data file from the last consistent backup and restart the database
  • CShutdown the instance, restores all the database files from the last consistent backup and restart the
  • DTake the USERS tablespace offline, restore all the data files of the USERS tablespace from the last

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    18% (5)
  • C
    61% (17)
  • D
    14% (4)

Why each option

In NOARCHIVELOG mode with all redo logs overwritten, recovery requires restoring the entire database from the last consistent closed backup because incomplete media recovery is not possible.

ATake the USERS tablespace offline and re-create the lost data file

Re-creating the data file alone cannot recover the lost data in NOARCHIVELOG mode; without archived logs, there is no mechanism to reconstruct the file's contents.

BShutdown the instance, restore the data file from the last consistent backup and restart the database

Restoring only the single lost data file is insufficient because without archived redo logs, it cannot be synchronized with the rest of the database, leaving the database in an inconsistent state.

CShutdown the instance, restores all the database files from the last consistent backup and restart theCorrect

In NOARCHIVELOG mode, Oracle cannot perform incomplete or point-in-time recovery because archived redo logs are not available to apply changes after a backup. With all online redo logs overwritten, there is no way to bring any restored file forward - the only valid recovery path is to shut down the instance, restore every database file from the last consistent (closed) backup, and restart, accepting the loss of all transactions since that backup.

DTake the USERS tablespace offline, restore all the data files of the USERS tablespace from the last

Restoring only the USERS tablespace data files is not valid in NOARCHIVELOG mode with overwritten redo logs; the entire database must be restored from a consistent backup to ensure all files are synchronized.

Concept tested: Database recovery in NOARCHIVELOG mode after media failure

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/user-managed-database-backups.html

Topics

#NOARCHIVELOG recovery#media failure#consistent backup restore#overwritten redo logs

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice