Oracle Error RMAN-05544: Cannot specify ACTIVE DATABASE when not connected to target database

Oracle Error Message

RMAN-05544: Cannot specify ACTIVE DATABASE when not connected to target database

Reason for the Error

DUPLICATE from ACTIVE DATABASE required a connection to the target database.

Solution

Connect to target database or remove from ACTIVE DATABASE and retry the command.