@echo 开始备份oracle数据
@echo off
set
set curdir=" D:\backup "
echo %curdir%
set t1=%Time:~0,1%
if "%t1%"==" " set t1=0
set td=%Date:~0,4%%Date:~5,2%%Date:~8,2%%t1:~0,1%%Time:~1,1%%Time:~3,2%%Time:~6,2%
zip %curdir%\ SGTMS _%td%.zip %curdir%\ SGTMS _%td%.dmp %curdir%\ SGTMS _%td%.Log
del %curdir%\*.dmp
del %curdir%\*.Log
echo 完成文件压缩
@echo on
@echo 备份oracle数据结束
@echo off
set
set curdir=" D:\backup "
echo %curdir%
set t1=%Time:~0,1%
if "%t1%"==" " set t1=0
set td=%Date:~0,4%%Date:~5,2%%Date:~8,2%%t1:~0,1%%Time:~1,1%%Time:~3,2%%Time:~6,2%
exp naricom/naricom@SGTMS owner=(mw_app,mw_sys,statdba,dictdba) file=%curdir%\SGTMS_%td%.dmp log=%curdir%\SGTMS_%td%.Log buffer=800000
zip %curdir%\ SGTMS _%td%.zip %curdir%\ SGTMS _%td%.dmp %curdir%\ SGTMS _%td%.Log
del %curdir%\*.dmp
del %curdir%\*.Log
echo 完成文件压缩
@echo on
@echo 备份oracle数据结束