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

Home -> Community -> Usenet -> c.d.o.server -> Re: unexpected merge cartesian join

Re: unexpected merge cartesian join

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Thu, 1 Dec 2005 17:50:10 +0000 (UTC)
Message-ID: <dmnd4i$n6d$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>

<nicola.farina_at_info-line.it> wrote in message news:1133458801.702373.151130_at_g43g2000cwa.googlegroups.com...
>I could try but these are dynamically generated views.
> I tried setting the parameter
> alter session set "_optimizer_sortmerge_join_enabled"=false;
> and the cartesian merge goes away
> BUT
> what are the drawbacks of this "solution" ?
>

The drawback to that solution is that you may find some cases where you can't
do a sort/merge join when it's the only
efficient thing to do.

I'm having trouble working out why
that parameter exists. The best answer
I can come up with is that it's there so the developers can test some code paths
without putting in 'no_use_merge()' hints in their test scripts.

-- 
Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk/faq/ind_faq.html
The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Cost Based Oracle: Fundamentals

http://www.jlcomp.demon.co.uk/appearances.html
Public Appearances - schedule updated 4th Nov 2005
Received on Thu Dec 01 2005 - 11:50:10 CST

Original text of this message

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