Oracle Error ORA-32626: illegal bounds or increment in MODEL FOR loop

Oracle Error Message

ORA-32626: illegal bounds or increment in MODEL FOR loop

Reason for the Error

FOR loop allows only numeric and datetime without timezone type for bounds. Only constants of interval and numeric types are allowed as increment/decrement expressions.

Solution

Check the SQL statement and rewrite if necessary.