Q

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?

Which column in the the tkprof ouput of pass, execute and fetch specifies the consistent gets? How do I decrease that value?
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 last published in November 2005

Dig Deeper on Oracle database performance problems and tuning

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close