@echo off
echo 删除10天前的备分文件和日志
forfiles /p "e:\app\back" /m *.dmp /d -5 /c "cmd /c del @path"
forfiles /p "e:\app\back" /m *.log /d -5 /c "cmd /c del @path"
echo 正在备份 Oracle 数据库,请稍等……
expdp sxybyj/sxybyj@orcl directory=dir_back dumpfile=mdb%date:~0,4%%date:~5,2%%date:~8,2%.dmp logfile=mdb%date:~0,4%%date:~5,2%%date:~8,2%.log
echo 任务完成!