Oracle Error RMAN-00579: SCRIPT cannot be used with CMDFILE

Oracle Error Message

RMAN-00579: SCRIPT cannot be used with CMDFILE

Reason for the Error

The SCRIPT and CMDFILE options cannot be used together. When using the SCRIPT option, RMAN executes only the specified script.

Solution

Remove either the SCRIPT or CMDFILE option.