I will explain How to Run SQL Tuning Advisor via Enterprise Manager Cloud Control in this article.
Run SQL Tuning Advisor
Read the previous article before this with the following link, if you don’t know what is the SQL Tuning Advisor.
Run SQL Tuning Advisor via Enterprise Manager Cloud Control
You can run SQL Tuning advisor both for Single SQL Statements and for lots of SQL statements same time. I have created SQL Tuning Task at the previous article manually.
I will create SQL Tuning task using Enterprise manager Cloud control with the following steps.
Step -1: Open SQL Tuning Advisor tab as follows.
Step -2: You should specify the parameters to schedule a job for running SQL Tuning Advisor as follows.
You can choose existing SQL Tuning Set, Historical SQL from AWR or TOP Activity for SQL Tuning Set parameter.
SQL Tuning Set is an database object which is collection of SQL Statements that you can create for tuning.
Click the Historical SQL (AWR) link to select some SQL statements from AWR.
Step -3: I have chosen Historical SQL from AWR as follows, and selected some SQL Statements for Tuning as follows.
Click the Schedule SQL Tuning Advisor Button to continue.
Step -4: SQL Statements are specified for Tuning as follows. Now you can set other Scheduler parameters, then Click Submit button to create SQL Tuning Advisor job.
SQL Tuning Advisor task is processing as follows.
Step -5: SQL Tuning Advisor task is completed. You can display the SQL Tuning Result Summary as follows.
Review this report detailed, and then decide for any Tuning.
Click the Show All Results button.
Step -6: All results are as follows. You can implement all SQL Profiles or Validate All Profiles with SPA.
I have reviewed and decided to implement ALL SQL Profiles.
Click the Implement All SQL Profiles button.
Click Yes button to confirm this task.
Step -7: The Recommended SQL profiles has been created as follows.
You can view the Recommendations detailed by clicking View Recommendation button as follows.
You can compare Explain plans by clicking the Glasses mark at the righ side as follows.
Comparision of the explain plans are as follows.
You can review the Original Explain plan and New Explain plan with SQL Profile.
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,756 views last month, 2 views today