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
,