計算資料庫有多少工作是在最優狀態下進行的語句

xypincle發表於2017-05-01

  1. select optimal_count,round(optimal_count * 100/total,2) optimal_perc,
  2. onepass_count,round(onepass_count * 100/total,2) onepass_perc,
  3. multipass_count,round(multipass_count * 100/total,2) multipass_perc
  4. from
  5. (select decode(sum(total_executions),0,1,sum(total_executions)) total,
  6. sum (optimal_executions) optimal_count,
  7. sum(onepass_executions) onepass_count,
  8. sum(multipasses_executions) multipass_count
  9. from v$sql_workarea_histogram
  10. where low_optimal_size > (64*1024));

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28878983/viewspace-2138243/,如需轉載,請註明出處,否則將追究法律責任。

相關文章