473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Difficulty to interpret a TKPROF output

Hello,

One of my queries running with Oracle 8.1.7.4 on a SPARC machine with SunOS
5.8 has been
traced and TKPROF gave me the following result for PEF stats :

Need to say that query is a simple SELECT statement using a WHERE clause
parametrized with bind vars
given to Oracle through JDBC Thin Driver

call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
Parse 590 0.23 0.23 0 0 0
0
Execute 590 0.30 0.29 0 0 0
0
Fetch 590 0.37 0.35 0 1154 4616
544
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
total 1770 0.90 0.87 0 1154 4616
544

Misses in library cache during parse: 1
Optimizer goal: CHOOSE

I wanted to know why that query has so many parses.

Thanx for answers.

Sebastian.
Jul 19 '05 #1
2 6906
toto4UK wrote:
Hello,

One of my queries running with Oracle 8.1.7.4 on a SPARC machine with SunOS
5.8 has been
traced and TKPROF gave me the following result for PEF stats :

Need to say that query is a simple SELECT statement using a WHERE clause
parametrized with bind vars
given to Oracle through JDBC Thin Driver

call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
Parse 590 0.23 0.23 0 0 0
0
Execute 590 0.30 0.29 0 0 0
0
Fetch 590 0.37 0.35 0 1154 4616
544
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
total 1770 0.90 0.87 0 1154 4616
544

Misses in library cache during parse: 1
Optimizer goal: CHOOSE

I wanted to know why that query has so many parses.

Thanx for answers.

Sebastian.

Bind variables - your code doesn't have them, and needs to be parsed
every time again. One exec = one parse...

--
Regards, Frank van Bortel

Jul 19 '05 #2
Frank <fv********@netscape.net> wrote in message news:<bl**********@news4.tilbu1.nb.home.nl>...
toto4UK wrote:
Hello,

One of my queries running with Oracle 8.1.7.4 on a SPARC machine with SunOS
5.8 has been
traced and TKPROF gave me the following result for PEF stats :

Need to say that query is a simple SELECT statement using a WHERE clause
parametrized with bind vars
given to Oracle through JDBC Thin Driver

call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
Parse 590 0.23 0.23 0 0 0
0
Execute 590 0.30 0.29 0 0 0
0
Fetch 590 0.37 0.35 0 1154 4616
544
------- ------ -------- ---------- ---------- ---------- ---------- ------
----
total 1770 0.90 0.87 0 1154 4616
544

Misses in library cache during parse: 1
Optimizer goal: CHOOSE

I wanted to know why that query has so many parses.

Thanx for answers.

Sebastian.

Bind variables - your code doesn't have them, and needs to be parsed
every time again. One exec = one parse...


The following post is incorrect. Notice that "misses in library cache
during parse" is equal to 1. You are seeing 590 total parses, of
which 1 was a hard parse. The remaining 589 parses are what is known
as soft-parses.

The reason why you have so many parses is because the client is
issuing the OCI oparse() call, or the equivalent in java. If this is
OCI or java code, there are ways to get around execution of the parse
calls. If this is a C/C++ program, there are precompiler options that
will prevent the unnecessary parse calls.

If you didn't have bind variables, you would see "misses in library
cache during parse" equal 590.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: matt307 | last post by:
I'm doing a login form and i am trying to get it to post to a page that would vary based on the username given. I have figure out how to display all the info once it is posted. I mean i know how...
9
by: python newbie | last post by:
Can anyone tell me why this would cause "Invalid Number of Parameters" while trying to compile (or interpret or whatever) import os...
0
by: avinashdurge | last post by:
whether ORACLE forget to supply tkprof with 9i 0 and 1 release? -- Posted via http://dbforums.com
0
by: Vissu | last post by:
Hi, I have tkprof output with non-recursive and recursive overall timings. I understand that when PLSQL calls sql statements it is considered as recursive time. My question is the time being...
4
by: Befuddled | last post by:
I am writing a function to have its argument, HTML-containing string, return a DOM 1 Document Fragment, and so it seems the use of regular expressions (REs) is a natural. My problem is that the...
3
by: wheresjim | last post by:
I am trying this project out: http://www.codeproject.com/useritems/javacsharp.asp I am having difficulty building parts of it with Visual Studio .NET 2003 because of a post-build step that...
2
by: hup | last post by:
One of my Linux (CentOS) server stop interpret php code any more. I did try to compile and installed other version of php, but it's still not working. # cat /tmp/phpinfo.php <? phpinfo() ?>...
2
by: nkumarin001 | last post by:
Hi, My oracle version is 9.0.1.1.1 I am trying to run TKPROF utility. In book i read that TKPROF utility is a stand-alone utility that is executed directly from the operating system prompt...
2
by: toto4UK | last post by:
Hello, One of my queries running with Oracle 8.1.7.4 on a SPARC machine with SunOS 5.8 has been traced and TKPROF gave me the following result for PEF stats : Need to say that query is a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.