just for reference:
SELECT KON_NR
FROM
LJ_KONS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 26 0.00 0.00 0 0 0 0
Execute 26 0.00 0.00 0 0 0 0
Fetch 26 0.00 0.00 0 78 0 26
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 78 0.00 0.01 0 78 0 26
Misses in library cache during parse: 2
... 1. From the TKPROF posted by Lasse, does it mean, that 24 out of 26 parses are
soft parses ?
....
yes. they are bad soft parses. they should not be done, there should have been 1 parse only.
... Therefore, for the tkprof posted by Lasse, can we attribute this wait
to be because of Parsing ? ...
no, you have taken a statement from Cary's book out of context and ask us to generalize with it, no, you cannot make that statement, we cannot attribute that wait to parsing.
3) there is not necessarily a connection between the two.
consider:
ops$tkyte%ORA10GR2> alter session set events '10046 trace name context forever, level 12';
Session altered.
ops$tkyte%ORA10GR2> select systimestamp from dual d1;
SYSTIMESTAMP
---------------------------------------------------------------------------
25-AUG-09 09.03.07.960925 AM -04:00
ops$tkyte%ORA10GR2> pause
ops$tkyte%ORA10GR2> select systimestamp from dual d2;
SYSTIMESTAMP
---------------------------------------------------------------------------
25-AUG-09 09.03.12.090191 AM -04:00
ops$tkyte%ORA10GR2> pause
ops$tkyte%ORA10GR2> select systimestamp from dual d3;
SYSTIMESTAMP
---------------------------------------------------------------------------
25-AUG-09 09.03.18.423713 AM -04:00
ops$tkyte%ORA10GR2> pause
ops$tkyte%ORA10GR2> disconnect
select systimestamp from dual d1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 0 0 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 4.02 4.03
<b>i waited 4 seconds between d1 and d2... you can see the timestamps</b>
********************************************************************************
select systimestamp from dual d2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 0 0 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 3 0.00 0.00
SQL*Net message from client 3 6.17 6.19
<b>I waited 6+ seconds between d2 and d3, I got my coffee mug this time...</b>
********************************************************************************
select systimestamp from dual d3
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 0 0 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 3.93 3.95
It is predominantly time spent in the client, not in the database