Oracle Error RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE command

Oracle Error Message

RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE command

Reason for the Error

A DUPLICATE command was issued, but the auxiliary database is mounted.

Solution

Dismount the auxiliary database.