Book description
The question, "Why isn't Oracle using my index?" must be one of the most popular (or perhaps unpopular) questions ever asked on the Oracle help forums. You've picked exactly the right columns, you've got them in the ideal order, you've computed statistics, you've checked for null columns—and the optimizer flatly refuses to use your index unless you hint it. What could possibly be going wrong?
If you've suffered the frustration of watching the optimizer do something completely bizarre when the best execution plan is totally obvious, or spent hours or days trying to make the optimizer do what you want it to do, then this is the book you need. You'll come to know how the optimizer thinks, understand why it makes mistakes, and recognize the data patterns that make it go awry. With this information at your fingertips, you will save an enormous amount of time on designing and trouble-shooting your SQL.
The cost-based optimizer is simply a piece of code that contains a model of how Oracle databases work. By applying this model to the statistics about your data, the optimizer tries to efficiently convert your query into an executable plan. Unfortunately, the model can't be perfect, your statistics can't be perfect, and the resulting execution plan may be far from perfect.
In Cost-Based Oracle Fundamentals, the first book in a series of three, Jonathan Lewis—one of the foremost authorities in this field—describes the most commonly used parts of the model, what the optimizer does with your statistics, and why things go wrong. With this information, you'll be in a position to fix entire problem areas, not just single SQL statements, by adjusting the model or creating more truthful statistics.
Table of contents
- Title Page
- Contents at a Glance
- Contents
- Foreword
- About the Author
- About the Technical Reviewers
- Acknowledgments
- Introduction
- CHAPTER 1: What Do You Mean by Cost?
- CHAPTER 2: Tablescans
- CHAPTER 3: Single Table Selectivity
- CHAPTER 4: Simple B-tree Access
- CHAPTER 5: The Clustering Factor
- CHAPTER 6: Selectivity Issues
- CHAPTER 7: Histograms
- CHAPTER 8: Bitmap Indexes
- CHAPTER 9: Query Transformation
- CHAPTER 10: Join Cardinality
- CHAPTER 11: Nested Loops
- CHAPTER 12: Hash Joins
- CHAPTER 13: Sorting and Merge Joins
- CHAPTER 14: The 10053 Trace File
-
APPENDIX A: Upgrade Headaches
- dbms_stats
- Frequency Histograms
- CPU Costing
- Rounding Errors
- Bind Variable Peeking
- Nulls Across Joins
- B-tree to Bitmap Conversions
- Index Skip-Scans
- AND-Equal
- Index Hash Join
- In-List Fixed
- Transitive Closure
- sysdate Arithmetic Fixed
- Indexing Nulls
- pga_aggregate_target
- Sorting
- Grouping
- Sanity Checks
- Going Outside the Limits
- Type Hacking
- optimizer_mode
- Descending Indexes
- Complex View Merging
- Unnest Subquery
- Scalar and Filter Subqueries
- Parallel Query Changes x 2
- Dynamic Sampling
- Temporary Tables
- Dictionary Stats
- APPENDIX B: Optimizer Parameters
- Index
Product information
- Title: Cost-Based Oracle Fundamentals
- Author(s):
- Release date: November 2005
- Publisher(s): Apress
- ISBN: 9781590596364
You might also like
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …
book
Troubleshooting Oracle Performance, Second Edition
Troubleshooting Oracle Performance, 2nd Edition is your systematic guide to diagnosing and resolving performance problems in …
book
Expert Consolidation in Oracle Database 12c
Expert Consolidation in Oracle Database 12c is your key to reducing data management costs and increasing …
book
Microsoft Visual C# Step by Step, 10th Edition
Your hands-on guide to Microsoft Visual C# fundamentals with Visual Studio. Expand your expertiseand teach yourself …