How do I check the number of messages that are in a pipe? I would like
to stop sending messages to the pipe if the number of messages exceeds
a certain number.
Thank you in advance for any response.
Regards,
z1hou1
As far as I know the dbms_pipe package doesn't offer any facility to
find out the number of messages within a pipe. At least you can
maintain a counter by yourself into a table incrementing it when a new
message is put into the pipe and decrement it when the message is
extracted from within the same pipe.
Regards,
talek
z1h
@gmail.com wrote:
> How do I check the number of messages that are in a pipe? I would like
> to stop sending messages to the pipe if the number of messages exceeds
> a certain number.
> Thank you in advance for any response.
> Regards,
> z1hou1
On May 11, 3:00 pm, z1h
@gmail.com wrote:
> How do I check the number of messages that are in a pipe? I would like
> to stop sending messages to the pipe if the number of messages exceeds
> a certain number.
> Thank you in advance for any response.
> Regards,
> z1hou1
I don't know much about it, but looking at the docs it seems there is
a maxpipesize parameter when you create the pipe, and you will be
blocked when the pipe is full. So stop sending when you are blocked.
jg
--
@home.com is bogus.
"stupid_query_detection=off | normal | aggressive | facist" - Andre
-----------------------------------------------Reply-----------------------------------------------
Thank you all for your suggestions. A combination of the above should
help me with this issue. I was looking for something other than AQ
since AQ was an overkill for my requirement.
Regards,
z1hou1
-----------------------------------------------Reply-----------------------------------------------
z1h
@gmail.com wrote:
> Thank you all for your suggestions. A combination of the above should
> help me with this issue. I was looking for something other than AQ
> since AQ was an overkill for my requirement.
> Regards,
> z1hou1
AQ may be overkill but building an AQ implementation shouldn't take
more than a day-or-two. Why not leverage the capabilities?
--
Daniel A. Morgan
University of Washington
damor
@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org