Oracle Incremental Backup

Source: Internet
Author: User

Common scripts:
----- Level 1. 0 backup
Batch file:
Set Oracle_SID = orcl
Rman target sys/test @ orcl prepare file ='s:/backup/scripts/0/db_fullbakup_orcl.rman 'Log ='s:/backup/LOG/rman_backup _ % DATE :~ 0, 4% % DATE :~ 5, 2% % DATE :~ 8, 2%. Log'

Rman script:
Run {
Configure retention policy to recovery window of 14 days;
Configure controlfile autobackup on;
Configure controlfile autobackup format for device type disk to's: \ backup \ controlfile \ bak _ % F ';
Allocate channel c1 device type disk format's: \ backup \ data \ bak _ % U ';
Allocate channel c2 device type disk format's: \ backup \ data \ bak _ % U ';
Backup incremental level = 0 database skip inaccessible
Plus archivelog filesperset 20
Delete all input;
Release channel c1;
Release channel c2;
}
Allocate channel for maintenance device type disk;
Crosscheck backupset;
Delete noprompt obsolete;

----- Level 2 backup
Batch file:
Set ORACLE_SID = orcl
Rman target sys/test @ orcl prepare file ='s:/backup/scripts/1/db_fullbakup_orcl.rman 'Log ='s:/backup/LOG/rman_backup _ % DATE :~ 0, 4% % DATE :~ 5, 2% % DATE :~ 8, 2%. Log'
Rman script:
Run {
Configure retention policy to recovery window of 14 days;
Configure controlfile autobackup on;
Configure controlfile autobackup format for device type disk to's: \ backup \ controlfile \ bak _ % F ';
Allocate channel c1 device type disk format's: \ backup \ data \ bak _ % U ';
Allocate channel c2 device type disk format's: \ backup \ data \ bak _ % U ';
Backup incremental level = 1 cumulative database skip inaccessible
Plus archivelog filesperset 20
Delete all input;
Release channel c1;
Release channel c2;
}
Allocate channel for maintenance device type disk;
Crosscheck backupset;
Delete noprompt obsolete;

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.