Problem solve Get help with specific problems with your technologies, process and projects.

Interpreting TKPROF results

How do I interpret the TKPROF result? Give me the basic idea behind it.

TKPROF shows, for each SQL statement in the trace file, the total number of parse, execute, and fetch calls, and the following statistics for each: CPU time, elapsed time, disk reads, consistent gets, current-mode gets, and number of rows affected. The meaning of each should be obvious, with the possible exception of the two types of gets. "Consistent gets" are block gets to satisfy a query. "Consistent" refers to the fact that the block may be reconstructed to reflect the state of the block as of the instant that the query was executed (determined by the system change number, or SCN, that was in effect at that time). "Current-mode gets" are gets of a database block as it exists at the time of the operation, usually for DML (insert, update, delete). In Oracle9i TKPROF, you can also get information on wait events if the trace file contains them.

Interpretation of the results generally consists of looking for the highest time and resource consumption, and then determining if they can be reduced; for example, a query that does many disk I/Os as a result of a full-table scan will probably run faster after creation of an appropriate index on the table being scanned.

Dig Deeper on Oracle database performance problems and tuning

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.