Book description
Expert Oracle SQL: Optimization, Deployment, and Statistics is about optimizing individual SQL statements, especially on production database systems. This Oracle-specific book begins by assuming you have already identified a particular SQL statement and are considering taking steps to improve its performance. The book describes a systematic process by which to diagnose a problem statement, identify a fix, and to implement that fix safely in a production system. You'll learn not only to improve performance when it is too slow, but also to stabilize performance when it is too variable. You'll learn about system statistics and how the Cost-Based Optimizer uses them to determine a suitable execution plan for a given statement. That knowledge provides the foundation from which to identify the root cause, and to stabilize and improve performance.
Next after identifying a problem and the underlying root cause is to put in place a solution. Expert Oracle SQL: Optimization, Deployment, and Statistics explains how to apply various remedies such as changing the SQL statement, adding hints, changing the physical design, and more, and how they can be brought to bear on fixing a problem once and for all.
Rolling a change out smoothly is an important topic when dealing with tuning and optimization. Expert Oracle SQL: Optimization, Deployment, and Statistics does not let you down in this critical area. The book contains two chapters of good information from an experienced professional on how to safely deploy changes into production so that your systems remaining running and available throughout the deployment process.
- Describes a systematic approach to tuning Oracle SQL
- Explains how things are supposed to work, what can go wrong, and how to fix it
- Takes you through the steps needed to stabilize performance in your production systems
What you'll learn
- Determine the root cause of poor performance in a SQL statement
- Decipher each line of an execution plan and how it relates to its source SQL statement
- Know the various options and transformations available for the Cost-Based Optimizer
- Interpret the diagnostic data from Active Session History, SQL Performance Monitor, and from other sources
- Apply optimizer hints, SQL profiles, and SQL baselines when they are best used, and avoid them otherwise
- Manage object statistics used by the optimizer to ensure efficient execution plans
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- About IOUG Press
- Contents
- About the Author
- About the Technical Reviewers
- Acknowledgments
- Foreword
- Introduction
-
Part 1: Basic Concepts
- Chapter 1: SQL Features
- Chapter 2: The Cost-Based Optimizer
- Chapter 3: Basic Execution Plan Concepts
- Chapter 4: The Runtime Engine
- Chapter 5: Introduction to Tuning
- Chapter 6: Object Statistics and Deployment
-
Part 2: Advanced Concepts
- Chapter 7: Advanced SQL Concepts
-
Chapter 8: Advanced Execution Plan Concepts
- Displaying Additional Execution Plan Sections
-
Understanding Parallel Execution Plans
- Operations That Can Be Run in Parallel
- Controlling Parallel Execution
- Granules of Parallelism
- Data Flow Operators
- Parallel Query Server Sets and DFO Trees
- Table Queues and DFO Ordering
- Multiple DFO Trees
- Parallel Query Distribution Mechanisms
- Why Forcing Parallel Query Doesn’t Force Parallel Query
- Further Reading
- Understanding Global Hints
- Summary
- Chapter 9: Object Statistics
-
Part 3: The Cost-Based Optimizer
- Chapter 10: Access Methods
- Chapter 11: Joins
- Chapter 12: Final State Optimization
- Chapter 13: Optimizer Transformations
-
Part 4: Optimization
- Chapter 14: Why Do Things Go Wrong?
- Chapter 15: Physical Database Design
- Chapter 16: Rewriting Queries
- Chapter 17: Optimizing Sorts
- Chapter 18: Using Hints
- Chapter 19: Advanced Tuning Techniques
- Part 5: Managing Statistics with TSTATS
- Index
- General
Product information
- Title: Expert Oracle SQL
- Author(s):
- Release date: July 2014
- Publisher(s): Apress
- ISBN: 9781430259770
You might also like
video
Oracle SQL
Overview Oracle SQL LiveLessons covers the basics of the Oracle SQL programming language. This course covers …
book
Oracle Database 12c SQL
Write Powerful SQL Statements and PL/SQL Programs Learn how to access Oracle databases through SQL statements …
book
Beginning Oracle SQL: for Oracle Database 12c, Third Edition
Beginning Oracle SQL is your introduction to the interactive query tools and specific dialect of SQL …
book
Expert Oracle PL/SQL
Experienced PL/SQL programmers and Oracle developers will learn to master Oracle's procedural extension to industry-standard SQL. …