Summary and Info
Every SQL query that is submitted to the Oracle database is analyzed by a SQL query optimizer called the Cost Based Optimizer (CBO). The CBO uses information about the structure, quantity, and nature of the data to work out the most efficient way to find your result. To be more precise, it tries to find the query execution plan that has the lowest execution cost. As such, the CBO is one of the most important components of the Oracle database, knowledge and understanding of which are vital to the overall performance of the database and your Oracle applications. There are thousands of people whose job is to make Oracle databases run faster and yet, to many of them, the CBO is still the ultimate black box. The SQL queries go in, but if the execution times are "too slow" they have no real idea how to logically and effectively trace and fix the cause of the problem. This means that they can waste a lot of time of time (and money) on trial-and-error methods for getting SQL statements to perform efficiently. One of the major difficulties, up till now, is that they there has been no single source of information explaining how Oracle’s cost-based optimizer is supposed to work. In Cost Based Oracle, Jonathan Lewis completely demystifies the CBO, providing a lucid, thorough, and structured description of how the optimizer works, how it does its arithmetic, and the things you can do to make it behave. In this book, volume 1 in a series of three, Jonathan covers the fundamentals: the things that everyone who uses the Oracle database needs to know about the CBO. It sheds light on the decisions the CBO makes when parsing a SQL statement and choosing an access plan. It demonstrates how the CBO calculates the cost of a plan and the rules and factors that go into these calculations. It reveals the basic assumptions the optimizer makes about the SQL and the data, explains why things go wrong and how you can fix them when those assumptions are incomplete, inaccurate, or simply false. He also includes a fabulous Upgrade Headaches section that is essential reading for anyone who has ever has, or ever will, upgrade between Oracle versions. Volumes 2 and 3 will track changes to the CBO in subsequent Oracle 10g releases, and will cover the more advanced and complex features of optimization. Jonathan Lewis is one of the most highly respected Oracle consultants in the international community and in this book he shows you how to understand and use the CBO effectively, so that your SQL queries run as efficiently as possible and, ultimately, your applications fulfill their performance potential.
Review and Comments
Rate the Book
Cost-Based Oracle Fundamentals (Expert's Voice in Oracle) 0 out of 5 stars based on 0 ratings.