Oracle Error RMAN-06173: SET NEWNAME command has not been issued for datafile string when restore auxiliary

Oracle Error Message

RMAN-06173: SET NEWNAME command has not been issued for datafile string when restore auxiliary

Reason for the Error

Auxiliary type was specified for the control file, but no SET NEWNAME command has been previously issued for a datafile.

Solution

Issue SET NEWNAME command for every datafile in the recovery set.