SQL Tuning Health-Check Script (SQLHC) (文档 ID 1366133.1)

Posted 子鱼猴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL Tuning Health-Check Script (SQLHC) (文档 ID 1366133.1)相关的知识,希望对你有一定的参考价值。

  1. Login to the database server and set the environment used by the Database Instance
  2. Download the "sqlhc.zip" archive file and extract the contents to a suitable directory/folder
  3. Connect into SQL*Plus as SYS, a DBA account, or a user with access to Data Dictionary views and simply execute the "sqlhc.sql" script. It will request to enter two parameters:

    1. Oracle Pack License (Tuning, Diagnostics or None) [T|D|N] (required)
      If site has both Tuning and Diagnostics licenses then specify T (Oracle Tuning pack includes Oracle Diagnostics)

    2. A valid SQL_ID for the SQL to be analyzed.  

For Example:

# sqlplus / as sysdba
SQL> START sqlhc.sql T djkbyr8vkc64h

以上是关于SQL Tuning Health-Check Script (SQLHC) (文档 ID 1366133.1)的主要内容,如果未能解决你的问题,请参考以下文章

翻译:《Pro SQL Server Internals, 2nd edition》CHAPTER 7 Designing and Tuning the Indexes

如何用 SQL Tuning Advisor (STA) 优化SQL语句

SQL Tuning for SAP

禁用sql tuning advisor功能

禁用sql tuning advisor功能

SQL Tuning 基础概述10