关于批处理(bat)数据库备份
@echo ******************************** @echo 数据库备份 @echo ******************************** @echo off set h=%time:~0,2% if %h% leq 9 (set h=0%h:~1,1%) set dbbarkfile=%date:~0,4%%date:~5,2%%date:~8,2%%h%%time:~3,2%%time:~6,2% set dbbarkdir=e:\application\dbbarkup\%dbbarkfile% mkdir %dbbarkdir% @echo ******************************** @echo mt备份 @echo ******************************** exp mt/mt@orcl file=%dbbarkdir%\mt%dbbarkfile%.dmp