Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Analyze the tkprof output
This is a multi-part message in MIME format.
------=_NextPart_000_008B_01BF8F37.3AC27920 Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
HI , ALL !
I'm having a pretty strange tkprof output of a SQL trace .
There is a Java program that runs SQL queries , and it looks like =
each statement is parsed 3 times for each execution when we're not using =
bind variables ,=20
and each statement is parsed 2 times when we're using bind variables =
.
There is also an execution for every fetch of a query .
We use Oracle 8.1.5 on Windows2000 .
Both the Oracle8i and Windows are new for me . I previously used =
Oracle8 on HP-UX and i never seen this kind of tkprof results .
Please help !
TIA=20
Here is what i have in my *.prf file :
Select ename,emp_id
from
emp where ename like 'SMITH%' order by ename
call count cpu elapsed disk query current = rows
Misses in library cache during parse: 0
When we use bind variables in the Java program i see the following :
SELECT emp_data=20
from
emp where emp_id=3D:1
call count cpu elapsed disk query current = rows
Thanks a lot in advance !!
------=_NextPart_000_008B_01BF8F37.3AC27920 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" =http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <BLOCKQUOTE=20
<DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>HI , ALL !</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I'm having a pretty strange tkprof =output of a=20
queries , and it looks like each statement is parsed 3 times for =
each=20
execution when we're not using bind variables , </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and each statement is parsed 2 =
times =20
when we're using bind variables .</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>There is also an execution for every =
fetch of a=20
query .</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>We use Oracle 8.1.5 on Windows2000 =
.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Both the Oracle8i and Windows are new =
for me . I=20
previously used Oracle8 on HP-UX and i never seen this kind of tkprof =
results=20
.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please help !</FONT></DIV> <DIV><FONT face=3DArial size=3D2>TIA </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Here is what i have in my *.prf file=20:</FONT></DIV>
---------- =20
=
----------------------------------------<BR>Parse = =20
0 =20 0 =20 0 =200<BR>Execute 5 =20 0.00 =20 0.00 =20
0 =20 0 =20 0 =200<BR>Fetch =20 5 =
0 =20 5 =20 0 10<BR>-------=20 ------ --------------------------------- -------- ---------- = ----------=20
0</FONT></DIV>
<DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>When we use bind variables in =the Java=20
---------- =20
=
-----------------------------------------<BR>Parse  =; =20
0 =20 0 =20 0 =200<BR>Execute = 4 =20
0 =20 0 =20 0 =200<BR>Fetch =20 4 =
4<BR>-------=20 ------ -------- ---------- ---------- ---------- = ---------- =20
-----------------------------------------------<BR>total  =; =20 16 =
![]() |
![]() |