Pls help me analyze tkprof output
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Pls help me analyze tkprof output

  1. #1
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586

    Pls help me analyze tkprof output

    Please help me analyze this TKPROF output

    thanks
    Jigar
    Attached Files Attached Files
    "High Salaries = Happiness = Project Success."

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    The problem is it's a 26 table outer join. I suspect you should be happy with only 2 minutes of query time...

    I'd nominate this query for Fox's new special "When Bad SQL Attacks..."
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    Yep. Probably this is record number of sort-merge loops,
    that i have seen.

  4. #4
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586
    Shetakov and Marist
    thanks for the responses. I realize that there are 26 table outerjoins.unfortunately this query is generated by Crystal Reports. Monday, we have a call with the vendor who wrote this query. Can you please give me suggestions on what to tell the vendor - as far as what type of changes they need to make?

    I am also including my report.txt as well.
    Attached Files Attached Files
    "High Salaries = Happiness = Project Success."

  5. #5
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    It's simple, the query needs to change. I haven't the slightest idea HOW the query should change because I don't know anything about the application.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  6. #6
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586
    Marist,
    can you pls look at the report.txt and see everything is ok and if you can make recomendations?

    thanks
    Jigar
    "High Salaries = Happiness = Project Success."

  7. #7
    Join Date
    Feb 2003
    Posts
    85
    jigarlakhani
    Occupation: Senior Oracle DBA
    Interests: Solaris, HP, Performance Tuning

    what kind of senior you are lol

  8. #8
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    Jeff had said to u :
    U have to change select statment.
    Statspack report cannot solve this problem at all.

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