Course Overview
This Oracle Database 11g: SQL Tuning course is designed to equip database administrators and application developers with the skills needed to build efficient SQL statements and to tune database applications. Students will learn about the internals of SQL statement execution, how to monitor the performance of such execution, and how one can influence the behavior of the database to achieve performance gains.
This course covers information relevant for the certification test EXAM 1Z0-054: ORACLE DATABASE 11G R2: PERFORMANCE TUNING.
What you’ll learn
Upon completion of the Oracle Database 11g: SQL Tuning course, students will be able to:
- Consider the unique and differing tuning issues found in online database applications, enterprise resource and data warehouse environments, and the important metrics of SQL statement performance.
- Learn about the internal mechanisms used for SQL statement execution within a database instance and how these can affect performance for good or bad, including the optimizer facilities known as the transformation engine, estimator, and plan generator.
- Use a variety of techniques to examine the details of SQL statement execution, spotting trouble areas and bottlenecks that require tuning.
- Learn about the Auto-Task framework and how to manage the automatic collection of Optimizer statistics and automatic SQL tuning using both the programmatic and Enterprise Manager interfaces.
- Become trained in how statistical deficiencies can dramatically degrade performance and how these problems are resolved through customized optimizer statistics collection procedures using the DBMS_STATS() package, system statistics, histograms, expression statistics, and multicolumn statistics.
- Influence the behavior of the optimizer by setting database parameters and other SQL tuning techniques.
- Utilize the database advisory framework and the SQL Tuning and SQL Access advisors.
- Demonstrate plan management to achieve plan stability, which is adaptive and even dynamic.
- Understand the self-tuning infrastructure and the automatic SQL tuning capabilities found within the database.
- Employ SQL hints embedded into the statement text to resolve unique tuning challenges.
- Learn to identify poorly performing SQL statements using real-time SQL monitoring and application tracing techniques such as DBMS_MONITOR(), trcsess, and tkprof.
Requirements
- ORACLE DATABASE 11G R2: SQL FUNDAMENTALS – COMPLETE LIBRARY (DBOR-917)
- ORACLE DATABASE 11G R2: ARCHITECTURE & INTERNALS (DBOR-931)
Target audiences
- The primary target audiences for this course are: Senior application designers and database developers; PL/SQL developer; Database administrators; Web server administrators; System administrators; Implementation specialists; Data center support engineers.
Curriculum
- 1 Section
- 13 Lessons
- 4 Days
Expand all sectionsCollapse all sections
- Topics13
- 1.1TUNING & THE ORACLE DATABASE ADVISORY FRAMEWORK THE challenges of tuning PERFORMANCE metrics MANAGEMENT & advisory framework ADDM & AWR SQL tuning privileges
- 1.2VIEWING & MONITORING THE EXECUTION PLAN ABOUT the execution plan COLLECTING performance statistics VIEWING the execution plan REAL-TIME SQL monitoring
- 1.3UNDERSTANDING THE OPTIMIZER OPTIMIZATION methods OPTIMIZATION goals OPTIMIZER_MODE OPTIMIZER_FEATURES_ENABLE OPTIMIZER components EXECUTION plan operators
- 1.4EXECUTION PLAN METHODS & OPERATORS TABLE access methods JOIN methods INDEX operations DATA operations
- 1.5MANAGING OPTIMIZER STATISTICS MORE about optimizer statistics AUTOMATIC maintenance tasks MANUALLY gathering statistics GATHER_TABLE_STATS() GATHER_INDEX_STATS() GATHER_SCHEMA_STATS() GATHER_DATABASE_STATS() GATHER_SYS parameter GATHER_DICTIONARY_STATS() GATHER_DATABASE_STATS() USING historical statistics DYNAMIC sampling LOCKING statistics
- 1.6ENHANCED OPTIMIZER STATISTICS ABOUT optimizer system statistics MANAGE system statistics CREATE_STAT_TABLE(), DROP_STAT_TABLE() CREATE_STAT_TABLE() DROP_STAT_TABLE() GATHER_SYSTEM_STATS() GET_SYSTEM_STATS() SET_SYSTEM_STATS() IMPORT_SYSTEM_STATS(), EXPORT_SYSTEM_STATS() IMPORT_SYSTEM_STATS() EXPORT_SYSTEM_STATS() DELETE_SYSTEM_STATS() PENDING & PUBLISHED STATISTICS
- 1.7HISTOGRAMS & EXTENDED STATISTICS WHY are histograms needed? HISTOGRAMS internal structure MANUALLY managing histograms EXPRESSION statistics MULTICOLUMN statistics
- 1.8APPLICATION TRACING APPLICATION tracing packages SET_SQL_TRACE() TRACE_ENABLE() SET_IDENTIFIER() EM application monitoring & tuning REAL-TIME monitoring USING TRCSESS & TKPROF
- 1.9ADDM & THE SQL TUNING ADVISOR ADDM performance analysis USING the SQL tuning advisor AUTOMATIC SQL tuning CONFIGURING automatic SQL tuning
- 1.10THE SQL ACCESS ADVISOR USING the SQL access advisor SQL access advisor templates PERFORMING a quick tune task USING the SQL access advisor INDEX database parameters OPTIMIZER_INDEX_COST_ADJ OPTIMIZER_INDEX_CACHING SKIP_UNUSABLE_INDEXES OPTIMIZER_USE_INVISIBLE_INDEXES
- 1.11PLAN MANAGEMENT SQL management base architecture LOAD_PLANS_FROM_SQLSET() LOAD_PLANS_FROM_CURSOR_CACHE() USING plan baselines PLAN management using EM
- 1.12MANAGING CURSOR SHARING ABOUT cursor sharing BIND variables & cursor sharing THE cursor_sharing parameter FINDING candidates for rewrite
- 1.13OPTIMIZER HINTS WHAT are hints? HINT explanations
