Oracle Error Message
RMAN-06572: database is open and datafile number is not offline
Reason for the Error
The SWITCH command with the option TO COPY was specified, but datafile is not offline and database is open.
Solution
Either make sure the datafile is offline or the database must be mounted but not opened.