#!/bin/ksh
THREAD=$1
SEQ1=$2
SEQ2=$3

###

rman target /;
backup as copy format ‘/oraback/al_%U’ archivelog sequence between $SEQ1 and $SEQ2 thread $THREAD ;

### or just backup an archivelog
backup as copy format ‘/oraback/al_%U’ archivelog sequence $SEQ1 thread $THREAD ;