create script bak_0{
crosscheck backup;
crosscheck archivelog all;
allocate channel c1 type disk maxpiecesize = 200000m;
sql 'alter system archive log current';
backup incremental level 0 skip inaccessible database tag 'inc_0' format '/oralce/ora_rman/bak_0%p_%s_%t.bak' filesperset 4
include current controlfile plus archivelog tag 'arc_0' format '/oracle/ora_rman/bak_arc%U.bak' filesperset 2
delete all input;
delete obsolete;
release channel c1;
}
PS:脚本来源《Oracle高性能自动化运维》
0级增量备份脚本(示例)
原文:http://blog.51cto.com/10579005/2072049