Hot or Cold Backups
The following scenarios are designed to allow you to gain experience and comfort recreating the database from backups. They are presented in order of increasing complexity.
Recover the database from a full cold backup:
Recover a single datafile.
Recover the entire database.
Put the database in archivelog mode and then perform a hot backup:
Create a table in a tablespace with only one datafile. Then insert one or more rows.
Perform enough ALTER SYSTEM SWITCH LOGFILE commands to cycle through all redo logs.
Shut down the instance (optional).
Delete the datafile containing the created table.
Restore the datafile from the hot backup.
Perform media recovery on the datafile. Then verify that the database requested at least one archive file.
Verify that the table was recreated and has all the information required.
If you have a backup tool that performs incremental hot backups (e.g., some third-party tools and Oracle8 Recovery Manager), do the following:
Take a hot backup.
Create a table; then insert one or more rows. Place the table in a tablespace with only one datafile.
Perform an incremental backup. Then verify that portions of the datafile were backed up.
Perform enough ALTER SYSTEM SWITCH LOGFILE commands to cycle through all redo logs.
Stop the database (optional).
Delete the datafile containing the created table.
Use your restore utility to restore the table. Then verify not only that the original hot backup was restored, but also that the incremental backup was restored.
Perform ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access