Oracle数据备份bat

@echo on
setlocal

rem 设置数据库和备份文件参数...
set sid=testorcl
set username=testname
set password=testpwd
set bakdir=E:\BackUp\HOMAOA
set bakdate=%date:~11%
set connect=%username%/%password%@%sid%

rem 执行文件备份......

exp %connect%  buffer=100000000 file=%bakdir%\testorcl数据备份_%bakdate%_bak.dmp  log=%bakdir%\testorcl备份日志_%bakdate%_bak.log compress=y full=y DIRECT=y

endlocal
posted @ 2014-12-09 16:58  --宁静以致远--  阅读(556)  评论(0编辑  收藏  举报