Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why Statistics doesn't match reponse time?
<poddar007_at_gmail.com> wrote in message
news:1126561319.704117.148040_at_g44g2000cwa.googlegroups.com...
> Hi jonathan
>
> Below is a quote from you
>
> "Buffer busy waits (of the change/change type)
> appear when one session pins exclusive and
> another wants to pin exclusive - the second
> session attaches to the 'waiters' pin-list and
> waits for the buffer to become available.
> But buffers are usually only pinned exclusive for very short periods. "
>
> Lets say a session pins a buffer in exclusive mode
> to make some changes.
>
> At the same time a session wants to read data
> from the buffer.
>
> Won't the second session (reader) would have to wait
> on buffer busy wait (120) till the first session has finished
> its change, so that it sees a consisten buffer ?
>
> thanks
> amit
>
Yes, you're right (though I'd have to check that it was p3=120 in that case, the only number I remember is 130 for waiting for other session to read from disk - which has become a separate wait event in 10g).
The first session would pin exclusive, the second would try to pin shared - but shared is not compatible with exclusive, so it would go on the waiters list and show a BBW.
-- Regards Jonathan Lewis http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html Cost Based Oracle - Volume 1: Fundamentals On-shelf date: Nov 2005 http://www.jlcomp.demon.co.uk/faq/ind_faq.html The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/appearances.html Public Appearances - schedule updated 4th Sept 2005Received on Mon Sep 12 2005 - 18:29:58 CDT