RE: Date bind variable being peeked, but not used for cardinality estimate

From: Allen, Brandon <>
Date: Thu, 24 Sep 2009 11:59:10 -0700
Message-ID: <64BAF54438380142A0BF94A23224A31E112B7B98B0_at_ONEWS06.oneneck.corp>


Thanks for the pointer to the other_xml column - I actually just discovered that myself yesterday after some digging through the code for sqltxplain (a very nice utility for query tuning downloadable from Metalink 215187.1). So I checked it yesterday as another confirmation that the bind variables are not being peeked (in addition to the "No bind buffers allocated" message I already found in the 10053 trace). I didn't think to check for the _optim_peek_user_binds hint as you suggested, however I just checked that too and the hint is not present - so the mystery continues . . . (no response yet from Oracle on my SR, other than requesting the SQLTXTRACT output)

I love the scripts for creating the query test scripts with bind variables - very nice!

I also feel better after reading the article ( that you referenced in your blog where Jonathan Lewis confessed that he had also been under the same false impression as I was regarding v$sql_bind_capture and bind peeking. At least I'm not the only one that made the wrong assumption there :-)


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

Received on Thu Sep 24 2009 - 13:59:10 CDT

Original text of this message