When you want to see what objects are the most often full scanned, use this:
select object_name,count(*) runs from dba_hist_sql_plan plansql, dba_hist_sqlstat sqlstat
where operation='TABLE ACCESS' and options='FULL' and object_owner='<schema>'
and plansql.sql_id=sqlstat.sql_id
group by object_name
order by runs desc
/
Then, you can try to identify the most often issued sql statement:
select distinct sqlstat.sql_id, count(*) FOUND_IN_AWR,sqlarea.sql_text from dba_hist_sql_plan plansql, dba_hist_sqlstat sqlstat, v$sqlarea sqlarea
where operation='TABLE ACCESS' and options='FULL' and object_name ='<found in part1>' and object_owner='<schema>'
and plansql.sql_id=sqlstat.sql_id
and plansql.sql_id = sqlarea.sql_id
group by sqlstat.sql_id,sqlarea.sql_text
order by FOUND_IN_AWR desc
/
select object_name,count(*) runs from dba_hist_sql_plan plansql, dba_hist_sqlstat sqlstat
where operation='TABLE ACCESS' and options='FULL' and object_owner='<schema>'
and plansql.sql_id=sqlstat.sql_id
group by object_name
order by runs desc
/
Then, you can try to identify the most often issued sql statement:
select distinct sqlstat.sql_id, count(*) FOUND_IN_AWR,sqlarea.sql_text from dba_hist_sql_plan plansql, dba_hist_sqlstat sqlstat, v$sqlarea sqlarea
where operation='TABLE ACCESS' and options='FULL' and object_name ='<found in part1>' and object_owner='<schema>'
and plansql.sql_id=sqlstat.sql_id
and plansql.sql_id = sqlarea.sql_id
group by sqlstat.sql_id,sqlarea.sql_text
order by FOUND_IN_AWR desc
/
1 comment:
http://markonzo.edu http://www.rottentomatoes.com/vine/showthread.php?p=17358590 http://blog.bakililar.az/infraredsauna/ misgivings http://www.inthesetimes.com/community/profile/53571/ http://aviary.com/artists/Helzberg-Diamon http://blog.bakililar.az/infraredheaters/ frequented http://vmtoolkit.com/user/Profile.aspx?UserID=148542 http://blog.bakililar.az/helzbergdiamonds90/ fence http://clr-h.jp/members/Sole-Treadmills.aspx
Post a Comment