QuestionQ59

VerifiedPerforming Recovery

Your multitenant container database, CDB1, is operating in ARCHIVELOG mode and contains two pluggable databases, HR_PDB and ACCOUNTS_PDB. An RMAN backup of the database exists.

You issue a command to open ACCOUNTS_PDB and discover that the USERDATA.DBF data file for the default permanent USERDATA tablespace in ACCOUNTS_PDB is corrupted.

What should you do before running the commands to restore and recover the data file in ACCOUNTS_PDB?

Explanation

A corrupted data file belonging to a non-SYSTEM tablespace in a PDB can be restored and recovered while the database is open, but the affected tablespace must first be taken offline. USERDATA is a permanent non-SYSTEM tablespace, so taking USERDATA offline in ACCOUNTS_PDB is the required preparation; mounting the whole CDB is not required.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!