RMAN preview function

Source: Internet
Author: User

During RMAN backup, preview is often used to verify the recoverability of the current database, as well as the backup piece, archivelog, and whether the corresponding file exists during restoration.

-------------------------------------- Split line --------------------------------------

Recommended reading:

RMAN: Configure an archive log deletion policy

Basic Oracle tutorial-copying a database through RMAN

Reference for RMAN backup policy formulation

RMAN backup learning notes

Oracle Database Backup encryption RMAN Encryption

-------------------------------------- Split line --------------------------------------

Oracle 11g

RMAN> backup database;

Starting backup at 24-APR-14

..................................


RMAN> delete noprompt archivelog all;

..................


RMAN> restore database preview;

Starting restore at 24-APR-14
Using channel ORA_DISK_1


List of Backup Sets
==============================


BS Key Type LV Size Device Type Elapsed Time Completion Time
-------------------------------------------------------------
7 Full 6.76g disk 00:04:14 24-APR-14
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20140424T131155
Piece Name:/usr/test/08p6hksr_1_1
List of Datafiles in backup set 7
File LV Type Ckp SCN Ckp Time Name
---------------------------------
1 Full 591225164 24-APR-14/u01/app/oracle/oradata/t/system01.dbf
2 Full 591225164 24-APR-14/u01/app/oracle/oradata/t/sysaux01.dbf
3 Full 591225164 24-APR-14/u01/app/oracle/oradata/t/undotbs01.dbf
4 Full 591225164 24-APR-14/u01/app/oracle/oradata/t/users01.dbf
5 Full 591225164 24-APR-14/u01/app/oracle/oradata/t/users02.dbf

Archived logs generated after SCN 591224897 not found in repository
Media recovery start SCN is 591224897
Recovery must be done beyond SCN 591225164 to clear datafile fuzziness
Finished restore at 24-APR-14

You can see that if you need the backuppiece and archivelog required by the resotre database, but some archivelog files have been deleted manually, so they cannot be completely restored.

Restore validate database can also be used for verification, but more work will be done to read the corresponding file information, perform encryption, decryption, decompression, and so on.

RMAN> restore validate database
2>;

Starting restore at 24-APR-14
Using channel ORA_DISK_1

Channel ORA_DISK_1: starting validation of datafile backup set
Channel ORA_DISK_1: reading from backup piece/usr/test/08p6hksr_1 _

......................................

This article permanently updates the link address:

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.