@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