Oracle Error RMAN-06474: maintenance channels are not allocated

Oracle Error Message

RMAN-06474: maintenance channels are not allocated

Reason for the Error

RELEASE CHANNEL was used without allocating any maintenance channels.

Solution

Allocate maintenance channel before executing this command.