<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Side effect of cursor sharing</title>
	<link>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Sun, 07 Sep 2008 13:29:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Gary</title>
		<link>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6146</link>
		<pubDate>Fri, 04 Apr 2008 01:07:02 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6146</guid>
					<description>Interesting quote from the Oracle optimizer people
http://optimizermagic.blogspot.com/2007/12/why-are-there-more-cursors-in-11g-for.html

"We hope that in the future, this feature [11g's adaptive cursor sharing] will persuade people to set cursor_sharing to force."

I wonder if there is, or will be an event, to record the bind values used when a query is optimized.</description>
		<content:encoded><![CDATA[<p>Interesting quote from the Oracle optimizer people<br />
<a href="http://optimizermagic.blogspot.com/2007/12/why-are-there-more-cursors-in-11g-for.html" rel="nofollow">http://optimizermagic.blogspot.com/2007/12/why-are-there-more-cursors-in-11g-for.html</a></p>
<p>&#8220;We hope that in the future, this feature [11g&#8217;s adaptive cursor sharing] will persuade people to set cursor_sharing to force.&#8221;</p>
<p>I wonder if there is, or will be an event, to record the bind values used when a query is optimized.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6144</link>
		<pubDate>Thu, 03 Apr 2008 11:36:42 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6144</guid>
					<description>Thanks for the comment.

No, it was not trace files with bind.

About bind peeking, there is another value SIMILAR which partly solves the problem. Still I set the parameter back to EXACT on that db.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment.</p>
<p>No, it was not trace files with bind.</p>
<p>About bind peeking, there is another value SIMILAR which partly solves the problem. Still I set the parameter back to EXACT on that db.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Yas</title>
		<link>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6143</link>
		<pubDate>Thu, 03 Apr 2008 11:07:54 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/04/side-effect-of-cursor-sharing.html#comment-6143</guid>
					<description>If you have an sql trace with binds (10046 with level 12) you have the chance to find out the values. It may be hard if there are hundreds of different values, but you should not be using literals for such a query anyway, so there is no difference here for sqls with hundreds of different bind values.

Laurent, another side effect (and a more important one) is bind-peeking. Before you had optimal execution plans(thanks to the literals), now you have binds, so bind-peeking. If there is a histogram on the column you may get suboptimal plans for some bind values and optimal plans for others.</description>
		<content:encoded><![CDATA[<p>If you have an sql trace with binds (10046 with level 12) you have the chance to find out the values. It may be hard if there are hundreds of different values, but you should not be using literals for such a query anyway, so there is no difference here for sqls with hundreds of different bind values.</p>
<p>Laurent, another side effect (and a more important one) is bind-peeking. Before you had optimal execution plans(thanks to the literals), now you have binds, so bind-peeking. If there is a histogram on the column you may get suboptimal plans for some bind values and optimal plans for others.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
