Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: explain plan changes if using bind vars

Re: explain plan changes if using bind vars

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Wed, 03 Aug 2005 04:16:51 GMT
Message-Id: <pan.2005.08.03.04.16.50.304499@sbcglobal.net>


On Tue, 02 Aug 2005 16:40:57 +0000, NetComrade wrote:

> I have a query that changes explain plan for the worse if I change
> non-bind vars to bind vars. Discovered this yesterday, when was trying
> to figure out extra dblink chatter (see reduce dblink (database link)
> chatter thread)

Things usually develop from bad to worse, as is clearly explained here: http://www.cpuidle.de/murphy.shtml
If everything looks good, you overlooked something.

For bad cases like your query, there are hints which will probably do the trick. CBO is not bulletproof and there are cases when you must use hints to get the desired results. That's what they're here for.

-- 
http://www.mgogala.com
Received on Tue Aug 02 2005 - 23:16:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US