nerdexam
Oracle

1Z0-052 · Question #240

In your database, you discovered that a tempfile in a locally managed temporary tablespace has been deleted at the operating system level. How would you recover the tablespace?

The correct answer is D. drop and re-create the tablespace. A deleted tempfile cannot be recovered via media recovery because Oracle never backs up tempfiles - their contents are transient. The correct remediation is to drop and recreate the temporary tablespace.

Managing Database Storage Structures

Question

In your database, you discovered that a tempfile in a locally managed temporary tablespace has been deleted at the operating system level. How would you recover the tablespace?

Options

  • Aflash back the database
  • Bperform point-in-time recovery
  • Cperform a full database recovery
  • Ddrop and re-create the tablespace
  • Euse Recovery Manager (RMAN) to recover the database

How the community answered

(41 responses)
  • B
    5% (2)
  • C
    2% (1)
  • D
    85% (35)
  • E
    7% (3)

Why each option

A deleted tempfile cannot be recovered via media recovery because Oracle never backs up tempfiles - their contents are transient. The correct remediation is to drop and recreate the temporary tablespace.

Aflash back the database

Flashback Database rewinds all datafiles to a prior SCN to recover permanent user data; it has no mechanism to restore a missing tempfile and would cause unnecessary data loss.

Bperform point-in-time recovery

Point-in-time recovery applies to permanent datafiles that contain redo-logged changes; tempfiles are not redo-logged, so there is no recovery stream to apply.

Cperform a full database recovery

Full database recovery restores and recovers permanent datafiles from backup; since tempfiles are excluded from all RMAN backups, this approach cannot restore the missing file.

Ddrop and re-create the tablespaceCorrect

Temporary tablespace files store only transient data such as sort segments and hash-join work areas, which are discarded at session end and never written to redo logs. Because no permanent data is lost and RMAN does not back up tempfiles, the recovery procedure is simply to drop the temporary tablespace and recreate it (along with its tempfile), after which Oracle resumes normal operation.

Euse Recovery Manager (RMAN) to recover the database

RMAN explicitly skips tempfiles during backup operations because their contents are ephemeral, so RMAN has nothing to restore for a missing tempfile.

Concept tested: Recovery procedure for deleted temporary tablespace tempfile

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-temporary-tablespaces.html

Topics

#tempfile#temporary tablespace#tablespace recovery#drop and recreate

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice