Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding query access frequency or how many times a query has been executed?

720450Dec 28 2009 — edited Dec 28 2009
Dear Experts

I need to find the total number of access frequency of individual queries that are requested by the users say at a particular time.

Say there are 20 distinct queries requested in the time difference of 3 hours. All of the 20 queries or some of the queries may be requested for more than 2/3 times at that time by other users. By the way say query Q1 is requested 5 times at that so its query access frequency or how many times this query is executed is 5.

From where and how can I can find this counting of query access frequency or how many times a query has been executed at particular time or a session?

Normally we know the there SQL history dynamic performance views or if it can be possible to query the Shared pool library cache for SQL area it may be possible to find the total number of execution time for a query. But how to find that if anyone knows, please help me about this.

Regards-
Engr. A.N.M. Bazlur Rashid
OCP DBA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2010
Added on Dec 28 2009
3 comments
1,514 views