Oracle Error RMAN-05539: DUPLICATE TARGET DATABASE cannot be used without connecting to the TARGET

Oracle Error Message

RMAN-05539: DUPLICATE TARGET DATABASE cannot be used without connecting to the TARGET

Reason for the Error

A DUPLICATE TARGET DATABASE was attempted and no connection to the TARGET database was established.

Solution

Connect to TARGET or use DATABASE clause.