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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Changes to RULE based optimizer between Oracle8 and 9i

Re: Changes to RULE based optimizer between Oracle8 and 9i

From: Keith Moore <kmoore7_at_jcpenney.com>
Date: Fri, 30 Jan 2004 11:40:00 -0600
Message-id: <1a1201c3e758$15c3aef0$7003200a@kmoore7>


I guess I didn't explain very well. The query does not use IOT's It's the same "regular" tables. In one case, it just selects from a single table with about 11 million rows, returning about 1000, and executes for an hour. I'm still interpreting the trace data to see exactly what it's doing, but my question here is "why is it doing it differently?". And sorry about the wrong list. I meant to send it to the new one.

> Keith,
>
> To my knowledge, RBO has not changed. That includes NOT dealing w/ IOT.
> So, I think if you execute a query that references an IOT, you'll
> implicitly invoke the CBO. That would explain why the plan is changing.
> So, did you change a table from heap to IOT when you moved to 9i? If
> so, that's what's invoking CBO.
>
> -Mark
>
> PS fatcity is going away, use freelists.org!
>
>
> Mark J. Bobak
> Oracle DBA
> ProQuest Company
> Ann Arbor, MI
> "Imagination was given to man to compensate him for what he is not, and
> a sense of humor was provided to console him for what he is." --Horace
> Walpole
>
> -----Original Message-----
> From: Keith Moore [mailto:kmoore7_at_jcpenney.com]
> Sent: Friday, January 30, 2004 11:54 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Changes to RULE based optimizer between Oracle8 and 9i
>
>
> We move an application that uses OPTIMIZER_MODE=RULE from
> Oracle8 to 9i. Most of it is fine, but there are two queries that have a
> very different execution plan. In one case, the execution time increases
> from less than a minute to more than an hour. Neither query uses any of
> the new Oracle 9i features.
>
> My understanding is that the Rule optimizer code has not
> changed, except to account for new features like IOT's. Has anyone else
> seen this type of behavior?
>
> Keith Moore
> Oracle Certified Professional
> 972-431-5126
> kmoore7_at_jcpenney.com
>
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review, dissemination, distribution or copying of this message including any attachments is strictly prohibited. If you are not the intended recipient, please contact the sender and delete the material from any computer.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Jan 30 2004 - 11:40:00 CST

Original text of this message

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