@echo on setlocal rem 设置数据库和备份文件参数... set sid=testorcl set username=testname set password=testpwd set bakdir=E:BackUpHOMAOA set bakdate=%date:~11% set connect=%username%/%password%@%sid% rem 执行文件备份...... exp %connect% buffer=100000000 file=%bakdir% estorcl数据备份_%bakdate%_bak.dmp log=%bakdir% estorcl备份日志_%bakdate%_bak.log compress=y full=y DIRECT=y endlocal