Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Sincere Advice on Sql Plan - Thanks -Please Help in Understanding
Juan
There are several query like this and I am giving one of the recent trace. First is the TKPROF output and second is Trace Data
<<<<<<<<<<<<<<<<<First>>>>>>>>>>>>>>>>>>>>>>>>SELECT DECODE(lt.t_value, NULL, gr.r_value, lt.t_value) description, TO_CHAR(gr.id) id FROM
call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 10 0.01 0.00 0 0 0 0 Execute 5 0.00 0.00 0 0 0 0 Fetch 60 0.29 0.31 0 1240 0 1155 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 75 0.30 0.32 0 1240 0 1155
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 722 (SMISHRA)
Rows Execution Plan
------- --------------------------------------------------- 0 SELECT STATEMENT GOAL: CHOOSE 0 SORT (ORDER BY) 0 HASH JOIN (OUTER) 0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OFPARSING IN CURSOR #2 len=273 dep=0 uid=722 oct=3 lid=722 tim=1097075480899747 hv=179724349 ad='8dab9050' SELECT DECODE(lt.t_value, NULL, gr.r_value, lt.t_value) description, TO_CHAR(gr.id) id FROM g_regions gr, l_translations lt WHERE sub_type = 2419 AND lt.geo_id (+) = gr.id AND lt.l_type_gr_id (+) = 291 ORDER BY description
'G_REGIONS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'GR_IFK' (NON-UNIQUE) 0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'L_TRANSLATIONS'
Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ SQL*Net message to client 1 0.00 0.00 SQL*Net message from client 1 0.00 0.00 <<<<<<<<<<<<<<<Trace Data>>>>>>>>>>>>>>>>>>>>>>>>>>
WAIT #2: nam='SQL*Net message to client' ela= 4 p1=675562835 p2=1 p3=0 WAIT #2: nam='SQL*Net message from client' ela= 4103 p1=675562835 p2=1 p3=0 =====================
WAIT #2: nam='SQL*Net message from client' ela= 9504 p1=675562835 p2=1 p3=0 STAT #2 id=1 cnt=231 pid=0 pos=0 obj=0 op='SORT ORDER BY ' STAT #2 id=2 cnt=231 pid=1 pos=1 obj=0 op='HASH JOIN OUTER ' STAT #2 id=3 cnt=231 pid=2 pos=1 obj=31778 op='TABLE ACCESS BY INDEX ROWID G_REGIONS ' STAT #2 id=4 cnt=231 pid=3 pos=1 obj=34964 op='INDEX RANGE SCAN ' STAT #2 id=5 cnt=239 pid=2 pos=2 obj=38677 op='TABLE ACCESS FULL L_TRANSLATIONS '
Please I am not a Good Tuning expert and really facinf big application slowness issue. Do you think that it is due to network
tHanks in Advance for all observation , time and consideration.
Sanjay
Juan Carlos Reyes Pacheco <jreyes_at_dazasoftware.com> wrote:
Hi why don't you paste the raw trace file
Juan Carlos Reyes Pacheco
OCP
-------Original Message-------
From: smishra_97_at_yahoo.com
Date: 10/12/04 14:46:26
To: oracle-l_at_freelists.org
Subject: Sincere Advice on Sql Plan - Thanks
I had one FOrms application running using Oracle 9iAS Releas1 and 9i Rel 1DB I got user complaining that one forms is very slow and after tracing I got the following kind of TKPROF output for lot of queries
call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ----------
TIA
-- http://www.freelists.org/webpage/oracle-l --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -- http://www.freelists.org/webpage/oracle-lReceived on Tue Oct 12 2004 - 16:16:06 CDT
![]() |
![]() |