Hi,
I will explain What is the Automatic SQL Tuning and How to Automated SQL Tuning in this article.
Automatic SQL Tuning in Oracle
You can read the following article before this to learn What is the SQL Tuning Advisor and SQL Access Advisor.
Oracle database can identify high load SQL statements automatically that are good candidates for Tuning with 10g version via Automatic Database Diagnostic Monitor (ADDM).
This process can be summarized with the following image.
A brief description of the SQL tuning steps are as follows.
Automated SQL Tuning in Oracle
Step 1: AWR Top SQL identification is done and TOP SQLs are collected in the Workload Repository.
If you want to learn more detail about Workload Repository and its content, you should read the following article.
What is the Oracle AWR ( Automatic Workload Repository ) Report
Step 2: Automatic Database Diagnostic Monitor (ADDM) identifies high load SQL statements automatically.
Step 3: Run SQL Tuning Advisor to find a new, better execution plan.
if you haven’t read the SQL Tuning advisor article yet, you can read it by clicking this link.
Step 4: Review the new SQL Profiles, indexes and SQL Plan recommended by SQL Tuning Advisor, if they are better than the Old, you can accept SQL profile, create index and etc…
You should monitor these recommendations after implement, if they are not useful, you can drop or disable them again.
SQL Tuning process is automated and called “Automatic SQL Tuning” with Oracle Database 11g without requiring user intervention. Automatic SQL Tuning uses the AUTOTASK framework and runs every night by default.
This process can be summarized with the following image.
If the ACCEPT_SQL_PROFILES task parameter is set to TRUE, then all SQL Profiles can be implemented automatically, other recommendations (create new indexes, refresh stale statistics, or restructure SQL statements) are reported.
You can configure the Automatic SQL Tuning Task using Enterprise manager cloud control as follows.
Step -1: Open Automated Maintenance Tasks as follows.
All automated maintenance tasks are as follows. Click the Automatic SQL Tuning .
Automatic SQL Tuning task can be configured in this step.
You can enable or disable Automatic SQL Tuning (SYS_AUTO_SQL_TUNING_TASK )
You can enable or disable Automatic Implementation of SQL Profiles.
Click the View Report button to see All Analyzed SQLs.
All Analyzed SQLs are as follows. You can review ALL SQLs’ status and SQL Profile, Index, Restructure SQL, Alternative Plan and other status.
You can implement all SQL Profiles by clicking the Implement All SQL Profiles button.
I will continue to explain Performance tuning tutorial in the next articles.
Next post link about Performance Tuning Tutorial is as follows.
Do you want to learn Top 30 SQL Tuning Tips and Tricks, then read the following articles.
3 comments
Pingback: What is the SQL Access Advisor and How to Run SQL Access Advisor | Oracle Database Performance Tuning Tutorial -11 - IT Tutorial
Pingback: Performance Tuning and SQL Tuning Tutorial in the Oracle Database - IT Tutorial
Pingback: ORA-13841: SQL profile named already exists for a different signature/category pair - IT Tutorial