Foreword |
|
xv | |
Acknowledgments |
|
xix | |
Introduction |
|
xxiii | |
Part I Core Ideas and Elements of PL/SQL Performance Tuning |
|
|
1 The Role of PL/SQL in Contemporary Development |
|
|
3 | (14) |
|
Typical Web Application Process Flow |
|
|
4 | (1) |
|
Web Application Performance Problem Areas |
|
|
5 | (3) |
|
Step 1: Client Machine Performance Problems |
|
|
5 | (1) |
|
Step 2: Client Machine to Application Server Transmission Problems |
|
|
6 | (1) |
|
Step 3: Application Server Performance Problems |
|
|
6 | (1) |
|
Step 4: Application Server to Database Transmission Problems |
|
|
6 | (1) |
|
Step 5: Database Performance Problems |
|
|
7 | (1) |
|
Step 6: Database to Application Server Transmission Problems |
|
|
7 | (1) |
|
Step 7: Application Server Processing Performance Problems |
|
|
8 | (1) |
|
Step 8: Application Server to Client Machine Transmission Problems |
|
|
8 | (1) |
|
Step 9: Client Machine Performance Problems |
|
|
8 | (1) |
|
Finding the Cause of Slowly Performing Web Applications |
|
|
8 | (5) |
|
Using Timers to Gather Data About Performance |
|
|
9 | (1) |
|
|
10 | (3) |
|
Solving Web Application Performance Problems |
|
|
13 | (1) |
|
Solving Client Machine Performance Problems (Steps 1 and 9) |
|
|
13 | (2) |
|
Resolving Performance Issues Between the Client Machine and Application Server (Step 2) |
|
|
13 | (1) |
|
Solving Performance Problems in the Application Server (Steps 3 and 7) |
|
|
13 | (1) |
|
Solving Performance Problems in the Client Machine (Step 9) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
15 | (2) |
|
2 DBA/Developer Borderline: Tools and Features |
|
|
17 | (30) |
|
|
19 | (3) |
|
Oracle Logging and Tracing |
|
|
22 | (5) |
|
|
22 | (1) |
|
|
23 | (2) |
|
|
25 | (2) |
|
PL/SQL Hierarchical Profiler |
|
|
27 | (5) |
|
|
32 | (1) |
|
PL/SQL Environment Settings |
|
|
33 | (9) |
|
|
34 | (2) |
|
|
36 | (2) |
|
|
38 | (3) |
|
|
41 | (1) |
|
|
42 | (2) |
|
|
44 | (3) |
|
3 Code Instrumentation in PL/SQL |
|
|
47 | (20) |
|
Is the Problem Really in the Database? |
|
|
48 | (1) |
|
|
49 | (9) |
|
Built-in Code Navigation APIs |
|
|
50 | (3) |
|
|
53 | (5) |
|
Code Instrumentation Best Practices |
|
|
58 | (5) |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
63 | (4) |
Part II Linking SQL and PL/SQL |
|
|
4 Expanding the SQL Horizons |
|
|
67 | (36) |
|
Stepping Outside the SQL Box |
|
|
69 | (9) |
|
Making Life Simpler by Switching to PL/SQL |
|
|
69 | (4) |
|
Using PL/SQL to Fill Functionality Gaps |
|
|
73 | (5) |
|
Calling Functions Within SQL |
|
|
78 | (5) |
|
|
78 | (4) |
|
|
82 | (1) |
|
PL/SQL-Related Statistics and Their Impact on Execution Plans |
|
|
83 | (14) |
|
Hardware Costs of PUSQL Functions |
|
|
84 | (7) |
|
Cardinality of PL/SQL Functions |
|
|
91 | (3) |
|
Selectivity of PL/SQL Functions |
|
|
94 | (3) |
|
Oracle Database 12c-Only Features |
|
|
97 | (3) |
|
|
98 | (1) |
|
Adding Functions Inside the WITH Clause |
|
|
99 | (1) |
|
|
100 | (3) |
|
|
103 | (28) |
|
|
104 | (2) |
|
Loading Sets from SQL to PL/SQL |
|
|
106 | (13) |
|
Oracle Database 12c: Implicit Pagination vs. Continuous Fetch |
|
|
112 | (2) |
|
Merging Sets Using PL/SQL |
|
|
114 | (5) |
|
|
119 | (9) |
|
Staying Up to Date with Syntax: Sparse Collections |
|
|
121 | (3) |
|
|
124 | (2) |
|
FORALL and Table Triggers |
|
|
126 | (2) |
|
|
128 | (3) |
|
|
131 | (24) |
|
|
132 | (11) |
|
Data Protection: Constraints vs. Triggers |
|
|
133 | (3) |
|
|
136 | (4) |
|
|
140 | (3) |
|
|
143 | (8) |
|
|
143 | (3) |
|
Dangers of Logical Primary Keys |
|
|
146 | (1) |
|
Handling UPDATE Statements |
|
|
147 | (4) |
|
|
151 | (4) |
Part III Tuner's Toolkit |
|
|
7 Going Beyond Scalar Datatypes |
|
|
155 | (30) |
|
|
156 | (16) |
|
|
157 | (1) |
|
|
158 | (3) |
|
I/O Tuning Considerations |
|
|
161 | (7) |
|
|
168 | (4) |
|
|
172 | (11) |
|
|
173 | (6) |
|
|
179 | (4) |
|
|
183 | (2) |
|
|
185 | (24) |
|
Built-in Caching Techniques |
|
|
186 | (17) |
|
|
186 | (5) |
|
|
191 | (2) |
|
PL/SQL Function Result Cache |
|
|
193 | (10) |
|
Manual Caching Techniques |
|
|
203 | (4) |
|
|
203 | (2) |
|
|
205 | (2) |
|
|
207 | (2) |
|
9 Shooting at a Moving Target |
|
|
209 | (24) |
|
Expanding the Knowledge Base |
|
|
210 | (8) |
|
|
211 | (1) |
|
|
212 | (1) |
|
PL/SQL Function Result Cache Integration |
|
|
213 | (2) |
|
Support for Complex Datatypes |
|
|
215 | (3) |
|
|
218 | (5) |
|
|
218 | (3) |
|
|
221 | (2) |
|
Challenging Dynamic SQL Myths |
|
|
223 | (6) |
|
Myth #1: Dynamic SQL Is Always a Security Risk |
|
|
224 | (1) |
|
Myth #2: Dynamic SQL Is Always Slower Than Regular SQL |
|
|
225 | (1) |
|
Myth #3: Dynamic SQL Always Causes Parsing |
|
|
226 | (2) |
|
Myth #4: DDL Statements Are Only for DBAs |
|
|
228 | (1) |
|
|
229 | (4) |
Part IV PL/SQL in Daily Life |
|
|
10 Tales from the Trenches |
|
|
233 | (18) |
|
|
234 | (3) |
|
|
237 | (3) |
|
|
240 | (4) |
|
|
244 | (4) |
|
|
245 | (2) |
|
|
247 | (1) |
|
|
248 | (3) |
|
11 Code Management in Real-World Systems |
|
|
251 | (20) |
|
The Problem of Code Management |
|
|
252 | (8) |
|
Versioning "Lite" for DBAs |
|
|
253 | (3) |
|
|
256 | (4) |
|
Edition-Based Redefinition and Performance Tuning |
|
|
260 | (6) |
|
Understanding Edition-Based Redefinition |
|
|
261 | (1) |
|
Important Changes to EBR Introduced in Oracle Database 12c |
|
|
262 | (4) |
|
System Environment Differences and Performance-Related Code Management |
|
|
266 | (2) |
|
|
268 | (3) |
|
12 Extra Tips, Tricks, and Ideas |
|
|
271 | (20) |
|
|
272 | (5) |
|
VARCHAR R2 Memory Allocation |
|
|
272 | (2) |
|
|
274 | (2) |
|
|
276 | (1) |
|
|
277 | (7) |
|
Checking Text Strings for Valid Characters |
|
|
278 | (2) |
|
|
280 | (2) |
|
|
282 | (2) |
|
Increasing Processing Complexity |
|
|
284 | (5) |
|
|
284 | (2) |
|
|
286 | (2) |
|
More About Pipelined Functions |
|
|
288 | (1) |
|
|
289 | (2) |
Index |
|
291 | |