Oracle Error RMAN-06217: not connected to auxiliary database with a net service name

Oracle Error Message

RMAN-06217: not connected to auxiliary database with a net service name

Reason for the Error

A command that moves files from the target instance to the auxiliary instance was requested. Such a command requires a net service name be present in the connect string used to connect to the auxiliary instance.

Solution

Issue a CONNECT AUXILIARY command and include a net serice name in the connect string. That service name must be valid on the target instance.