Oracle数据库备份:
-保留上周的备份记录;
====文本:
====Start========echo设置备份文件的存储文件夹.设置“tbuf=E:\Cway\backup”
Delete the file with the same name if it exists . If it exists %tbuf%\%name%. dmp del %tbuf%\%name%。 %tbuf%\%name% exists in dmpif. Log del %tbuf%\%name%. Log echo starts to back up the Oracle database of xx project . expuser1/Password1 @ orclfile=% tbuf% \% name%. Dmp log='%tbuf%\%name%. Log echo backup is complete!
===End======
==将“Start”和“End”之间的内容复制到txt文件中,修改路径、数据库名称等相应参数。
保存为bat格式,创建任务计划,设置为每天运行,实现数据库备份。
注意:
(1)用户:要备份的数据的用户名;
(2) password: password;
(3)Orcl:数据库名;