合 RMAN备份及恢复归档日志的语法
备份所有归档日志文件
1 | RMAN> backup archivelog all delete input; |
还原归档 restore archivelog 的各种选项
1.恢复全部归档日志文件
1 | RMAN> restore archivelog all; |
2.只恢复5到8这四个归档日志文件
1 | RMAN> restore archivelog from logseq 5 until logseq 8; |
3.恢复从第5个归档日志起
1 | RMAN> restore archivelog from logseq 5; |
4.恢复7天内的归档日志
1 | RMAN> restore archivelog from time 'sysdate-7'; |