大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
增量备份分为累积和差异两种
创新互联建站专注为客户提供全方位的互联网综合服务,包含不限于网站建设、成都做网站、西陵网络推广、小程序制作、西陵网络营销、西陵企业策划、西陵品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联建站为所有大学生创业者提供西陵建站搭建服务,24小时服务热线:028-86922220,官方网址:www.cdcxhl.com
backup incremental level 0 database; --这是一个0级备份
backup incremental level 1 database; --差异1级
backup incremental level 2 database; --差异2级
backup incremental level 1 cumulative database; --累积1级
backup incremental level 2 cumulative database; --累积2级
一般来说周日凌晨跑一个0级,一二跑各跑1个差异1级,周三跑1一个差异2级,周四周五各跑1个差异1级,周六跑一个差异2级
oracle实现自动定时备份其实比较好的方法是:
oracle中的job
+
存储过程
job定时执行,而存储过程则完成增量备份!!
source /etc/profile
DAY_TAG= date +"%Y-%m-%d"
week= date +%W
backdir1=/home/oracle/backup/" backdir1
rman target / nocatalog msglog /home/oracle/backup/log/fullback_$DAY_TAG.logEOF
run{
crosscheck backup;
delete noprompt expired backup;
allocate channel d1 type disk;
backup incremental level 0 as compressed backupset database format ' backdir1/arch_%d_%T_%t_%s_%p' archivelog all;
backup current controlfile format '$backdir1/ctl_%d_%T_%t_%s_%p';
release channel d1;
}
EOF
source /etc/profile
DAY_TAG= date +"%Y-%m-%d"
week= date +%W
backdir1=/home/oracle/backup/" backdir1
rman target / nocatalog msglog /home/oracle/backup/log/incremental_$DAY_TAG.logEOF
run{
crosscheck backup;
delete noprompt expired backup;
allocate channel d1 type disk;
backup incremental level 1 as compressed backupset database format ' backdir1/arch_%d_%T_%t_%s_%p' archivelog all;
backup current controlfile format '$backdir1/ctl_%d_%T_%t_%s_%p';
release channel d1;
}
EOF
0 4 * * 0 bash rmanfull.sh
0 4 * * 1-6 bash rmanincreme.sh