The difference between Oracle database recover and restore

Source: Internet
Author: User

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.
That is, the restore command first extracts the data file from the last backup file to the original directory for replacement, and recover is after the restore, using Redo Log & archive log complement from the backup to the current moment of the difference data.
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

Restore is a restored, file-level restore that restores corrupted files, which Rman often uses.
Recovery is recovery, data-level recovery, recovery by redo log files or archived log files.

"From:http://blog.sina.com.cn/s/blog_63216bda0100zbdr.html"

The difference between Oracle database recover and restore

Related Article

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.