RMAN BACKUP...PLUS ARCHIVELOG命令執行步驟

BACKUP...PLUS ARCHIVELOG命令在備份過程中會依次執行下列步驟:

  1 )運行ALTER SYSTEM ARCHIVE LOG CURRENT語句對當前 Redolog 進行歸檔。

  2 )執行BACKUP ARCHIVELOG ALL命令備份所有已歸檔日誌。

  3 )執行BACKUP命令對指定項進行備份。

  4 )再次運行ALTER SYSTEM ARCHIVE LOG CURRENT對當前 Redolog 歸檔。

  5 )對新生成的尚未備份的歸檔文件進行備份。

示例:

RMAN> backup database format '/home/oracle/full_%d_%s_%p_%T' plus archivelog delete input;


Starting backup at 2015-01-06 09:20:53
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=14095 RECID=26042 STAMP=868266136
input archived log thread=1 sequence=14096 RECID=26045 STAMP=868266403
input archived log thread=1 sequence=14097 RECID=26048 STAMP=868266737
input archived log thread=1 sequence=14098 RECID=26051 STAMP=868267004
input archived log thread=1 sequence=14099 RECID=26053 STAMP=868267254
channel ORA_DISK_1: starting piece 1 at 2015-01-06 09:22:22
channel ORA_DISK_1: finished piece 1 at 2015-01-06 09:22:23
piece handle=/dbdat/orclprd/flash_recovery_area/DB1/backupset/2015_01_06/o1_mf_annnn_TAG20150106T092055_bbpg6gq4_.bkp tag=TAG20150106T092055 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14095_840379839.dbf RECID=26042 STAMP=868266136
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14096_840379839.dbf RECID=26045 STAMP=868266403
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14097_840379839.dbf RECID=26048 STAMP=868266737
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14098_840379839.dbf RECID=26051 STAMP=868267004
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14099_840379839.dbf RECID=26053 STAMP=868267254
Finished backup at 2015-01-06 09:22:24

Starting backup at 2015-01-06 09:22:24
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00005 name=/dbdat/orclprd/oradata/orcl/userspace1.dbf
input datafile file number=00006 name=/dbdat/orclprd/oradata/orcl/userspace2.dbf
input datafile file number=00001 name=/dbdat/orclprd/oradata/orcl/system01.dbf
input datafile file number=00002 name=/dbdat/orclprd/oradata/orcl/sysaux01.dbf
input datafile file number=00003 name=/dbdat/orclprd/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/dbdat/orclprd/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 2015-01-06 09:22:24
channel ORA_DISK_1: finished piece 1 at 2015-01-06 09:22:59
piece handle=/home/oracle/full_ORCL_69_1_20150106 tag=TAG20150106T092224 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 2015-01-06 09:23:00
channel ORA_DISK_1: finished piece 1 at 2015-01-06 09:23:01
piece handle=/home/oracle/full_ORCL_70_1_20150106 tag=TAG20150106T092224 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 2015-01-06 09:23:01

Starting backup at 2015-01-06 09:23:01
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=14100 RECID=26057 STAMP=868267341
input archived log thread=1 sequence=14101 RECID=26061 STAMP=868267382
channel ORA_DISK_1: starting piece 1 at 2015-01-06 09:23:03
channel ORA_DISK_1: finished piece 1 at 2015-01-06 09:23:04
piece handle=/dbdat/orclprd/flash_recovery_area/DB1/backupset/2015_01_06/o1_mf_annnn_TAG20150106T092303_bbpg7q6h_.bkp tag=TAG20150106T092303 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14100_840379839.dbf RECID=26057 STAMP=868267341
archived log file name=/dbdat/orclprd/oracle/archivelog/1_14101_840379839.dbf RECID=26061 STAMP=868267382
Finished backup at 2015-01-06 09:23:04


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章