Skip to content

Instantly share code, notes, and snippets.

@RichVRed
Forked from ryanthames/hard_parsing.sql
Created April 28, 2017 23:56
Show Gist options
  • Select an option

  • Save RichVRed/3b4af223f8e8d4c2cdca09fc97fe20e9 to your computer and use it in GitHub Desktop.

Select an option

Save RichVRed/3b4af223f8e8d4c2cdca09fc97fe20e9 to your computer and use it in GitHub Desktop.
-- Value is in microseconds
-- Run this query at a couple regular intervals and take the delta to get
-- an idea of how much hard parsing is going on
select sn.statistic#, sn.name, s.value
from v$sysstat s, v$statname sn
where s.statistic# = sn.statistic#(+)
and sn.name in ('parse time cpu', 'parse count (hard)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment