ITPub博客

首页 > 数据库 > Oracle > 计算数据库有多少工作是在最优状态下进行的语句

计算数据库有多少工作是在最优状态下进行的语句

原创 Oracle 作者:xypincle 时间:2017-05-01 08:50:10 0 删除 编辑

  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博客 ” ,链接:https://blog.itpub.net/28878983/viewspace-2138243/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 索引的重建命令
请登录后发表评论 登录
全部评论

注册时间:2013-05-11

  • 博文量
    208
  • 访问量
    212338