批处理命令数据库导出

@echo off
echo 正在备份高考报名 Oracle 数据库,请稍等......
set filename=D:\GKBM\data\GKBM%date:~0,4%-%date:~5,2%-%date:~8,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%
set removefile=D:\GKBM\data
set oldfile=D:\GKBM\olddata
exp GKBM/cust1607@192.168.132.15/GKBM file=%filename%.dmp log=%filename%.log owner=(GKBM)
copy  D:\GKBM\data\*.rar  %oldfile%
del    D:\GKBM\data\*.rar
rar a %filename%.rar %filename%.*
del %filename%.dmp
del %filename%.log
echo 任务完成!

exit

posted @ 2014-04-01 19:35  -琥珀川-  阅读(407)  评论(0编辑  收藏  举报