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 irregularity

Re: Explain Plan irregularity

From: Bill Sonia <member_at_dbforums.com>
Date: 19 Mar 2002 12:17:50 -0600
Message-ID: <3c9780ce$1_1@spamkiller.newsgroups.com>


Thanks all for the replies,

There are other bind variables in my WHERE condition but it seems to be the date between bind variables that change my plan from hash joins (good) to nested loops (bad). And I don't seem to have that special hint in my bag-o-hints to change the plan back to hash joins.

Because I'm interested in only running a calendar month at a time, I'm going to try a function-based index on to_char(inv_date,'YYYY') || to_char(inv_date,'MM') and change my between condition to to_char(inv_date,'YYYY') || to_char(inv_date,'MM') = '200203'.

Tuning seems to be more of an art than an exact science.

~Bill

--
Posted via dBforums
http://dbforums.com
Received on Tue Mar 19 2002 - 12:17:50 CST

Original text of this message

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