SQL Tuning Health-Check Script (SQLHC)
Ahmet Duru?z
Senior Oracle , PostgreSQL , MySQL DBA | Instructor | Exadata Administrator | Oracle ACE ??
Also known as SQLHC, this tool is used to check the environment in which a single SQL statement is running, Cost-based Optimizer (CBO) statistics, schema object metadata, configuration parameters, and other elements that can affect the performance of a SQL .
SQLHC does not require any license and is free.?You can download the script from the link below.
The health check with the script is carried out for the following elements.
With this script, you can analyze a query in detail.?You can see system-wide recommended actions for better query operation.
You can run the script as follows.?The 1st parameter is the Oracle Pack license in the current database (in the form of Tuning, Diagnostics or None [T|D|N]), the 2nd parameter is the sql_id of the query to be analyzed.
# sqlplus / as sysdba
SQL> @/home/oracle/sqlhc.sql T 9dhprx5z3m36h