@echo off
set sid=IP/ORCL
set username=USERNAME
set password=PASSWORD
set connect=%username%/%password%@%sid%
%请先建立databak2dmp文件夹然后执行%
set back_path=d:\databak2dmp
set date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
set time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
set file_string=%back_path%\qyw_%date_string%_%time_string%
set log_string=%back_path%\qyw_%date_string%_%time_string%
exp %connect% file=%file_string%.dmp INDEXES=y grants=y constraints=y log=%log_string%.log
Oracle自动备份.bat文件最正确写法,亲测好用
最新推荐文章于 2024-07-04 09:51:18 发布