数据库做了一个全备份。
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'D:\Eltds_BAK\control%F';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
run {
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
allocate channel t4 type disk;
allocate channel t5 type disk;
change archivelog all crosscheck;
backup
incremental level 0
tag Eltds_bk_level0
filesperset 3
format 'D:\Eltds_BAK\Eltds_full\Eltds_%s_%p_%t.dbbak' database;
sql "create pfile=''D:\Eltds_BAK\Eltds_spfile\Eltds_spfile.bak'' from spfile";
sql 'alter system archive log current';
backup
filesperset 10
format 'D:\Eltds_BAK\Eltds_full\Eltds_%s_%p_%t.archlogbak' archivelog all delete input;
backup
format 'D:\Eltds_BAK\Eltds_%s_%p_%t.controlbak' current controlfile;
}-----------------
现在做了一个.bat脚本来执行
rman nocatalog target crp/crp99@Eltds  cmdfile D:\Rman_script\Eltds_backup_level0.txt log D:\Eltds_BAK\Eltds_backup_level0_%date:~0,10%.log  老大说在之后运行.bat文件是,要先删除上一次执行脚本生成的文件。好像是for循环删除.for(delete)...
我不懂,请问怎么写呢?就是在
rman nocatalog target crp/crp99@Eltds  cmdfile D:\Rman_script\Eltds_backup_level0.txt log D:\Eltds_BAK\Eltds_backup_level0_%date:~0,10%.log  
该脚本上面加一行删除之前执行的文件