The difference between restore and recover (RPM)

Source: Internet
Author: User

The difference between recover and restore:

Restore just copy the physical file, recover'll consistent the database.

Restore is a restored, file-level restore. is the physical file restore.
Recover is recovery, data-level recovery. Logical recovery, such as application archive logs, redo logs, all synchronized, consistent.

In my own dialect, I use Restore to copy the backup files to the database directory to replace, and then use recover after some processing, the database is back to normal.

1. Restore command: Used to restore a data file that has been backed up.
(1), restore database restores all the data files.
(2), restore tablespace restores a data file for a specific tablespace.
(3), restore datafile restores a specific data file.
(4), restore Controlfile restoring control files.
(5), restore Archivelog restores the archive log file.

2, recover command: When the database needs to apply the archive log file recovery data file, use the Recover command. Using this command the database system automatically applies the archived log files.
(1), recover database recovers all data files.
(2), recover tablespace recover data files for a particular tablespace.
(3), recover datafile recover a specific data file.

Restore is only restored with a backup, recover with archivelog or online log

To illustrate:

Suppose I point A, make a backup, point B database hangs
Restore database;//This operation takes advantage of a backup of point A to return to a point in time
recover database;//This operation uses Archivelog and online log to do recover, from point A, advance to point B

A dump (restore) is the process of restoring a backed-up copy file to the original database when a data file or control file becomes corrupted.
Recovery (recover) refers to the state of applying archive logs and redo log transactions to update a copy file to a data file before it fails.

Restore is also the original damaged file (Rman commonly used)
Recover is restored via redo Log & archive log

Restore is restoring, file-level recovery
Recovery is recovery, data-level recovery

The difference between restore and recover (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.