RMAN Duplicate error
I got the following error when trying to duplicate the target database (TEST). I set up an auxiliary database called devdup. I thought the duplicate command was supposed to run the switch command to update the db_name in the controlfile. Any ideas?
run {
set until TIME "TO_DATE('11/19/09 14:00:00', 'MM/DD/YY HH24:MI:SS')"; duplicate target database to devdup;
}
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/19/2009 14:54:57
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01504: database name 'DEVDUP' does not match parameter db_name 'TEST'