Oracle Error PLS-00650: invalid type for PARTITION/CLUSTER/ORDER BY clause

Oracle Error Message

PLS-00650: invalid type for PARTITION/CLUSTER/ORDER BY clause

Reason for the Error

Uer tried to use invalid type for PARTITION/CLUSTER?ORDER BY clause.

Solution

Use legal allowed types.