Oracle Error ORA-32631: illegal use of objects in MODEL

Oracle Error Message

ORA-32631: illegal use of objects in MODEL

Reason for the Error

An object column was used as a MODEL column. Object types are not allowed as partition by, dimension by or measure expressions.

Solution

Check the SQL statement and rewrite if necessary.