Hi All,
What is your strategy in order to find slow queries in the database? Which sql queries do you use? For recent queries, the first thing come to mind v$sql view. The following query get the most average time queries.
select (elapsed_time/1000000)/decode(executions, 0, 1, executions), sql_text from v$sql order by 1 desc;
Thanks