码迷,mamicode.com
首页 > 其他好文 > 详细

RMAN备份

时间:2015-09-15 23:35:56      阅读:438      评论:0      收藏:0      [点我收藏+]

标签:

备份Spfile、控制文件、数据文件、归档日志文件,并删除冗余备份。可结合rman cmdfile=FILE_PATH msglog=$HOME/backup/log/backup_level0.log和CRONTAB进行周期备份。

run {
allocate channel c1 device type disk;
backup incremental level 0 format /export/home/oracle/backup/db_full_incre0_%U.bkptag 2015-09-15-FULL-0database plus archivelog DELETE ALL INPUT;
crosscheck backupset;
crosscheck archivelog all;
delete noprompt expired backupset;
delete noprompt expired archivelog all;
delete noprompt obsolete;
release channel c1;
}
backup current controlfile format /export/home/oracle/backup/control20150914.bak;
backup spfile format /export/home/oracle/backup/spfile20150914.bak; 

 

RMAN备份

标签:

原文地址:http://www.cnblogs.com/houzhiqing/p/4811727.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!