oracle数据库恢复归档脚本
cat restorearch1.sh
rman target / << EOF
RUN {
SET ARCHIVELOG DESTINATION TO '/archlog1/db2_archivelog/restore/';
ALLOCATE CHANNEL CH01 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=db3_BEIFEN';
SEND 'NB_ORA_SERV=master_BEIFEN';
RESTORE ARCHIVELOG SEQUENCE between 11111 and 11116 THREAD 1;
RELEASE CHANNEL CH01;
}
EOF