Book description
One of the most important challenges faced by Oracle database administrators and Oracle developers is the need to tune SQL statements so that they execute efficiently. Poorly tuned SQL statements are one of the leading causes of substandard database performance and poor response time. SQL statements that perform poorly result in frustration for users, and can even prevent a company from serving its customers in a timely manner.
In this book, Mark Gurry shares his in-depth knowledge of Oracle's SQL statement optimizers. Mark's knowledge is the result of many hard-fought tuning battles during his many years of providing Oracle tuning services to clients. Mark provides insights into the workings of the rule-based optimizer that go well beyond what the rules tell you. Mark also provides solutions to many common problems that occur with both the rule-based and cost-based optimizers.
In addition to the specific problem/solution scenarios for the optimizers, Mark provides a number of handy SQL tuning tips. He discusses the various optimizer hints, telling you when they can be used to good effect. Finally, Mark discusses the use of the DBMS_STATS package to manage database statistics, and the use of outlines to specify execution plans for SQL statements in third-party applications that you can't otherwise modify.
Publisher resources
Table of contents
-
1. Oracle SQL TuningPocket Reference
- 1.1. Introduction
-
1.2. The SQL Optimizers
-
1.2.1. Understanding the Rule-Based Optimizer
- 1.2.1.1. What the RBO rules don’t tell you #1
- 1.2.1.2. What the RBO rules don’t tell you #2
- 1.2.1.3. What the RBO rules don’t tell you #3
- 1.2.1.4. What the RBO rules don’t tell you #4
- 1.2.1.5. What the RBO rules don’t tell you #5
- 1.2.1.6. What the RBO rules don’t tell you #6
- 1.2.1.7. What the RBO rules don’t tell you #7
- 1.2.2. Understanding the Cost-Based Optimizer
- 1.2.3. Some Common Optimizer Misconceptions
- 1.2.4. Which Optimizer to Use?
-
1.2.1. Understanding the Rule-Based Optimizer
- 1.3. Rule-Based Optimizer Problems and Solutions
- 1.4. Cost-Based Optimizer Problems and Solutions
-
1.5. Problems Common to Rule and Cost with Solutions
- 1.5.1. Problem 1: Statement Not Written for Indexes
- 1.5.2. Problem 2: Indexes Are Missing or Inappropriate
- 1.5.3. Problem 3: Use of Single-Column Index Merge
- 1.5.4. Problem 4: Misuse of Nested Loop, Sort Merge, or Hash Join
- 1.5.5. Problem 5: Misuse of IN, EXISTS, NOT IN, NOT EXISTS, or Table Joins
- 1.5.6. Problem 6: Unnecessary Sorts
- 1.5.7. Problem 7: Too Many Indexes on a Table
- 1.5.8. Problem 8: Use of OR Instead of UNION
- 1.5.9. Problem 9: Tables and Indexes with Many Deletes
- 1.5.10. Other Problems: Heavy Usage of Views
- 1.5.11. Other Problems: Joining Too Many Tables
- 1.6. Handy SQL Tuning Tips
- 1.7. Using SQL Hints
- 1.8. Using DBMS_STATS to Manage Statistics
- 1.9. Using Outlines for Consistent Execution Plans
- Index
- About the Author
- Copyright
Product information
- Title: Oracle SQL Tuning Pocket Reference
- Author(s):
- Release date: January 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596002688
You might also like
book
Oracle SQL Tuning with Oracle SQLTXPLAIN
Oracle SQL Tuning with SQLTXPLAIN is a practical guide to SQL tuning the way Oracle's own …
book
Oracle SQL Developer
Learn Database design, development,and administration using the feature-rich SQL Developer 4.1 interface About This Book Explore …
book
Pro Oracle SQL, Second Edition
Pro Oracle SQL, Second Edition unlocks the power of SQL in the Oracle database—one of the …
book
Oracle Database 11g Release 2 Performance Tuning Tips & Techniques
Implement Proven Database Optimization Solutions Systematically identify and eliminate database performance problems with help from Oracle …