Last 3 exeution duration of the same query
Hi,
Does anyone knows the query to find the last 3 execution time(duration) and plan of a particular query using the dba views ?
I am using the following but now want from history as well :
select inst_id,ELAPSED_TIME/EXECUTIONS "TIME_PER_EXECUTION"
from gv$sql
where sql_id='6r3sa21rtbxrb'
and EXECUTIONS> 0 ;
Best Regards,
Anurag
Does anyone knows the query to find the last 3 execution time(duration) and plan of a particular query using the dba views ?
I am using the following but now want from history as well :
select inst_id,ELAPSED_TIME/EXECUTIONS "TIME_PER_EXECUTION"
from gv$sql
where sql_id='6r3sa21rtbxrb'
and EXECUTIONS> 0 ;
Best Regards,
Anurag
0