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.
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)- B5% (2)
- C2% (1)
- D85% (35)
- E7% (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.
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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.