Section One - SQL System Tuning
Chapter 1 - Parsing in Oracle SQL
Parsing in SQL by Vadim Tropashko
Chapter 2 - Are We Parsing Too Much?
Are We Parsing Too Much? by John Weeg
What is Identical?
How Much CPU are We Spending Parsing?
Library Cache Hits
Shared Pool Free Space
Cursors
Code
Do What You Can
Chapter 3 - Oracle SQL Optimizer Plan Stability
Plan Stability in Oracle 8i/9i by Jonathan Lewis
The Back Door to the Black Box
Background / Overview
Preliminary Setup
What Does the Application Want to Do?
What Do You Want the Application to Do?
From Development to Production
Oracle 9 Enhancements
Caveats
Conclusion
Chapter 4 - SQL Tuning Using dbms_stats
Query Tuning Using DBMS_STATS by Dave Ensor
Introduction
Test Environment
Background
Original Statement
With
Hash Join Hints
Oracle's Cost-based Optimizer
CPU Cost
Key Statistics
Other Factors
Cursor Sharing
Package DBMS_STATS
Plan Stability
Getting CBO to the Required Plan
Localizing the Impact
Ensuring Outline Use
Postscript
Section Two - SQL
Statement Tuning
Chapter 5 - Trees in SQL
Trees in SQL: Nested Sets and Materialized Path by
Vadim Tropashko
Tropashko
Adjacency List
Materialized Path
Nested Sets
Nested Intervals
Partial Order
The Mapping
Normalization
Finding Parent Encoding and Sibling Number
Calculating Materialized Path and Distance between node
The Final Test
Chapter 6 - SQL Tuning Improvements
SQL Tuning Improvements in Oracle 92 by Vadim Tropashko
Access and Filter Predicates
V$SQL_PLAN_STATISTICS
Chapter 7 - Oracle SQL Tuning Tips
SQL tuning by Don Burleson
Chapter 8 - Altering SQL Stored Outlines
Faking Stored Outlines in Oracle 9 by Jonathan Lewis
Review
The Changes
New Features
Old Methods (1)
Old Methods (2)
The Safe Bet
Conclusion
References
|
Section Three - SQL
Index Tuning
Chapter 9 - Using Bitmap Indexes with Oracle
Understanding Bitmap Indexes by Jonathan Lewis
Everybody Knows …
What Is a Bitmap Index?
Do Bitmaps Lock Tables?
Consequences of Bitmap Locks
Problems with Bitmaps
Low Cardinality Columns
Sizing
Conclusion
References
Chapter 10 - SQL Star Transformations
Bitmap Indexes 2: Star Transformations by Jonathan Lewis
The Bitmap Star Transformation
Warnings
Conclusion
References
Chapter 11 - Bitmap Join Indexes
Bitmap Indexes 3 — Bitmap Join Indexes by Jonathan Lewis
It's fantastic - What's the Problem
What Is a Bitmap Join Index?
Issues
Conclusion
References
Section Four - SQL
Diagnostics
Chapter 12 - Tracing SQL Execution
Oracle_trace - the Best Built-in Diagnostic Tool? by Jona
Lewis
How Do I … ?
What is oracle_trace
Uses for oracle_trace
Putting it All Together
Some Results
Now What?
The Future
Conclusion
Caveat
References
Chapter 13 - Embedding SQL in Java & PL/SQL
Java vs PL/SQL: Where Do I Put the SQL? by Dave Moore
The Power of a Package
Table of Contents vii
The Flexibility of Java
Performance
Benchmarks
Environment
The Tests
Java:
PL/SQL:
Multiple Statements
Java:
PL/SQL:
Truncate
Java:
PL/SQL:
Benchmark Results
Single Statement Results
Multiple Statements Results
Truncate Results
Remote Results
Conclusion
Chapter 14 - Matrix Transposition in Oracle SQL
Matrix Transposition in SQL by Vadim Tropashko
Nesting and Unnesting
Integer Enumeration for Aggregate Dismembering
User Defined Aggregate Functions
Section Five -
Advanced SQL
Chapter 15 - SQL with Keyword Searches
Keyword Searches by Joe Celko
Chapter 16 - Using SQL with Web Databases
Web Databases by Joe Celko
Chapter 17 - SQL and Calculated Columns
Calculated Columns by Joe Celko
Introduction
Triggers
INSERT INTO Statement
UPDATE the Table
Use a VIEW
|