备份数据库注意事项:
1.备份的位置
2.是否使用FRA
3.备份位置的权限和空间
数据库备份
1.备份整个数据库
RMAN> backup database plus archivelog delete input; Starting backup at 07-SEP-18 --备份日期current log archived --归档?using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=931 device type=DISKchannel ORA_DISK_1: starting archived log backup setchannel ORA_DISK_1: specifying archived log(s) in backup setinput archived log thread=1 sequence=123 RECID=117 STAMP=986199636channel ORA_DISK_1: starting piece 1 at 07-SEP-18channel ORA_DISK_1: finished piece 1 at 07-SEP-18piece handle=/u01/FRA/OCP/backupset/2018_09_07/o1_mf_annnn_TAG20180907T082036_fs4v8o8c_.bkp tag=TAG20180907T082036 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:01channel ORA_DISK_1: deleting archived log(s)archived log file name=/u01/FRA/OCP/archivelog/2018_09_07/o1_mf_1_123_fs4v8nfh_.arc RECID=117 STAMP=986199636Finished backup at 07-SEP-18Starting backup at 07-SEP-18
using channel ORA_DISK_1channel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001 name=/u01/app/oracle/oradata/OCP/datafile/o1_mf_system_fb8w44fm_.dbfinput datafile file number=00003 name=/u01/app/oracle/oradata/OCP/datafile/o1_mf_undotbs1_fb8w44gd_.dbfinput datafile file number=00004 name=/u01/app/oracle/oradata/OCP/datafile/o1_mf_users_fb8w44gz_.dbfinput datafile file number=00002 name=/u01/app/oracle/oradata/OCP/datafile/o1_mf_sysaux_fb8w44g7_.dbfinput datafile file number=00005 name=/u01/app/oracle/oradata/OCP/datafile/o1_mf_example_fb8w6fnx_.dbfchannel ORA_DISK_1: starting piece 1 at 07-SEP-18channel ORA_DISK_1: finished piece 1 at 07-SEP-18piece handle=/u01/FRA/OCP/backupset/2018_09_07/o1_mf_nnndf_TAG20180907T082038_fs4v8q06_.bkp tag=TAG20180907T082038 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:02:35channel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setincluding current control file in backup setincluding current SPFILE in backup setchannel ORA_DISK_1: starting piece 1 at 07-SEP-18channel ORA_DISK_1: finished piece 1 at 07-SEP-18piece handle=/u01/FRA/OCP/backupset/2018_09_07/o1_mf_ncsnf_TAG20180907T082038_fs4vfmgs_.bkp tag=TAG20180907T082038 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:01Finished backup at 07-SEP-18Starting backup at 07-SEP-18
current log archivedusing channel ORA_DISK_1channel ORA_DISK_1: starting archived log backup setchannel ORA_DISK_1: specifying archived log(s) in backup setinput archived log thread=1 sequence=124 RECID=118 STAMP=986199797channel ORA_DISK_1: starting piece 1 at 07-SEP-18channel ORA_DISK_1: finished piece 1 at 07-SEP-18piece handle=/u01/FRA/OCP/backupset/2018_09_07/o1_mf_annnn_TAG20180907T082317_fs4vfogg_.bkp tag=TAG20180907T082317 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:01channel ORA_DISK_1: deleting archived log(s)archived log file name=/u01/FRA/OCP/archivelog/2018_09_07/o1_mf_1_124_fs4vfo07_.arc RECID=118 STAMP=986199797Finished backup at 07-SEP-18RMAN> list archivelog all;
specification does not match any archived log in the repository
##查看备份集的大小
RMAN> list backup of database summary;
List of Backups===============Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag------- -- -- - ----------- --------------- ------- ------- ---------- ---4 B F A DISK 07-SEP-18 1 1 NO TAG20180907T082038RMAN> list backup of archivelog all summary;
List of Backups===============Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag------- -- -- - ----------- --------------- ------- ------- ---------- ---1 B A A DISK 07-SEP-18 1 1 NO TAG20180907T0806023 B A A DISK 07-SEP-18 1 1 NO TAG20180907T0820366 B A A DISK 07-SEP-18 1 1 NO TAG20180907T082317