Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: RBO to CBO
Richard Foote wrote:
> "DA Morgan" <damorgan_at_x.washington.edu> wrote in message
> news:41d44380$1_1_at_127.0.0.1...
>
>>Niall Litchfield wrote: >> >> >>>"DA Morgan" <damorgan_at_x.washington.edu> wrote in message >>>news:41d3a2b3$1_2_at_127.0.0.1... >>> >>> >>>>Oradba Linux wrote: >>>> >>>> >>>> >>>>>Any major/minor issues to watch out for during the conversion especially >>>>>with regards to sql written specifically to RBO >>>> >>>>Strip out hints and retune each statement as required. >>> >>> >>>I wouldn't regard sql with hints as 'written especially for the CBO', >>>since with the exception of the rule hint they would run under the CBO. >> >>Earlier this year I did a one-month gig with a local telecom. Moved >>them from 8i RULE to 10g CBO. You'd likely be amazed how much of >>their SQL was hinted ... heavily hinted: And the CBO didn't like any >>of it. >>--
On reflection I think you are correct. Most of the hinting was related to index choice and join method.
I think what I meant by CBO didn't like it is that many of the queries ran far faster and more efficiently when the hints were removed and the CBO was free to query rewrite them to its little heart's contentment.
I have some examples but I am not at liberty to share them due to a non-disclosure agreement. One thing though was changes from nested loops to hash joins which was the case in quite a few of the queries.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Fri Dec 31 2004 - 23:16:52 CST