Oracle查看歷史執行計劃
阿新 • • 發佈:2018-02-27
Oracleselect b.instance_number,
b.snap_id,
a.begin_interval_time,
a.end_interval_time,
b.sql_id,
b.plan_hash_value,
b.parsing_schema_name,
b.executions_delta,
b.rows_processed_delta,
round(b.elapsed_time_delta / decode(b.executions_delta,0,1,b.executions_delta),0) as avg_elapsed_time,
round(b.cpu_time_delta / decode(b.executions_delta,0,1,b.executions_delta),0) as avg_cpu_time,
round(b.buffer_gets_delta / decode(b.executions_delta,0,1,b.executions_delta),0) as avg_buffer_gets,
round(b.iowait_delta/decode(b.executions_delta,0,1,b.executions_delta),0) as avg_iowait,
round(b.disk_reads_delta/decode(b.executions_delta,0,1,b.executions_delta),0) as avg_disk_reads,
round(b.ccwait_delta/decod
b.snap_id,
a.begin_interval_time,
a.end_interval_time,
b.sql_id,
b.plan_hash_value,
b.parsing_schema_name,
b.executions_delta,
b.rows_processed_delta,
round(b.elapsed_time_delta / decode(b.executions_delta,0,1,b.executions_delta),0) as avg_elapsed_time,
round(b.buffer_gets_delta / decode(b.executions_delta,0,1,b.executions_delta),0) as avg_buffer_gets,
round(b.iowait_delta/decode(b.executions_delta,0,1,b.executions_delta),0) as avg_iowait,
round(b.disk_reads_delta/decode(b.executions_delta,0,1,b.executions_delta),0) as avg_disk_reads,
Oracle查看歷史執行計劃