440 likes | 649 Views
Session id: 40150. Turbocharge your Database: Use the Oracle Database 10 g SQLAccess Advisor. Dr. Lilian Hobbs Summary Management Product Manager Oracle Corporation. Database Performance. Could your database run faster? Do you have the best set of indexes?
E N D
Session id: 40150 Turbocharge your Database: Use the Oracle Database 10g SQLAccess Advisor Dr. Lilian HobbsSummary Management Product Manager Oracle Corporation
Database Performance • Could your database run faster? • Do you have the best set of indexes? • Have you created any materialized views?
Want to do this – But • Don’t have the time to gather the data
Want to do this – But • Don’t have the time to gather the data • Workloads change so not sure what is best
Want to do this – But • Don’t have the time to gather the data • Workloads change so not sure what is best • Not sure which indexes and mv’s to create
Want to do this – But • Don’t have the time to gather the data • Workloads change so not sure what is best • Not sure which indexes and mv’s to create • Little experience creating mv’s but happy creating indexes
SQL Access Advisor Overview Solution What indexes, MVs do I need to optimize my entire workload? SQL Access Advisor Component of CBO No expertrequired DBA Provides implementation script
What does it Recommend SQL Access Advisor Workload Indexes Materialized Views Materialized Views Log
Try the SQLAccess Advisor • Based upon the Oracle 9i Advisor • Part of Oracle Database 10g Server Mangeability • Generates recommendations • fast process, no long waits for information • choose recommendations to implement • automatically using OEM • generate a SQL script • Interfaces • completely new GUI interface • command line
Steps to use SQLAccess Advisor Create a Task (transparent in Enterprise Manager) • optionally define parameters Create a Workload • optionally define workload parameters Generate Recommendations Optionally implement recommendations
What is the Task • Task is where all results are stored • Can keep tasks and their results • In Enterprise Manager the task is transparent • can give it a name • Configure a task as a template for new tasks (command line only)
Workload • SQLAccess Advisor can use the following workload sources • Current contents of the SQL cache • Hypothetical (specify schema(s) in the database) • User-Defined (in a table) • Add SQL statements to a workload (command line only) • Oracle 9i Advisor workload • SQL Tuning Sets
Filtering • Don’t have to use the entire workload • Filter by • Application or module name • Number of SQL statements • Queries during a specified time window • Username • Tables • must be in this list • not in this list
Tuning Options • SQL statements will be tuned according to the resources they use
Recommendations • SQLAccess Advisor wizard view by • Recommendations • SQL statements • Do not have to accept all recommendations • Can modify object names and locations
Review Recommendations Pt 2 • Workload cost will not equal 100 because the cost is specific to a query
Housekeeping • Don’t forget to • Change the expiration dates for tasks and workloads if you want to keep them over 30 days • Remove tasks and workloads when no longer required
Features only available in the command line • Template tasks and workloads • Using or creating them • Adding/changing/deleting/searching SQL statements in a workload • Using an Oracle 9i workload • Quick Tune of a single SQL statement
D E M O N S T R A T I O N SQLAccess Advisor
Want to do this now? • Try the Oracle 9i Advisor • Functionality is very similar • Only recommends materialized views • Different interface • GUI available in OEM • Can use 9i workloads with SQLAccess Advisor
Conclusion • SQLAccess Advisor can tune parts of the database that your DBA never knew was a problem • Easy and quick to use • Build up a pattern of usage over time • You choose what to implement • See what the SQLAccess Advisor could do to improve your system performance
Reminder – please complete the OracleWorld online session surveyThank you.
Q & Q U E S T I O N S A N S W E R S A