Is there any way to map each of the SQL line to each of the Explain plan line..?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Is there any way to map each of the SQL line to each of the Explain plan line..?

  1. #1
    Join Date
    Jul 2002
    Posts
    205

    Is there any way to map each of the SQL line to each of the Explain plan line..?

    I have the big SQL and also I have the Explain plan for the same.....


    Is there any way to map each of the SQL line to each of the Explain plan..?

  2. #2
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    Yes. EXPLAIN PLAN is meant for that purpose only.

    Tamil

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Well, not really. Sometimes you'd get multiple lines of the SQL being implemented as a single step in the explain plan, and sometimes the reverse.

    Yopu have to recognise that the SQL (being a 4GL) is a statement of what result set you want, and the explain plan is like a procedural pseudo-code for how the optimizer is going to get that result for you, so you shouldn't expect a close correlation.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  4. #4
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Yes ofcourse there is close relation between SQL and PLAN but not with number of lines in SQL and PLAN .. but in terms of operation/way of join and so..

    Abhay.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width