the difference between recovery and restoring of the database

Question: What is the difference between recovery and restoring of the database?

Answer: Here is a scenario to understand Restore & Recovery

Sunday 10pm : Database is backed up. and is running fine.

Monday 11am : Went down / crashed due to some reason.

To bring up the database, we have 2 options:

1. Simple Restore : copying files from backup taken Sunday night and open the database. Here, we loose all the changes that are done since Sunday night.

2. Restore and Recovery: Copying files from backup taken Sunday night and applying all the archivelog and redo log files to bring up the database to the point of failure. Here you don’t loose the changes done until Monday 11 am.

Restore: Copying Files from the Backup Overwriting the Existing Database Files

Recovery: Applying the Changes to the Database Till Point of Failure. These Changes Are Recorded In Online Redolog And Archivelog (Which Are The Backups Of Redolog) Files.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s