Database Tuning (MOSC)

MOSC Banner

Last 3 exeution duration of the same query

edited Oct 28, 2010 1:57AM in Database Tuning (MOSC) 1 commentAnswered
 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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center