Oracle Error RMAN-05049: datafile string is an Oracle Managed File, DB_CREATE_FILE_DEST not set at target

Oracle Error Message

RMAN-05049: datafile string is an Oracle Managed File, DB_CREATE_FILE_DEST not set at target

Reason for the Error

A Tablespace Point-in-Time Recovery was attempted but the datafile is an Oracle Managed File and DB_FILE_CREATE_DEST is not currently set for the target database.

Solution

Specify DB_FILE_CREATE_DEST for the target database or provide a NEWNAME for the specified datafile.