Backup Recovery   «Prev  Next»

Oracle 26ai Tablespace Recovery - Exercise

Objective: Plan complete media recovery of a permanent application tablespace with RMAN.

Scenario: damaged datafiles

A storage failure has damaged the datafiles of the permanent CUSTOMER tablespace in the House-O-Pets application PDB, PETSPDB. The CDB and PDB remain open. The current control file, SPFILE and online redo logs are intact. Your goal is to recover all committed changes.

Assume ARCHIVELOG mode, usable disk backups known to RMAN, and every required archived and online redo log. The original file locations are writable after storage repair. CUSTOMER is neither SYSTEM nor an active undo or temporary tablespace. Use a configured disk channel and an authorized administrative connection directly to PETSPDB. For encrypted files or backups, the required keystore or decryption credentials must also be available.

This is a written planning exercise; you do not need to damage files or execute recovery commands. Replace example service and account names only in an approved lab. Never submit passwords or invent successful recovery output.

Instructions

  1. Describe how you will verify the target PDB, affected files, backup availability, required redo, storage and access before recovery.
  2. Write the RMAN commands to take CUSTOMER offline, restore it to its original paths, and recover it. Separate the final ONLINE command from the restore/recover block so the administrator can inspect the result first.
  3. Describe the evidence you must inspect before returning the tablespace to service and the application check afterward. Explain why this scenario does not require OPEN RESETLOGS.
  4. Suppose instead that the files were healthy and a user dropped a table. Explain why the same complete-recovery procedure would not reverse that logical error, and name an appropriate alternative to investigate.
  5. Explain what an optional recovery catalog contributes and what it cannot replace.

Self-assessment: 10 points

Compare your response with the model solution. This exercise does not automatically grade free-text answers.

CriterionPoints
Correct PDB, affected permanent tablespace, usable backups and required redo; storage and access checks2
Take CUSTOMER offline before restoring its files1
Restore CUSTOMER and then recover it, in that order2
Inspect successful recovery before bringing CUSTOMER online; verify application access2
Explain why complete media recovery does not undo a dropped table1
Distinguish catalog metadata from backup pieces and explain the control-file alternative2

Submit your recovery plan

Enter all five numbered responses, then select Submit to compare them with the model solution.

Review the tablespace recovery lesson before answering.