1. 完全备份
RMAN> backup as backupset database; Starting backup at 14-DEC-16 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=16 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf channel ORA_DISK_1: starting piece 1 at 14-DEC-16 channel ORA_DISK_1: finished piece 1 at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/13rnfdlf_1_1 tag=TAG20161214T175350 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:02:35 Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-09 comment=NONE Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>
2. 级别为0的增量备份
RMAN> backup as backupset incremental level 0 database; Starting backup at 14-DEC-16 using channel ORA_DISK_1 channel ORA_DISK_1: starting incremental level 0 datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf channel ORA_DISK_1: starting piece 1 at 14-DEC-16 channel ORA_DISK_1: finished piece 1 at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/15rnfe0a_1_1 tag=TAG20161214T175938 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:02:45 Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0a comment=NONE Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>
3. 级别为1的差异增量备份
RMAN> backup as backupset incremental level 1 database; Starting backup at 14-DEC-16 using channel ORA_DISK_1 channel ORA_DISK_1: starting incremental level 1 datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf skipping datafile 00006 because it has not changed input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf channel ORA_DISK_1: starting piece 1 at 14-DEC-16 channel ORA_DISK_1: finished piece 1 at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/17rnfeas_1_1 tag=TAG20161214T180516 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35 Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0b comment=NONE Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>
4. 级别为1的累积增量备份
RMAN> backup as backupset incremental level 1 cumulative database; Starting backup at 14-DEC-16 using channel ORA_DISK_1 channel ORA_DISK_1: starting incremental level 1 datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf skipping datafile 00006 because it has not changed input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf channel ORA_DISK_1: starting piece 1 at 14-DEC-16 channel ORA_DISK_1: finished piece 1 at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/19rnfeg1_1_1 tag=TAG20161214T180801 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:02:35 Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16 piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0c comment=NONE Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>