Backup Command

 


full database backup:

=================================================

run {

allocate channel c1 type disk;

backup as backupset format '/u01/app/oracle/rman_bk/df_%d_%s_%p' incremental level 0 database;

backup as backupset format '/u01/app/oracle/rman_bk/ar_%d_%s_%p' archivelog all delete input;

}



differential incremental database backup:

=================================================

run {

allocate channel c1 type disk;

backup as backupset format '/u01/app/oracle/rman_bk/df_%d_%s_%p' incremental level 1 database;

backup as backupset format '/u01/app/oracle/rman_bk/ar_%d_%s_%p' archivelog all delete input;

}


cumulative incremental database backup:

=================================================

run {

allocate channel c1 type disk;

backup as backupset format '/u01/app/oracle/rman_bk/df_%d_%s_%p' incremental level 1 cumulative database;

backup as backupset format '/u01/app/oracle/rman_bk/ar_%d_%s_%p' archivelog all delete input;

}



enable block change tracking:

===============================


alter database enable block change tracking using file '/u01/app/oracle/rman_bk/blockchange.log';



full compressed database backup:

=================================================

run {

allocate channel c1 type disk;

backup as compressed backupset format '/u01/app/oracle/rman_bk/df_%d_%s_%p' incremental level 0 database;

backup as compressed backupset format '/u01/app/oracle/rman_bk/ar_%d_%s_%p' archivelog all delete input;

}


Comments

Popular posts from this blog

Formula list

Formula Line change query