Oracle Error PLS-00625: PARTITION/CLUSTER/ORDER-BY clause can only be used with IN parameters

Oracle Error Message

PLS-00625: PARTITION/CLUSTER/ORDER-BY clause can only be used with IN parameters

Reason for the Error

A PARTITION/CLUSTER/ORDER-BY clause was used with an OUT or IN OUT ref-cursor parameter.

Solution

Change the parameter mode to IN or use some other parameter with the PARTITION/CLUSTER/ORDER-BY clause.