Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion CBO & different execution plans
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DA Morgan  
View profile  
 More options Mar 12 2007, 6:16 pm
Newsgroups: comp.databases.oracle.server
From: DA Morgan <damor...@psoug.org>
Date: Mon, 12 Mar 2007 15:16:51 -0700
Local: Mon, Mar 12 2007 6:16 pm
Subject: Re: CBO & different execution plans

Charles Hooper wrote:
> *
> ERROR at line 1:
> ORA-30394: source statement identical to the destination statement
> ORA-06512: at "SYS.DBMS_ADVANCED_REWRITE", line 29
> ORA-06512: at "SYS.DBMS_ADVANCED_REWRITE", line 185
> ORA-06512: at line 2

> It would be nice to use DBMS_ADVANCED_REWRITE to add a hint, such as
> (for the OP):
>   /*+ LEADING (HTS_ASSAY HTS_COMPOUND_LOT HTS_ASSAY_RESULT) */

> And leave the rest of the SQL statement alone.

> Charles Hooper
> PC Support Specialist
> K&M Machine-Fabricating, Inc.

I agree. Maybe you could fool the CBO by making some inconsequential
change so that it would see the statement as different. For example:

For example:
WHERE C2+0 = x+0;

Though, of course, that can cause unintended collateral damage.
--
Daniel A. Morgan
University of Washington
damor...@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.