-
select optimal_count,round(optimal_count * 100/total,2) optimal_perc,
-
onepass_count,round(onepass_count * 100/total,2) onepass_perc,
-
multipass_count,round(multipass_count * 100/total,2) multipass_perc
-
from
-
(select decode(sum(total_executions),0,1,sum(total_executions)) total,
-
sum (optimal_executions) optimal_count,
-
sum(onepass_executions) onepass_count,
-
sum(multipasses_executions) multipass_count
-
from v$sql_workarea_histogram
-
where low_optimal_size > (64*1024));
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28878983/viewspace-2138243/
,如需转载,请注明出处,否则将追究法律责任。