Book description
Learn through this practical guide to SQL tuning how Oracle's own experts do it, using a freely downloadable tool called SQLTXPLAIN. This new edition has been expanded to include AWR, Oracle 12c Statistics, interpretation of SQL Monitor reports, Parallel execution, and Exadata-related features. Reading this book and using SQL helps you learn to tune even the most complex SQL, and you'll learn to do it quickly, without the huge learning curve usually associated with tuning as a whole.
Firmly based in real-world problems, this book helps you reclaim system resources and avoid the most common bottleneck in overall performance, badly tuned SQL. You'll learn how the optimizer works, how to take advantage of its latest features, and when it's better to turn them off. Best of all, the book is updated to cover the very latest feature set in Oracle Database 12c.
- Covers AWR report integration
- Helps with SQL Monitor Report Interpretation
- Provides a reliable method that is repeatable
- Shows the very latest tuning features in Oracle Database 12c
- Enables the building of test cases without affecting production
What You Will Learn
- Identify how and why complex SQL has gone wrong
- Correctly interpret AWR reports generated via SQLTXPLAIN
- Collect the best statistics for your environment
- Know when to invoke built-in tuning facilities
- Recognize when tuning is not the solution
- Spot the steps in a SQL statement's execution plan that are critical to performance of that statement
- Modify your SQL to solve performance problems and increase the speed and throughput of production database systems
Who This Book Is For
Anyone who deals with SQL and SQL tuning. Both developers and DBAs will benefit from learning how to use the SQLTXPLAIN tool, and from the problem solving methodology in this book.
Table of contents
- Cover
- Frontmatter
- 1. Introduction
- 2. AWR: Your Guide on What to Do Next
- 3. The Cost-Based Optimizer Environment
- 4. How Object Statistics Can Make Your Execution Plan Wrong
- 5. How Skewness Can Make Your Execution Times Variable
- 6. Collecting Good Oracle 12c Statistics
- 7. Tracing CBO Decisions, Hints, and Query Transformations Using 10053
- 8. Forcing Execution Plans through Profiles
- 9. Adaptive Cursor Sharing
- 10. How to Work with Adaptive Plans
- 11. Dynamic Statistics
- 12. Directives and Statistics Feedback
- 13. Parallel Execution
- 14. SQL Monitor Active Reports
- 15. Using SQLTXPLAIN with an Active Data Guard Environment
- 16. Building Good Test Cases
- 17. Using XPLORE to Investigate Unexpected Plan Changes
- 18. Trace Files, TRCANLZR, and Modifying SQLT Behavior
- 19. Comparing Execution Plans
- 20. Running a Health Check
- 21. The Final Word
- Backmatter
Product information
- Title: Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition, Second Edition
- Author(s):
- Release date: April 2017
- Publisher(s): Apress
- ISBN: 9781484224359
You might also like
book
Beginning Oracle SQL for Oracle Database 18c: From Novice to Professional
Start developing with Oracle SQL. This book is a one-stop introduction to everything you need to …
book
Practical Oracle SQL: Mastering the Full Power of Oracle Database
Write powerful queries using as much of the feature-rich Oracle SQL language as possible, progressing beyond …
book
Expert Oracle SQL
Expert Oracle SQL: Optimization, Deployment, and Statistics is about optimizing individual SQL statements, especially on production …
book
Oracle Database 12c Release 2 Multitenant
Master the Powerful Multitenant Features of Oracle Database 12c Govern a scalable, extensible, and highly available …