oracle自动备份并打包成压缩文件的脚步------绝对非常实用,wind
发布时间:2020-12-12 13:53:48 所属栏目:百科 来源:网络整理
导读:转载:https://blog.csdn.net/wenzhihui_2010/article/details/12099029 @echo 开始备份…. @echo 本程序使用zip压缩,备份后的文件可使用rar或者zip解压。 set instanse=orcl set username=user set password=password set extname=rar set year=%date:~0,4
转载:https://blog.csdn.net/wenzhihui_2010/article/details/12099029 @echo 开始备份…. @echo 本程序使用zip压缩,备份后的文件可使用rar或者zip解压。set instanse=orcl set username=user set password=password set extname=rar set year=%date:~0,4% set month=%date:~5,2% set day=%date:~8,255);">set mydate=%year%-%month%-%day% set spath=e:backup mkdir "%spath%" set filename=e:backup%username%%mydate% @echo %filename% exp %username%/%password%@%instanse% file=%filename%.dmp owner=%username% log=%filename%.log C:WinRARrar.exe a %filename%.%extname% %filename%.dmp %filename%.log del %filename%.dmp del %filename%.log @echo 备份完毕! @echo 备份文件为:%filename%.%extname% @echo 执行sql…. @echo off echo OK! 把上面脚步写在批处理文件(bak_oracle.bat)文件中,就搞定了 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读