Oracle Error RMAN-06711: global scripts require a TARGET connection

Oracle Error Message

RMAN-06711: global scripts require a TARGET connection

Reason for the Error

Connection to a TARGET database was not specified.

Solution

Provide a TARGET connection and retry the command.