Cost-Based Oracle Fundamentals (Expert's Voice in Oracle) and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $3.93 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Cost-Based Oracle Fundamentals (Expert's Voice in Oracle) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Cost-Based Oracle Fundamentals (Expert's Voice in Oracle) [Paperback]

Jonathan Lewis
4.6 out of 5 stars  See all reviews (30 customer reviews)

List Price: $49.99
Price: $28.72 & FREE Shipping. Details
You Save: $21.27 (43%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it tomorrow, June 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $22.79  
Paperback $28.72  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

November 2, 2005 Expert's Voice in Oracle

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.


Frequently Bought Together

Cost-Based Oracle Fundamentals (Expert's Voice in Oracle) + Oracle Core: Essential Internals for DBAs and Developers + Expert Oracle Database Architecture: Oracle Database 9i, 10g, and 11g Programming Techniques and Solutions
Price for all three: $96.08

Buy the selected items together


Editorial Reviews

About the Author

Jonathan Lewis has been working in the information technology industry for nearly 25 years, and has been using the Oracle relational database management system for more than 20. For the past 16 years, he has worked as a freelance consultant, often spending only one or two days at a time with any client to address critical performance problems. He also advises on design and implementation problems, and on how to make best use of the most appropriate Oracle features for a given project. Jonathan is also renowned throughout the world for his tutorials and seminars about the Oracle database engine and how to make best use of it. Having visited 42 countries at last count, his exceptional ability has earned him an O1 visa from the United States, allowing him to do consultancy and lecture work there. Jonathan has written two books about Oracle (Practical Oracle8i, Addison-Wesley, 2000; Cost-Based Oracle Fundamentals, Apress, 2005), and has contributed to two others (Oracle Insights, Apress, 2004; Oracle Database 10g New Features, Oracle Press, 2004). He also writes regularly for the UKOUG magazine, and occasionally for other publications around the world. In the limited amount of time he has leftover, Jonathan also publishes high-tech Oracle articles on his blog at jonathanlewis.wordpress.com.

Product Details

  • Paperback: 536 pages
  • Publisher: Apress (November 2, 2005)
  • Language: English
  • ISBN-10: 1590596366
  • ISBN-13: 978-1590596364
  • Product Dimensions: 7.3 x 1.4 x 9.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (30 customer reviews)
  • Amazon Best Sellers Rank: #279,810 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Jonathan did one thing in this book that Ill definitely be stealing myself. Thomas Kyte  |  8 reviewers made a similar statement
When the CIO was complaining that oracle software is very expensive and he pays so much dollars. K. Gopalakrishnan  |  3 reviewers made a similar statement
Jonathan presents the material in a very easy to follow style. Roger C. Carlson  |  7 reviewers made a similar statement
Most Helpful Customer Reviews
62 of 65 people found the following review helpful
Format:Paperback
This is the book for you.

This book is, well, in a word amazing. If you have ever been baffled or bemused by why the heck did the optimizer do that, or as Jonathan wrote on page 299:

"I am reluctant to call something a bug unless I can work out what Oracle is doing and can prove that its doing something irrational. Too many people say, Its a bug when they really mean I dont know why this happened."

You will absolutely love this book. In it you will discover the hows and whys of the optimizer. Why statistics matter, how they matter. Whats up with histograms when and where do we need them, what affect do they have.

Sprinkled throughout the book are random insights like this one:

"There are many ways to implement Oracle systems badly, and as a general rule, anything that hides useful information from the optimizer is a bad idea. One of the simple, and highly popular, strategies for doing this is to stick all of your reference data into a single table with a type column. The results can be catastrophic as far as the optimizer is concerned."

And then is goes on to say why. That is what I really really like it goes on to say why. I hate it when statements are made and no reasoning is made why. You will find none of that in this book.

Jonathan did one thing in this book that Ill definitely be stealing myself. One neat thing is every chapter ends with a list of script names and descriptions. In the text, he references these script names as well. That way, when you download the code you have a straight reference to the sample you should be running. Ive used the (extremely poor) naming convention of demo001.sql, demo002.sql and so on. Next book theyll all have names and Ill be referencing exactly like he did. Very nice.
... Read more ›
Comment | 
Was this review helpful to you?
9 of 10 people found the following review helpful
5.0 out of 5 stars No Competition December 2, 2005
Format:Paperback
There is little point to write how good this book is, since there is no other book devoted to SQL optimization exclusively. Dan Tow's book comes close, but he is focused more on a method of join graph analysis that he developed, than on details how optimizer did arrive to a certain access path. The lack of competition on the market is really surprising giving that SQL optimization is the only part of RDBMS that is justifiably complex, and would remain complex in foreseable future.

Compared to SQL optimizations all the other issues that DBA deals today look ridiculous. There is no reason why, for example export and import should be more complex than copying image file from your camera. Likewise, managing extents and segments is totally automated these days. All the manageability trend just proves a simple idea that RDBMS is nothing more than query execution engine.

Now, unlike any other RDBMS implementation area, the flow of poorly executed SQL never seems to cease. SQL Optimization is well known to be a difficult problem. Statistics information is incomplete, robust cost metrics is elusive, and the search space is explosive. The optimization goals are often conflicting. The very first idea that every SQL performance analyst discovers: "The optimization is only as good as its cost estimates". Those issues are fundamental rather than SQL DBMS vendor specific, of course. Given the scope and complexity of the problem, one citation comes to mind: "There is no emperor's way to SQL optimization".
Comment | 
Was this review helpful to you?
10 of 12 people found the following review helpful
5.0 out of 5 stars What's it all about ? March 1, 2006
Format:Paperback
Since I am the author of this book my opinion is, of course, biased. So far, Amazon.com has seen several rave reviews and a couple of poor ones. I think the critical difference between the reviews lies in one important word:

Understanding.

The purpose of the book is to show you how the cost based optimizer works. I did not write it to give you a list of quick tips that might fix a problem statement (or might make it, and dozens of others, worse). Do not buy this book if all you are after is hints and tips that you can use without thinking. If there were a few quick tricks that could fix everyone's systems, they would already be built into the optimizer code. (And the ones that can't be in the code are in the manuals)

Many people find it easier to understand a process by working through examples so that is the approach I've taken for the book; but this means that some people will find that it just doesn't suit the way they like to think. So rather than depending on reviews, you can download a sample chapter from Apress at the URL: [...] and see for yourself if the approach works for you.

You can also find a list of errors and updates at the URL: [...]
Comment | 
Was this review helpful to you?
12 of 15 people found the following review helpful
5.0 out of 5 stars The Real Cost of Oracle December 28, 2005
Format:Paperback
The beauty of reading a book by a publisher not sanctioned by Oracle and by an author who doesn't work for Oracle is that they can openly mention bugs. And there are oh-so-many! This book is a superb introduction to the Cost Based Optimizer, and is not afraid to discuss it's many shortcomings. In so doing it also explains how to patch up those shortcomings by giving the CBO more information, either by creating a histogram here and there, or by using the DBMS_STATS package to insert your own statistics in those specific cases where you need to.

Another interesting thing is how this book illustrates, though

accidentally, the challenges of proprietary software systems. Much of this book and the authors time is spent reverse engineering the CBO, Oracle's bread and butter optimizing engine. Source code, and details about its inner workings are not published or available. And of course that's intentional. But what's clear page after page in this book is that for the DBA and system tuner, going about their day to day tasks, they really need inside information about what the optimizer is doing, and so this book goes on a long journal to illuminate much of what the CBO is doing, or in some cases provide very educated guesses and some speculation. In contrast, as we know and hear about often, the Open Source alternative provides free access to source code, though not necessarily to the goods themselves. What this means in a very real way is that a book like this would not need to be written for an alternative open source application, because the internal code would be a proverbial open book.
... Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Really enlightening....
WOW!!! If you are really keen to know how the optimizer works, how cost is computed, how hash join, nested loop join, query transformation happens, multi table join etc.. Read more
Published 21 months ago by D. Rout
5.0 out of 5 stars Great book for both beginner and expert Oracle DBAs and developers.
Highly recommend this book for Oracle DBAs and Developers alike. It gives you helpful insights into the cost-based optimizer and how it creates plans for SQL it executes. Read more
Published on March 21, 2011 by Joe
5.0 out of 5 stars SARJU PATEL - Senior Oracle DBA
I haven't completed reading this book, yet. I have only heard from my DBA friend - This book is very good if you want to know more about the database optimizer behaviour. Read more
Published on December 21, 2010 by SARJU PATEL
5.0 out of 5 stars A Fantastic Book with a Very Deceptive Name
I waited nearly three years after the first cover to cover read through of this book, and two years after the second cover to cover read through of this book to write this review -... Read more
Published on January 25, 2009 by Charles Hooper
5.0 out of 5 stars A Classic
Well, you can read this and update with new features for 10g and 11g. Or you can read 1200, maybe 1500 pages of documentation and try to tie everything together. Read more
Published on December 29, 2008 by Bon Temps Jolie
5.0 out of 5 stars Great Book!
This book contains a wealth of information about how to evaluate and test the Oracle Cost Based Optimizer. Jonathan presents the material in a very easy to follow style. Read more
Published on August 25, 2008 by Roger C. Carlson
5.0 out of 5 stars Invaluable Oracle Resource
Jonathan Lewis has perfomed an invaluable service to the Oracle community. He doesn't just offer opinions of how the CBO makes decisions from his vast experience. Read more
Published on July 15, 2008 by Dennis W. Willaims
3.0 out of 5 stars I was disappointed
It doesn't mean you won't love the book. I found it to be far too narrow and, even as an Oracle OCP, boringly written. Read more
Published on November 8, 2007 by Michael Milligan
5.0 out of 5 stars Jonathan is a tease... but it's a great book!
Each quarter my team of DBA's has one book that we read and discuss in team meetings. This quarter, Cost-Based Oracle Fundamentals is it. Read more
Published on August 23, 2007 by Robert G. Freeman
5.0 out of 5 stars Invaluable Knowledge and Applicability
This book gets a prized spot on my technical shelf. It is a challenging read, and has taken the most time of any book I have to get through, but it is quite good. Read more
Published on November 27, 2006 by Lainev
Search Customer Reviews
Only search this product's reviews


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category