Listing 2. Rman Duplication Script

run {
 allocate auxiliary channel a1 type 'sbt_tape' parms 'ENV=(NSR_SERVER=bksrv,NSR_CLIENT=targethost';
 allocate channel t1 type 'sbt_tape' parms 'ENV=(NSR_SERVER=bksrv,NSR_CLIENT=targethost)';
 set until set until sequence 10059 thread 1;
 duplicate target database to mydata nofilenamecheck; 
}

