Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Query with buffer (sorts) taking age to complete.
See Chapter 6 - Transitive closure.
When you have a problem like this, use dbms_xplan() to get the more detailed exeuction plan than you don't get from autotrace (until 10.2). In this case I think you would find that you have a join predicate that disappears (to produce the cartesian join) because transitive closure has been used to copy a filter predicate from one side of the join to the other.
As it says in chapter 6 (summarised in Appendix A)
On the other hand, if query_rewrite_enabled = true, then 8i and 9i will keep the join predicate even in this case, hence ...
Regards
Jonathan Lewis
http://www.oracle.com/technology/community/oracle_ace/ace1.html#lewis
The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html
Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
> ----- Original Message -----
> From: "The Human Fly" <sjaffarhussain_at_gmail.com>
> To: "John Clarke" <jclarke_at_centroidsys.com>; "oracle-l"
> <oracle-l_at_freelists.org>
> Sent: Saturday, March 25, 2006 3:14 PM
> Subject: Re: Query with buffer (sorts) taking age to complete.
>
> Thanks list for your interest in solving the issue.
>
> However, I have resolved the issues. I took trace event 10053 with
> level 1 on AIX as well HP-SUPERDOM and quick to spot that the
> parameter 'query_rewirte_enabled' was set to FALS on HPSUPERDOM. I
> changed it to TRUE and the sql runs like as its was.
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Mar 26 2006 - 02:34:00 CST
![]() |
![]() |