Oracle Error ORA-24004: invalid column name string in SORT_LIST, should be ENQ_TIME or PRIORITY

Oracle Error Message

ORA-24004: invalid column name string in SORT_LIST, should be ENQ_TIME or PRIORITY

Reason for the Error

Invalid column name was specified in the SORT_LIST.

Solution

The valid column names are ENQ_TIME and PRIORITY.