Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: USER_BIND_PEEK_MISMATCH...
> There is some discussion on my blog:
> http://jonathanlewis.wordpress.com/2007/01/05/bind-variables/
>
> --
> Regards
>
> JonathanLewishttp://jonathanlewis.wordpress.com
>
> Author: Cost Based Oracle: Fundamentalshttp://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
>
> The Co-operative Oracle Users' FAQhttp://www.jlcomp.demon.co.uk/faq/ind_faq.html
The above blog mentioned by jonathan discusses a issue which will show
up as BIND_MISMATCH and not as
USER_PEEK_BIND_MISMATCH. I sent an email to jonthan with this
information and he replied back with the following
"My error - I failed to think carefully enough about the post. Feel free to post the correction to the newsgroup.
I wonder if it could also happen with cursor_sharing set to force if there was a size mismatch; or would that still show as a BIND_MISMATCH.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com"
The USER_PEEK_BIND_MISMATCH generally happens which you have
cursor_sharing = similar. and oracle decides to optimize the query
again
as a new child cursor since the peeked bind value can result in a
different execution plan. This can happen when there is a histogram on
the column.
amit Received on Wed Jun 27 2007 - 15:09:34 CDT
![]() |
![]() |