Practice 33 - Using SQL Tuning Health-Check Script (SQLHC)
Practice 33 - Using SQL Tuning Health-Check Script (SQLHC)
Practice 33
Practice Target
In this practice, you will use the SQL Tuning Health-Check Script.
Use this tool to quickly gather all the information that you need to diagnose specific query
performance issues.
The generated report helps you to diagnose the root cause, but it does not recommend fixing the
issue.
This free tool can be downloaded from Oracle support Doc ID 1366133.1.
Oracle Database 12c the Ultimate Guide to SQL Tuning, a course by Ahmed Baraka
Practice 33 - Using SQL Tuning Health-Check Script (SQLHC) P a g e |2
7. Run the following script as sysdba. Wait for the script to finish.
o When it prompts you to enter value for 1, enter ‘T’
o When it prompts you to enter value for 2, enter the value of the SQL ID
conn / as sysdba
@/media/sf_extdisk/sqlhc/sqlhc.sql
8. Check out the contents of the generated zip file. It should contain reports on the SQL statement
on concern.
9. Cleanup
host rm -r /media/sf_extdisk/sqlhc
Oracle Database 12c the Ultimate Guide to SQL Tuning, a course by Ahmed Baraka