Troubleshooting Oracle Performance, 3rd Edition is a systematic guide to diagnosing and resolving performance problems in enterprise applications that use Oracle Database. Written by performance engineer Christian Antognini for database administrators and application developers, it presents his proven approach to solving database application performance problems and shows how to plan for performance as you would for any other application requirement. You will see how SQL is parsed and executed, how to obtain and interpret execution plans, and how to move efficiently from symptoms to root causes across reproducible issues (SQL trace, PL/SQL profilers), live incidents (dynamic performance views), and post-mortem analysis (AWR and Statspack). Coverage spans modern releases from Oracle Database 12g through Oracle AI Database 26ai.
This edition builds on previous bestselling editions with a deeper focus on the query optimizer and plan stability. You will learn how to configure the optimizer for each workload, evaluate execution plan efficiency, and apply execution plan management techniques including hints, SQL plan baselines, SQL profiles, and SQL patches. The restructured core adds focused chapters on parallel execution, precomputing and caching data, and optimizing network round trips, helping you tune joins and data access, increase throughput with parallelism, leverage materialized views and result caching, and reduce latency via the array interface and row prefetching. The result is an up-to-date, practical guide that helps you diagnose faster, fix them with confidence, and keep Oracle Database performance on track across releases from 12g to 26ai.
What You’ll Learn
- Diagnose performance with SQL trace, PL/SQL profilers, dynamic views, AWR, and Statspack
- Configure the query optimizer and read execution plans for efficiency and stability
- Apply hints, SQL plan baselines, SQL profiles, and SQL patches to manage execution plans
- Reduce parsing overhead while maintaining throughput
- Optimize data access and join strategies for predictable performance
- Improve throughput with parallel execution and precomputation via materialized views and result caching
- Reduce latency by optimizing network round trips (array interface, row prefetching)
- Strengthen physical design choices to sustain application performance
Intended Audience
This book is intended for performance analysts, database administrators, and application developers who are involved in troubleshooting performance problems in applications using Oracle Database.
No specific knowledge in optimization is required. However, readers are expected to have a working knowledge of Oracle Database and to be proficient with SQL. Some sections of the book cover features that are specific to programming languages such as PL/SQL, Java, C#, PHP, Python, and C. These sections are covered only to provide a wide range of application developers with specific information about the programming language they are using. You can pick out the ones you are using or interested in and skip the others.
Which Versions Are Covered?
The most important concepts covered in this book are independent of the version of Oracle Database you are using. However, it’s inevitable that some information will be version-specific when details about the implementation are discussed. This book explicitly discusses the features available in the following versions:
- Oracle Database 12c, versions 12.1.0.2 and 12.2
- Oracle Database 18c, up to and including version 18.17
- Oracle Database 19c, up to and including version 19.32
- Oracle Database 21c, up to and including version 21.23
- Oracle AI Database 26ai, up to and including version 23.26.3
Differences between the Second and the Third Edition
The main goals set for the third edition of the book were as follows:
- Add content about Oracle Database 12c version 12.1.0.2 and 12.2, Oracle Database 18c, Oracle Database 19c, Oracle Database 21c, and Oracle AI Database 26ai.
- Remove content specific to Oracle Database 10g, Oracle Database 11g, and Oracle Database 12c version 12.1.0.1.
- Add information about Python in the parts that cover features that are specific to programming languages.
- Reorganize part of the material for better readability. For example, split the (too long) chapter “Beyond Data Access and Join Optimization” into three chapters: “Parallel Execution”, “Precomputing and Caching Data” and “Optimizing Network Round Trips”.
- Fix errata and generally enhance the text.