今天测试备份恢复需要按照序列号备份指定的归档,一下子没想起来命令是哪个了。查了一下命令如下:
备份序列号1000到1050的归档
对于单机:
RMAN> backup format '/archive/%d_%s_%p_%c_%t.arc.bkp' archivelog from sequence 1000 until sequence 1050;
对于RAC:需要指定thread号:
RMAN> backup format '/archive/%d_%s_%p_%c_%t.arc.bkp' archivelog from sequence 1000 until sequence 1050 thread 2;