Advertisement

12.13.2007 at 07:23PM PST, ID: 23022837
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Analysing tkprof results from a web session?

Asked by DiscoNova in Oracle 9.x

Tags: , ,

I set up trace on a web application I'm working on. I manually refreshed the page five times, and got the following results that are included in the "code snippet" (the actual SQL (which is an "INSERT AS SELECT" executed through a database link into a temporary table after which more operations on the result set are performed) has been snipped):

I'm a bit baffled by the results.
1) Does this mean that the first time I ran this, a hard parse was done on the query, and the following refreshes were only soft parses?
2) Am I to expect (due to the stateless nature of web applications) that since this query is executed every time the report is generated, that the parses will always be this "high" compared to the executes?

The reason I'm asking these is that I'm a lot more used to seeing just a few parses compared to the number of executes/fetches in tkprof reports. Of course, normally I don't run the tool on web sessions, so I'm propably "out of my turf" on this one.

The system is Oracle 9.2.0.8 on Win32 platform accessed through Apache+mod_plsql.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        5      0.01       0.01          0          0          0           0
Execute      5      0.70       0.72          0      45388      10058        3560
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total       10      0.71       0.73          0      45388      10058        3560
 
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 47     (recursive depth: 1)
 
Rows     Row Source Operation
-------  ---------------------------------------------------
    712  COUNT  
    712   VIEW  
    712    SORT ORDER BY 
    712     MERGE JOIN CARTESIAN 
    712      TABLE ACCESS BY INDEX ROWID APPLICATION 
    713       INDEX RANGE SCAN APPLICATIONS_SEARCH_GENERIC2 (object id 33223)
   2465        INDEX RANGE SCAN APPLICATION_VACANCY_IX (object id 33487)
      0        INDEX UNIQUE SCAN APPLICATION_VACANCY_LINK_PK (object id 30748)
    712      BUFFER SORT 
      1       TABLE ACCESS FULL DUAL 
 
 
Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to dblink                       3        0.00          0.00
  SQL*Net message from dblink                     3        0.00          0.00
********************************************************************************
 
Keywords: Analysing tkprof results from a web se…
 
Loading Advertisement...
 
[+][-]12.13.2007 at 10:03PM PST, ID: 20469983

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 9.x
Tags: tkprof, execute, hard
Sign Up Now!
Solution Provided By: sdstuber
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906