Skip to content

Instantly share code, notes, and snippets.

@zz
Created October 11, 2013 08:29
Show Gist options
  • Save zz/6931461 to your computer and use it in GitHub Desktop.
Save zz/6931461 to your computer and use it in GitHub Desktop.
select sql.last_load_time, sql.elapsed_time/1000000, sql.sql_text from v$sql sql where sql.last_load_time>to_char(systimestamp - INTERVAL '1' HOUR, 'YYYY-MM-DD/HH24:MI:SS') and sql.elapsed_time > 1000000 * 60 order by sql.elapsed_time desc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment