1. 程式人生 > >catalog方式的rman備份與恢復示例

catalog方式的rman備份與恢復示例


C:\>rman catalog rman/rman target sys/orcl
RMAN>create script fullbk{      #建立備份指令碼
backup full tag 'sys' database
include current controlfile
format 'c:\backup\sysfull_%d_%T_%s'
plus archivelog
format 'c:\backup\sysarch_%d_T_%s'
delete all input;
}
RMAN>run{execute script fullbk;}  #呼叫指令碼