Oracle Error RMAN-02009: unexpected end of command file reached

Oracle Error Message

RMAN-02009: unexpected end of command file reached

Reason for the Error

This is probably caused by failure to supply the closing brace for a stored script in a command file.

Solution

Correct the input.