Incremental backup of RMAN backup Sets

Source: Internet
Author: User
During traditional Oracle backup, database files are backed up by copying files from the operating system. The backup granularity is data files, which may be large,

During traditional Oracle backup, database files are backed up by copying files from the operating system. The backup granularity is data files, which may be large,

During traditional Oracle backup, database files are backed up by copying operating system files. The backup granularity is data files, and the data files may be large, however, it is empty blocks and there is no Oracle data, but because it is a file copy, you need to back up the entire file.

The backup set value of RAMN backs up used data blocks and supports Incremental backup.

Generally, Incremental Backup has three forms:

Level 0 Incremental backup, including all used data blocks.

Differential backup, including the changed data blocks from the last backup (which can be level 0 Incremental backup, differential backup, and cumulative backup.

Accumulative backup, including the data blocks that have been changed since the last 0-level Incremental backup.

Each zero-level backup creates a new backup cycle.

For example, in the following backup policy, there is a zero-level Incremental Backup every Sunday evening, a one-level cumulative backup on Wednesday evening, and a level-1 differential backup on other nights.

The blocks in the backup set are as follows:



Perform the following steps:

For basic RMAN operations, refer

1. grade 0 backup on Sunday

RMAN> run {
2> allocate channel c1 type disk;
3> backupIncremental level 0Database format 'd: \ oracle \ rmanrep \ butdblv0 % U. dmp ';
4>}

2. Data changes in the database from Sunday to Monday: insert into test values (1, 'Monday lv1D ');

RMAN> run {
2> allocate channel c1 type disk;
3> backupIncremental level 1Database format 'd: \ oracle \ rmanrep \ butdblv2d1 % U. dmp ';
4>}
3. Data changes in the database from Monday to Tuesday: insert into test values (2, 'tuesday lv1D ');
RMAN> run {
2> allocate channel c1 type disk;
3> backupIncremental level 1Database format 'd: \ oracle \ rmanrep \ butdblv2d2 % U. dmp ';
4>}

4. Data changes in the database from Tuesday to Wednesday: insert into test values (3, 'wednesday lv1C ');
RMAN> run {
2> allocate channel c1 type disk;
3> backupIncremental level 1 CumulativeDatabase format 'd: \ oracle \ rmanrep \ butdblv1d3 % U. dmp ';
4>}

Thursday, Friday, and Saturday are similar to step 2 and Step 3 above.

On the next Sunday, perform level 0 backup and a new backup cycle starts.

* In the OCP book, The syntax for level 1 differential backup is backup.Incremental level 1 differentialDatabase, during the operation

RMAN syntax error: RMAN-01008: the bad identifier was: differential

,

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.