Backup based duplication without a target connection
I am trying to duplicate a database( v11.2.0.2) using RMAN duplicate command without a target connection and I am getting "RMAN-01009: syntax error: found "dbid": expecting one of" error. The script that I am using is shown below. Did anyone have a similar issue while duplicating oracle 11gR2 database using RMAN duplicate command?
connect catalog rman/rman@rman.clone
connect auxiliary /
run {
set newname for tempfile 1 to '/tcs1325s/dbf/temp01.dbf';
set newname for datafile 1 to '/tcs1325s/dbf/system01.dbf';
set newname for datafile 10 to '/tcs1325s/dbf/ncsdata01.dbf';
set newname for datafile 11 to '/tcs1325s/dbf/ncsindex01.dbf';