Script:SQL调优健康检查脚本

以下脚本可以用于收集SQL调优的相关信息,包括统计信息、优化器参数等。

When executed for one SQL_ID, this script generates an HTML report with the results of a set of health-checks around the one SQL statement provided. Health-checks are performed over:

  • CBO Statistics for schema objects accessed by the one SQL statement being analyzed
  • CBO Parameters
  • CBO System Statistics
  • CBO Data Dictionary Statistics
  • CBO Fixed-objects Statistics

 

下载sqlhc脚本

 

示例输出HTML:

 

 


Posted

in

by

Tags:

Comments

4 responses to “Script:SQL调优健康检查脚本”

  1. sky13and23 Avatar
    sky13and23

    很好用,很强大

    1. ricky Avatar
      ricky

      只是说这个sql健康不健康~~不健康了要优化是啊~

  2. lin Avatar
    lin

    请问大师,这个脚本要怎么用呢?

    1. Maclean Liu Avatar

      放到sqlplus里直接执行,填入要调优的sql_id即可。

Leave a Reply

Your email address will not be published. Required fields are marked *