You are on page 1of 9

PART ONE - Introduction to DB2 UDB

Product Overview
DB2 and e-business
DB2 Universal Database
DB2 Enterprise Edition
DB2 Workgroup Edition
DB2 Enterprise-Extended Edition
DB2 Personal Edition
DB2 Satellite Edition
DB2 Everyplace
DB2 Universal Database Connectivity
DB2 Universal Database Clients
DB2 Connect
DB2 Replication
DB2 NetData
DB2 Relational Connect
DB2 DataJoiner
IBM WebSphere Application Server
DB2 Application Development
DB2 Universal Developer’s Edition
DB2 Stored Procedure Builder
DB2 Relational Extenders
DB2 OLAP Server Starter Kit
DB2 Data Warehouse Center
DB2 Warehouse Manager
DB2 Data Links Manager
DB2 Administration
Control Center
Other Tools Available from the Control Center
Wizards
vi
The Command Line Processor (CLP)
Visual Explain
Summary
Getting Started
Product Installation
Windows and OS/ Installation
UNIX and Linux Installation
DB2 Client Installation
Distributed Installation
The DB2 Environment
DB2 Profile Registry
Environment Variables
Using the Command Line Processor
DAS and DB2 Instances
DB2 Administration Server (DAS) Instance
DB2 Instances
Using First Steps
Summary
Getting Connected
Roadmap to Distributed Communications
DB2 Discovery
Automated Configuration using Discovery
Automated Configuration Using Access Profiles
Manual Configuration
DB2 Directories
Examining DB2 Directories
Configuring DB2 Clients
Automated Configuration using Discovery
Using Access Profiles
Manual Configuration
Summary of Configuring Connections
Configuring Communications
Configuring the DB2 Instance for Communications
Configuring the DAS Instance
Configuring DB2 Discovery
Binding Utilities
Binding Utilities Using the CCA
vii
Database Objects Getting Started Getting Connected Controlling
Data
Access
Instance Administration
Local Instance Administration
Attaching to an Instance using the Control Center
Summary
Controlling Data Access
Security
Overview of Security
Authentication
Authorities and Privileges
Windows NT/ Considerations
Auditing
Summary
PART TWO - Using SQL
Database Objects
Understanding Database Objects
Data Types
Tables
Schemas
Table Spaces
Views
Indexes
Packages
Buffer Pools
Transactions
Locks
Log Files
Creating a DB2 Database
Managing Database Objects
Using SQL Data Definition Language (DDL)
Data Types
Tables
Views
Indexes
Database Design and Implementation
DB2CERT Database Table Descriptions
viii
Define User-Defined Data Types
Defining Columns
Keys
Defining Primary Keys
Defining Unique Keys
Defining Foreign Keys
Summary
Manipulating Database Objects
Data Retrieval
Retrieving the Entire Table
Projecting Columns from a Table
Changing the Order of the Columns
Restricting Rows from a Table
Predicate Evaluation for UDTs
Restricting Rows Using Multiple Conditions
Selecting Columns from Multiple Tables
Using Correlation Names
Sorting Your Output
Derived Columns
DB2 Functions
Grouping Values
Eliminating Duplicates
Searching for String Patterns
Searching for Data in Ranges
Searching for Null Values
Searching for Negative Conditions
Searching for a Set of Values
Sub-Queries
Quantified Predicates
Case Expressions
Nested Table Expressions
Scalar Fullselect
Common Table Expressions
Set Operators
Data Modification
Inserting Data Records
Updating Data Records
Removing Data
ix
Database Objects Getting Started Getting Connected Controlling
Data
Access
View Classification
Deletable Views
Updatable Views
Insertable Views
Read-Only Views
Inoperative views
Summary
Advanced SQL
Triggers
Trigger Usage
Trigger Activation
Trigger Example (After Trigger)
Trigger Example (Before Trigger)
Recursive SQL
Outer Join
Left Outer Join
Right Outer Join
Full Outer Join
Combining Outer Joins
OLAP Features
STAR Schemas
OLAP Indexes
STAR Joins
Super Grouping
MOVING FUNCTIONS
Advanced CASE Expressions
Using CASE expressions to Group Values
Using CASE expressions in Functions
Structured Types and Typed Tables
Creating Structured Types
Altering Structured Types
Creating Typed Tables
Dropping Typed Tables
Inserting Rows into a Typed Table
Selecting a Row from a Typed Table
Updating and Deleting Rows from Typed Tables
Physical Implementation of Typed Tables
Reference Columns
x
View Hierarchies
SQL Functions for typed tables and typed views
TYPE Predicate
Considerations when using Typed tables and views
Examples of a Typed Table Hierarchy
Summary Tables
Creating a summary table
CURRENT REFRESH AGE Special Register
Considerations of using Summary Tables
System Catalog Information for Summary Tables
Summary
Concurrency
Concurrency
Concurrency Considerations
Isolation Levels
Uncommitted Read
Cursor Stability
Read Stability
Repeatable Read
Choosing an Isolation Level
Locking
Lock Attributes
Lock Conversion
Lock Escalation
Lock Wait Behavior
Lock Table Statement
LOCKSIZE parameter of ALTER TABLE statement
Summary
PART THREE - DB2 UDB Administration
Data Storage Management
Processor, Memory and Disk Resources
Processors
Memory
Disk
DB2 Storage Model
xi
Database Objects Getting Started Getting Connected Controlling
Data
Access
Buffer Pool
Table Spaces
SMS Table Spaces
DMS Table Spaces
Containers
Directory Containers
Device Containers
File Containers
Table Space Design
Regular Table Space
Long Table Space
System Temporary Table Space
Extentsize
Pagesize
Performance Considerations
Long Field Data
Large Object Data
Implementation Examples
Creating a Database
Creating Buffer Pools
Creating Table Spaces
Creating Tables
Dropping Table Spaces
Dropping Buffer Pools
Dropping a Database
Creating Table Spaces Using the Control Center
Table Space Maintenance
Database Files
Listing Table Spaces
Listing Table Space Containers
Table Space States
System Catalog Information About Table Spaces
Adding Containers to DMS Table Spaces
Summary
Maintaining Data
Moving data
Delimited ASCII files
Non-Delimited ASCII Files
xii
PC/IXF Files
Worksheet Format Files
Data Movement Utilities
The Export Utility
The IMPORT Utility
The Load Utility
The LOAD QUERY Command
The SET INTEGRITY Statement
The DB2MOVE Utility
The DB2LOOK Utility
Data Maintenance
Analyzing Data’s Physical Organization
Table Reorganization
Generating Statistics
The Rebind_Utility
Data Maintenance Process
Modelling a Production Environment
Summary
Database Recovery
Database Recovery Concepts
Unit of Work
Transaction
Types of Recovery
Crash Recovery
Version Recovery
Roll-Forward Recovery
Recovery Strategies
Recoverable and Non-Recoverable Databases
Online and Offline Access
Use of Log Files
Log Buffers
Primary and Secondary Log Files
Types of Logging
Log File Usage
Version Recovery using Backup and Restore
Roll-Forward Recovery
Managing Log Files
Other Recovery Considerations
xiii
Database Objects Getting Started Getting Connected Controlling
Data
Access
Summary
Monitoring and Tuning
Elements of Performance
Tuning Guidelines
Performance Improvement Process
How Much Can a System Be Tuned?
A Less Formal Approach
DB2 Architecture Overview
Process Model
Query Parallelism
DB2 Memory Usage
SQL Compiler Overview
DB2 Sorting Methods
Database Monitoring
Obtaining Database Access Information
Database Monitors
Snapshot Monitoring
Event Monitoring
Visual Performance Monitors
DB2 Governor
SQL Monitoring
Explain Tables
Gathering Explain Data
Examining EXPLAIN Data
Guidelines on Using EXPLAIN Output
Index Advisor Facility
Configuring Database Resources
Configuring Intra-Partition Parallelism
Performance Tuning Scenario
Diagnostics and Problem Determination
Error Messages and SQL Codes
Tracing Problems in DB2 Universal Database
Summary
PART FOUR - Developing Applications
Application Development Overview
xiv
DB2 Application Development Environment
Software Requirements
DB2 Programming Interfaces
Embedded SQL
Call Level Interface and ODBC
Java Interfaces (JDBC and SQLJ)
Native DB2 APIs
Microsoft Data Objects (DAO, RDO, ADO, OLE-DB)
Other Interfaces and Tools
Summary
Development Considerations
Embedded SQL Overview
Creating Packages
Binding Applications
Support for CLI and ODBC Programming
Embedded Dynamic versus Call Level Interface
ODBC versus CLI
Setting Up the CLI Environment
Support For Java Programming
JDBC Programming
SQLJ Programming
Stored Procedure Builder
Summary
Development SQL
User-Defined Functions
SQL-Bodied Scalar Functions
SQL-Bodied Table Functions
Structured Datatypes
Schemas and Aliases
Schema
Alias
COMMIT and ROLLBACK
Summary
xv
PART FIVE - Appendices
Appendix A - DB2 UDB V
Certification Test Objectives
DB2 Family Fundamentals ()
DB2 for OS/, Windows, and UNIX Database Adminstration ()
Sample Questions (Fundamentals - Exam )
Sample Questions (Administration - Exam )
Answers
Appendix B - CD-ROM Installation
DB2DEMO
Index