Oracle SQL Tuning with Oracle SQLTXPLAIN
- Length: 317 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2013-03-20
- ISBN-10: 1430248092
- ISBN-13: 9781430248095
- Sales Rank: #1804055 (See Top 100 Books)
Oracle SQL Tuning with Oracle SQLTXPLAIN
Oracle SQL Tuning with SQLTXPLAIN is a practical guide to SQL tuning the way Oracle’s own experts do it, using a freely downloadable tool called SQLTXPLAIN. Using this simple tool you’ll learn how 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.
- Quickly tune any SQL statement no matter how complex.
- Build and tune test cases without affecting production.
- Use the latest tuning features with confidence.
What you’ll learn
- How and why complex SQL goes wrong
- When statistics are crucial and when they are not
- How and when the tuning facilities of the database can help or hinder
- When to tune and when not to tune
- Which steps in an execution plan are crucial to performance
- How the optimizer works out the execution plan
Who this book is for
Oracle SQL Tuning with SQLTXPLAIN is ideal for everyone who deals with SQL and SQL tuning. Both developers and DBA’s will benefit from learning how to use the SQLTXPLAIN tool along with the problem solving approach described in this book.
Table of Contents
- Introduction to SQLTXPLAIN
- The Cost-Based Optimizer Environment
- How Object Statistics Can Make Your Execution Plan Wrong
- How Skewness Can Make Your Execution Times Variable
- Troubleshooting Query Transformations
- Forcing Execution Plans Through Profiles
- Adaptive Cursor Sharing
- Dynamic Sampling and Cardinality Feedback
- Using SQLTXPLAIN with Data Guard Physical Standby Databases
- Comparing Execution Plans
- Building Good Test Cases
- Using XPLORE to Investigate Unexpected Plan Changes
- Trace Files, TRCANLZR, and Modifying SQLT Behavior
- Running a Health Check
- The Final Word
- Appendix A. Installing SQLTXPLAIN
- Appendix B. The CBO Parameters (11.2.0.1)
- Appendix C: Tool Configuration Parameters