Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: CBO irregularity
It's what CBO is built to do: take into account a tremendous number of
variables, each of which has a right to influence the optimizer's choice for
best plan. CBO tends to work pretty well when (a) you give it the
information it needs, and (b) you let it do its job (okay, and maybe also
"(c) you wait 'til 9.2 to use it").
By (a), I mean things like:
By (b), I mean things like:
If you really want plan stability, stored outlines can give you that. But the adaptive intelligence of a well-informed and properly functioning CBO is a smarter long-term decision except in rare cases.
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Nullius in verba
Upcoming events:
- Performance <http://www.hotsos.com/courses/PD101.php> Diagnosis 101: 6/22
Pittsburgh, 7/20 Cleveland, 8/10 Boston
- SQL Optimization <http://www.hotsos.com/courses/OP101.php> 101: 5/24 San
Diego, 6/14 Chicago, 6/28 Denver
- Hotsos Symposium 2005: March 6-10 Dallas
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Rick Stephenson
Sent: Monday, June 07, 2004 2:36 PM
To: oracle-l_at_freelists.org
Subject: CBO irregularity
The CBO has been nothing short of a pain in the butt to me. Going from Development to QA to a live environment achieves unexpected results. It seems that you never know what you are going to get when it comes to an execution plan. The developers run Oracle on their Windows box and the execution path is one way, but when it gets moved to a QA environment it chooses another way. At least with the RULE base optimizer you know what you are going to get.
Sometimes I think I am the only one with this problem. How do you work this? Do you always use hints, do you use stored outlines..?
Thanks,
Rick Stephenson
-- 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 Mon Jun 07 2004 - 15:07:17 CDT
![]() |
![]() |