| help | account  


Cost-Based Oracle Fundamentals
View Larger Image
Jonathan Lewis
Apress, Paperback, Published November 2005, 536 pages, ISBN 1590596366
List Price: $49.99
Our Price: $30.50
You Save: $19.49 (39% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock
Download an excerpt:
Chapter 5: The Clustering Factor

     

Excerpt provided courtesy of Apress. Copyright © Apress. Written permission from the publisher is required for any use of this material.

Customer Reviews: 2     Average Customer Rating:

Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

"The insights that Jonathan provides into the workings of the cost-based optimizer will make a DBA a better designer, and a Developer a better SQL coder. Both groups will become better troubleshooters."
—Thomas Kyte, VP (Public Sector), Oracle Corporation

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

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 Loop Joins

Chapter 12 Hash Joins

Chapter 13 Sorting and Merge Joins

Chapter 14 The 10053 Trace

Appendix A Upgrade Headaches

Appendix B Optimizer-Related Parameters


About the Author

Jonathan Lewis has been involved in database work for more than 19 years, specializing in Oracle for the last 16 years and working as a consultant for the last 12 years. Jonathan is currently a director of the UK Oracle User Group (UKOUG) and is well known for his many presentations at the UKOUG conferences and SIGs. He is also renowned for his tutorials and seminars about the Oracle database engine, which he has held in various countries around the world. Jonathan authored the acclaimed book Practical Oracle 8i (Addison-Wesley, 2001), and he writes regularly for the UKOUG magazine and occasionally for other publications, including OTN and DBAZine. He also finds time occasionally to publish Oracle-related material on his website, JL Computer Consultancy.


Customer Reviews

Customer Reviews: 2     Average Customer Rating:

Nov 9, 2006     Bobby Durrett from Greenville, SC
One tip worth the price of the book
I've already applied one tip from the book at work and so the book has more than paid for itself. Jonathan had a section about how columns with default values can be very skewed and improved with histograms. Sure enough, one of our slowest queries has this problem and a histogram fixed it. I wouldn't have thought to use it before because the columns has so many distinct and unique values. It is just one thing out of a ton of stuff in the book, but it helped me. I still have three or four chapters to go... - Bobby Durrett

Nov 10, 2005     mhthomas from Raleigh
Dynamite Book
Wonderful methods and information to get the most from the CBO for every version of Oracle. Great information for migrations and upgrades.

"Dynamite" because, after enjoying the first three chapters in detail, I thought my head might explode with information. So, I decided to next read the remaining chapter summaries before digging into details. Much safer approach for me.

The outstanding methods described in this book are easily applied to our Oracle tuning problems. In summary, its an incredible book including an unbelievable amount of detail given the title of "fundamentals".



Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account