Toon posts:

[Oracle] query een oracle queue

Pagina: 1
Acties:

Verwijderd

Topicstarter
Weet iemand hoe je een query los kan laten op een queue. Ik heb een aantal queue's in mijn database waar ik van tijd tot tijd van wil weten hoeveel er nog in aanwezig is... echter select en select count statements werken hier niet op dus ik vraag me af hoe je een dergelijke actie moet ondernemen met een SQL statement.

Iemand een idee?

Verwijderd

Topicstarter
gevonden op otn.oracle.com:

code:
1
2
3
4
For a single consumer queue table, a simple select count(*) From <queue_table> where qname = <qname> should give you the number of messages in the queue.

For multiple consumer queue, a select count(*) from <queue_table> where qname = <qname> will give you the number of messages in the queue - These messages are available to every consumer of the queue (or recipients if specified during enqueuing the message).
null