Oracle备份数据库的脚本
for /f "tokens=1,2,3 delims=- " %%A in ('date /t') do set sDate=%%A%%B%%C
set sTime=%time:~0,2%%time:~3,2%%time:~6,2%
echo 开始备份:%sDate%%sTime%.dmp
EXP rms/zzz@orc10g FILE=H:\Oracle10gBak\RMS\%sDate%%sTime%.dmp OWNER=RMS
set sTime=%time:~0,2%%time:~3,2%%time:~6,2%
echo 开始备份:%sDate%%sTime%.dmp
EXP rms/zzz@orc10g FILE=H:\Oracle10gBak\RMS\%sDate%%sTime%.dmp OWNER=RMS