STOP_QUEUE v16
Use the STOP_QUEUE
procedure to disable enqueuing or dequeueing on a specified queue. The signature is:
Parameters
queue_name
queue_name
specifies the name of the queue that you're stopping.
enqueue
Specify TRUE
to disable enqueueing (the default) or FALSE
to leave the current setting unchanged.
dequeue
Specify TRUE
to disable dequeueing (the default) or FALSE
to leave the current setting unchanged.
wait
Specify TRUE
to instruct the server to wait for any uncompleted transactions to complete before applying the specified changes. While waiting to stop the queue, no transactions are allowed to enqueue or dequeue from the specified queue. Specify FALSE
to stop the queue immediately.
Example
The following anonymous block disables enqueueing and dequeueing from the queue named work_order
:
Enqueueing and dequeueing stops after any outstanding transactions complete.
- On this page
- Parameters
- Example