| Foreword |
|
xvii | |
| Preface |
|
xix | |
| PART ONE - Introduction to DB2 UDB |
|
1 | (194) |
|
|
|
3 | (48) |
|
|
|
5 | (2) |
|
|
|
7 | (8) |
|
|
|
7 | (1) |
|
|
|
8 | (1) |
|
DB2 Enterprise - Extended Edition |
|
|
9 | (1) |
|
|
|
10 | (1) |
|
|
|
11 | (2) |
|
|
|
13 | (2) |
|
|
|
15 | (9) |
|
DB2 Universal Database Clients |
|
|
15 | (2) |
|
|
|
17 | (2) |
|
|
|
19 | (1) |
|
|
|
20 | (1) |
|
|
|
21 | (1) |
|
|
|
22 | (1) |
|
IBM WebSphere Application Server |
|
|
23 | (1) |
|
DB2 Application Development |
|
|
24 | (16) |
|
DB2 Universal Developer's Edition |
|
|
24 | (2) |
|
DB2 Stored Procedure Builder |
|
|
26 | (1) |
|
|
|
27 | (3) |
|
DB2 OLAP Server Starter Kit |
|
|
30 | (1) |
|
DB2 Data Warehouse Center |
|
|
31 | (1) |
|
|
|
32 | (5) |
|
|
|
37 | (3) |
|
|
|
40 | (9) |
|
|
|
40 | (1) |
|
Other Tools Available from the Control Center |
|
|
41 | (1) |
|
|
|
42 | (2) |
|
The Command Line Processor (CLP) |
|
|
44 | (1) |
|
|
|
45 | (4) |
|
|
|
49 | (2) |
|
|
|
51 | (34) |
|
|
|
52 | (17) |
|
Windows and OS/2 Installation |
|
|
52 | (9) |
|
UNIX and Linux Installation |
|
|
61 | (3) |
|
|
|
64 | (1) |
|
|
|
65 | (4) |
|
|
|
69 | (7) |
|
|
|
69 | (3) |
|
|
|
72 | (1) |
|
Using the Command Line Processor |
|
|
73 | (3) |
|
|
|
76 | (6) |
|
DB2 Administration Server (DAS) Instance |
|
|
76 | (2) |
|
|
|
78 | (4) |
|
|
|
82 | (1) |
|
|
|
83 | (2) |
|
|
|
85 | (60) |
|
Roadmap to Distributed Communications |
|
|
87 | (4) |
|
|
|
87 | (2) |
|
Automated Configuration Using Discovery |
|
|
89 | (1) |
|
Automated Configuration Using Access Profiles |
|
|
89 | (1) |
|
|
|
90 | (1) |
|
|
|
91 | (3) |
|
Examining DB2 Directories |
|
|
92 | (2) |
|
|
|
94 | (27) |
|
Automated Configuration Using Discovery |
|
|
94 | (12) |
|
|
|
106 | (6) |
|
|
|
112 | (8) |
|
Summary of Configuring Connections |
|
|
120 | (1) |
|
Configuring Communications |
|
|
121 | (13) |
|
Configuring the DB2 Instance for Communications |
|
|
121 | (7) |
|
Configuring the DAS Instance |
|
|
128 | (2) |
|
Configuring DB2 Discovery |
|
|
130 | (4) |
|
|
|
134 | (5) |
|
Binding Utilities Using the CCA |
|
|
136 | (3) |
|
|
|
139 | (5) |
|
Local Instance Administration |
|
|
140 | (2) |
|
Attaching to an Instance Using the Control Center |
|
|
142 | (2) |
|
|
|
144 | (1) |
|
|
|
145 | (50) |
|
|
|
146 | (42) |
|
|
|
146 | (1) |
|
|
|
146 | (16) |
|
Authorities and Privileges |
|
|
162 | (17) |
|
Windows NT/2000 Considerations |
|
|
179 | (9) |
|
|
|
188 | (6) |
|
|
|
194 | (1) |
| PART TWO - Using SQL |
|
195 | (212) |
|
|
|
197 | (76) |
|
Understanding Database Objects |
|
|
199 | (8) |
|
|
|
199 | (1) |
|
|
|
200 | (1) |
|
|
|
200 | (1) |
|
|
|
201 | (1) |
|
|
|
202 | (1) |
|
|
|
202 | (1) |
|
|
|
203 | (1) |
|
|
|
203 | (1) |
|
|
|
204 | (1) |
|
|
|
205 | (1) |
|
|
|
205 | (1) |
|
|
|
205 | (2) |
|
Managing Database Objects |
|
|
207 | (54) |
|
Using SQL Data Definition Language (DDL) |
|
|
207 | (3) |
|
|
|
210 | (25) |
|
|
|
235 | (13) |
|
|
|
248 | (8) |
|
|
|
256 | (5) |
|
Database Design and Implementation |
|
|
261 | (11) |
|
DB2CERT Database Table Descriptions |
|
|
262 | (3) |
|
Define User-Defined Data Types |
|
|
265 | (1) |
|
|
|
266 | (1) |
|
|
|
267 | (1) |
|
|
|
268 | (1) |
|
|
|
269 | (1) |
|
|
|
270 | (2) |
|
|
|
272 | (1) |
|
Manipulating Database Objects |
|
|
273 | (52) |
|
|
|
274 | (37) |
|
Retrieving the Entire Table |
|
|
274 | (2) |
|
Projecting Columns from a Table |
|
|
276 | (1) |
|
Changing the Order of the Columns |
|
|
276 | (1) |
|
Restricting Rows from a Table |
|
|
277 | (1) |
|
Predicate Evaluation for UDTs |
|
|
278 | (1) |
|
Restricting Rows Using Multiple Conditions |
|
|
279 | (1) |
|
Selecting Columns from Multiple Tables |
|
|
280 | (5) |
|
|
|
285 | (1) |
|
|
|
286 | (2) |
|
|
|
288 | (1) |
|
|
|
289 | (2) |
|
|
|
291 | (2) |
|
|
|
293 | (1) |
|
Searching for String Patterns |
|
|
294 | (1) |
|
Searching for Data in Ranges |
|
|
295 | (1) |
|
Searching for Null Values |
|
|
296 | (1) |
|
Searching for Negative Conditions |
|
|
296 | (1) |
|
Searching for a Set of Values |
|
|
297 | (1) |
|
|
|
298 | (1) |
|
|
|
299 | (3) |
|
|
|
302 | (1) |
|
|
|
303 | (1) |
|
|
|
304 | (2) |
|
|
|
306 | (1) |
|
|
|
307 | (4) |
|
|
|
311 | (9) |
|
|
|
311 | (4) |
|
|
|
315 | (3) |
|
|
|
318 | (2) |
|
|
|
320 | (4) |
|
|
|
320 | (1) |
|
|
|
321 | (1) |
|
|
|
322 | (1) |
|
|
|
322 | (1) |
|
|
|
323 | (1) |
|
|
|
324 | (1) |
|
|
|
325 | (60) |
|
|
|
326 | (4) |
|
|
|
326 | (1) |
|
|
|
326 | (1) |
|
Trigger Example (After Trigger) |
|
|
327 | (1) |
|
Trigger Example (Before Trigger) |
|
|
328 | (2) |
|
|
|
330 | (5) |
|
|
|
335 | (6) |
|
|
|
335 | (1) |
|
|
|
336 | (1) |
|
|
|
337 | (1) |
|
|
|
338 | (3) |
|
|
|
341 | (12) |
|
|
|
341 | (2) |
|
|
|
343 | (1) |
|
|
|
343 | (1) |
|
|
|
344 | (7) |
|
|
|
351 | (2) |
|
Advanced CASE Expressions |
|
|
353 | (2) |
|
Using CASE Expressions to Group Values |
|
|
353 | (1) |
|
Using CASE Expressions in Functions |
|
|
354 | (1) |
|
Structured Types and Typed Tables |
|
|
355 | (24) |
|
Creating Structured Types |
|
|
356 | (2) |
|
Altering Structured Types |
|
|
358 | (1) |
|
|
|
358 | (2) |
|
|
|
360 | (1) |
|
Inserting Rows into a Typed Table |
|
|
361 | (1) |
|
Selecting a Row from a Typed Table |
|
|
361 | (2) |
|
Updating and Deleting Rows from Typed Tables |
|
|
363 | (1) |
|
Pysical Implementation of Typed Tables |
|
|
363 | (3) |
|
|
|
366 | (2) |
|
|
|
368 | (1) |
|
SQL Functions for Typed Tables and Typed Views |
|
|
369 | (1) |
|
|
|
370 | (1) |
|
Considerations When Using Typed Tables and Views |
|
|
371 | (1) |
|
Examples of a Typed Table Hierarchy |
|
|
371 | (8) |
|
|
|
379 | (5) |
|
|
|
379 | (2) |
|
Current Refresh Age Special Register |
|
|
381 | (1) |
|
Considerations of Using Summary Tables |
|
|
382 | (1) |
|
System Catalog Information for Summary Tables |
|
|
383 | (1) |
|
|
|
384 | (1) |
|
|
|
385 | (22) |
|
|
|
387 | (9) |
|
Concurrency Considerations |
|
|
388 | (8) |
|
|
|
396 | (3) |
|
|
|
396 | (1) |
|
|
|
396 | (1) |
|
|
|
397 | (1) |
|
|
|
397 | (1) |
|
Choosing an Isolation Level |
|
|
397 | (2) |
|
|
|
399 | (7) |
|
|
|
399 | (2) |
|
|
|
401 | (1) |
|
|
|
402 | (1) |
|
|
|
403 | (1) |
|
|
|
404 | (1) |
|
LOCKSIZE parameter of ALTER TABLE statement |
|
|
404 | (2) |
|
|
|
406 | (1) |
| PART THREE - DB2 UDB Administration |
|
407 | (266) |
|
|
|
409 | (42) |
|
Processor, Memory, and Disk Resources |
|
|
410 | (3) |
|
|
|
410 | (1) |
|
|
|
411 | (1) |
|
|
|
411 | (2) |
|
|
|
413 | (5) |
|
|
|
414 | (1) |
|
|
|
414 | (1) |
|
|
|
415 | (3) |
|
|
|
418 | (12) |
|
|
|
418 | (1) |
|
|
|
419 | (1) |
|
System Temporary Table Space |
|
|
419 | (1) |
|
|
|
419 | (1) |
|
|
|
420 | (1) |
|
Performance Considerations |
|
|
421 | (6) |
|
|
|
427 | (1) |
|
|
|
427 | (3) |
|
|
|
430 | (11) |
|
|
|
430 | (3) |
|
|
|
433 | (1) |
|
|
|
433 | (1) |
|
|
|
434 | (1) |
|
|
|
435 | (1) |
|
|
|
435 | (1) |
|
|
|
435 | (1) |
|
Creating Table Spaces Using the Control Center |
|
|
435 | (6) |
|
|
|
441 | (8) |
|
|
|
441 | (1) |
|
|
|
441 | (1) |
|
Listing Table Space Containers |
|
|
442 | (1) |
|
|
|
443 | (1) |
|
System Catalog Information About Table Spaces |
|
|
444 | (1) |
|
Adding Containers to DMS Table Spaces |
|
|
445 | (4) |
|
|
|
449 | (2) |
|
|
|
451 | (86) |
|
|
|
452 | (3) |
|
|
|
452 | (1) |
|
Non-Delimited ASCII Files |
|
|
453 | (1) |
|
|
|
453 | (1) |
|
|
|
454 | (1) |
|
|
|
455 | (62) |
|
|
|
455 | (11) |
|
|
|
466 | (13) |
|
|
|
479 | (22) |
|
|
|
501 | (4) |
|
The SET INTEGRITY Statement |
|
|
505 | (5) |
|
|
|
510 | (2) |
|
|
|
512 | (5) |
|
|
|
517 | (17) |
|
Analyzing Data's Physical Organization |
|
|
517 | (5) |
|
|
|
522 | (4) |
|
|
|
526 | (6) |
|
|
|
532 | (2) |
|
|
|
534 | (2) |
|
Modeling a Production Environment |
|
|
534 | (2) |
|
|
|
536 | (1) |
|
|
|
537 | (46) |
|
Database Recovery Concepts |
|
|
538 | (1) |
|
|
|
538 | (1) |
|
|
|
538 | (1) |
|
|
|
539 | (1) |
|
|
|
539 | (1) |
|
|
|
539 | (1) |
|
|
|
539 | (1) |
|
|
|
540 | (2) |
|
Recoverable and Nonrecoverable Databases |
|
|
540 | (1) |
|
Online and Offline Access |
|
|
541 | (1) |
|
|
|
542 | (7) |
|
|
|
543 | (1) |
|
Primary and Secondary Log Files |
|
|
544 | (1) |
|
|
|
544 | (3) |
|
|
|
547 | (2) |
|
Version Recovery Using Backup and Restore |
|
|
549 | (16) |
|
|
|
565 | (8) |
|
|
|
573 | (1) |
|
Other Recovery Considerations |
|
|
574 | (7) |
|
|
|
581 | (2) |
|
|
|
583 | (90) |
|
|
|
585 | (4) |
|
|
|
585 | (2) |
|
Performance Improvement Process |
|
|
587 | (1) |
|
How Much Can a System Be Tuned? |
|
|
587 | (1) |
|
|
|
588 | (1) |
|
DB2 Architecture Overview |
|
|
589 | (9) |
|
|
|
589 | (1) |
|
|
|
590 | (3) |
|
|
|
593 | (2) |
|
|
|
595 | (3) |
|
|
|
598 | (1) |
|
|
|
599 | (30) |
|
Obtaining Database Access Information |
|
|
599 | (1) |
|
|
|
599 | (1) |
|
|
|
600 | (9) |
|
|
|
609 | (8) |
|
Visual Performance Monitors |
|
|
617 | (10) |
|
|
|
627 | (2) |
|
|
|
629 | (28) |
|
|
|
629 | (1) |
|
|
|
630 | (6) |
|
|
|
636 | (10) |
|
Guidelines on Using Explain Output |
|
|
646 | (1) |
|
|
|
647 | (1) |
|
Configuring Database Resources |
|
|
648 | (6) |
|
Configuring Intra-Partition Parallelism |
|
|
654 | (3) |
|
Performance Tuning Scenario |
|
|
657 | (3) |
|
Diagnostics and Problem Determination |
|
|
660 | (12) |
|
Error Messages and SQL Codes |
|
|
660 | (6) |
|
Tracing Problems in DB2 Universal Database |
|
|
666 | (6) |
|
|
|
672 | (1) |
| PART FOUR - Developing Applications |
|
673 | (68) |
|
Application Development Overview |
|
|
675 | (16) |
|
DB2 Application Development Environment |
|
|
676 | (3) |
|
|
|
676 | (3) |
|
DB2 Programming Interfaces |
|
|
679 | (11) |
|
|
|
679 | (3) |
|
Call Level Interface and ODBC |
|
|
682 | (2) |
|
Java Interfaces (JDBC and SQLJ) |
|
|
684 | (1) |
|
|
|
685 | (1) |
|
Microsoft Data Objects (DAO, RDO, ADO, OLE-DB) |
|
|
686 | (1) |
|
Other Interfaces and Tools |
|
|
687 | (3) |
|
|
|
690 | (1) |
|
Development Considerations |
|
|
691 | (28) |
|
|
|
692 | (12) |
|
|
|
692 | (5) |
|
|
|
697 | (7) |
|
Support for CLI and ODBC Programming |
|
|
704 | (9) |
|
Embedded Dynamic Versus Call Level Interface |
|
|
704 | (1) |
|
|
|
705 | (2) |
|
Setting Up the CLI Environment |
|
|
707 | (6) |
|
Support for Java Programming |
|
|
713 | (3) |
|
|
|
714 | (1) |
|
|
|
715 | (1) |
|
|
|
716 | (2) |
|
|
|
718 | (1) |
|
|
|
719 | (22) |
|
|
|
720 | (8) |
|
SQL-Bodied Scalar Functions |
|
|
723 | (2) |
|
SQL-Bodied Table Functions |
|
|
725 | (3) |
|
|
|
728 | (7) |
|
|
|
735 | (3) |
|
|
|
735 | (1) |
|
|
|
736 | (2) |
|
|
|
738 | (2) |
|
|
|
740 | (1) |
| PART FIVE - Appendices |
|
741 | (38) |
|
DB2 UDB V7.1 Certification Test Objectives |
|
|
743 | (777) |
|
DB2 Family Fundamentals (512) |
|
|
744 | (2) |
|
DB2 for OS/2, Windows, and UNIX Database Administration (513) |
|
|
746 | (3) |
|
Sample Questions (Fundamentals - Exam 512) |
|
|
749 | (13) |
|
Sample Questions (Administration - Exam 513) |
|
|
762 | (14) |
|
|
|
776 | (1) |
|
|
|
777 | (2) |
|
|
|
777 | (2) |
| Index |
|
779 | |