Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: CBO irregularity
Rick,
One way I've used in the past to help mitigate the problem of execution plans changing from one environment to the next is:
Two points of note:
Hope this gives you some more ideas on how to overcome the issue.
Chris
PS Even doing this I've had 1 or 2 cases where the execution plan generated by the stored proc was different from what happened in live. Couldn't fully explain it must have been an optimizer funny. BTW it wasn't the "optimizer_goal = choose always used by PL/SQL" "feature" that we had to endure up until, 9i I believe.
Quoting Rick Stephenson <RStephenson_at_Ovid.com>:
> 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.
>
> 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 Tue Jun 08 2004 - 03:35:52 CDT