Oracle Error ORA-25231: cannot dequeue because CONSUMER_NAME not specified

Oracle Error Message

ORA-25231: cannot dequeue because CONSUMER_NAME not specified

Reason for the Error

A user tried to dequeue from a queue that has been created for multiple consumers but a CONSUMER_NAME was not been specified in the dequeue options.

Solution

Specify the CONSUMER_NAME in the dequeue options.