Tuesday 22 November 2016

To find plan hash value for SQL ID

select sql_id, child_number, plan_hash_value plan_hash, executions execs,
(elapsed_time/1000000)/decode(nvl(executions,0),0,1,executions) avg_etime,
buffer_gets/decode(nvl(executions,0),0,1,executions) avg_lio,
sql_text
from v$sql s
where sql_id='cdvxbyn5t3nsy';

No comments:

Post a Comment