我们的oracle 11g数据库配置为每周一次在每周一次创建增量备份级别0。现在,我们还希望将差异增量备份级别1配置为从星期一到星期六。如果我们从周一到周六每天运行以下脚本,它会起作用吗?
run {
# Hot database level 1 incremental backup
allocate channel t1 type disk;
#note:if use hp system ,the following one script must unshielded
#set limit channel t1 kbytes 1800000;
CROSSCHECK ARCHIVELOG ALL;
backup
incremental level 1
#skip inaccessible
#filesperset 6
# recommended format
format '/orabak/data/inc_bak_%s_%p_%t_db1'
AS COMPRESSED backupset
(database);
delete obsolete;
sql 'alter system archive log current';
# backup all archive logs
backup
#skip inaccessible
#filesperset 10
format '/orabak/arch/arclogbak_%s_%p_%t_db1'
AS COMPRESSED backupset
(archivelog all
delete input);
delete obsolete;
}