PARSINGが10回以上のSQL文を検索したい
select substrb(sql_text,1,49) SQL_TEXT
,to_char(executions,'99999999') EXECS
,to_char(parse_calls,'99999999') PARSED
,to_char(parse_calls*100/executions,'9999.99') "%PARSED"
from v$sqlarea
where sql_text not like '%sys.%'
and sql_text not like '%$%'
and parse_calls >= 10
and executions > 0
order by executions desc,parse_calls/executions desc;
- ポイント
-
PARSINGはCPU負荷の原因になる。
PARSING回数の多いSQL文を突き止め、アプリケーションの修正が必要かどうか確かめる

