Ask the Expert

Which column in tkprof specifies consistent gets?

Which column in the the tkprof ouput of pass, execute and fetch specifies the consistent gets? How do I decrease that value?

    Requires Free Membership to View

A legend appears near the top of each tkprof output file:
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
As you can see, consistent reads are reported as "query."

As for how to decrease that value, I'm tempted to say "by reducing the number of database block visits your query requires." There is no one way to reduce logical I/O. Experiment with different approaches, represented by different SQL, to a problem; the best-performing solution is usually the one that requires the fewest database block visits.

This was first published in November 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: