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!

dba_hist_sqlstat DBA_HIST_SQLTEXT dba_hist_snapshot gap

ExorAug 18 2015 — edited Aug 18 2015

Hello,

I am trying to get some statistics on the execution of a particular SQL. I get the sql_id from DBA_HIST_SQLTEXT but I can't find that sql_id in dba_hist_sqlstat. Now I understand that not all SQL is captured by dba_hist_sqlstat but this SQL is responsible for 7% of total db activity and was executed 2300 times in the last 24hrs.


Is there another way to get executions stats for this SQL ID?

or

Can someone explain what are the rules based on which stats are stored in dba_hist_sqlstat?

Thank you all,

This post has been answered by ddf_dba on Aug 18 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2015
Added on Aug 18 2015
2 comments
977 views