【发布时间】:2018-06-25 12:59:39
【问题描述】:
谁能告诉我什么时候应该使用gather_plan_statistics 提示或什么时候应该使用解释计划。 collect_plan_statistics 提示的实际目的是什么。
【问题讨论】:
标签: sql oracle sql-execution-plan
谁能告诉我什么时候应该使用gather_plan_statistics 提示或什么时候应该使用解释计划。 collect_plan_statistics 提示的实际目的是什么。
【问题讨论】:
标签: sql oracle sql-execution-plan
是的,它看起来很混乱,但很简单:
详情请见this question。
【讨论】:
更好的选择是生成 SQL 监视器报告。 SQL 会被自动监控,因此无需使用提示重新运行。 SQL Monitor 报告提供的信息比 gether_plan_statistics 多得多。 最后,在执行并行查询时,gather_plan_statistics 中的统计信息不可靠。
【讨论】: