| Oakwood Computing Ltd 1 Dornton Road South Croydon Surrey CR2 7DR UK Tel: +44 (0) 20 8686 7266 courses@oakwoodcomputing.co.uk |
| Updated 11 November, 2003 |
Contents: Top
Objectives
Introduction
Comparison of DB2 tables with VSAM files and hierarchical databases (e.g.
IMS, TOTAL); DB2 and the Relational Model; tasks and personnel involved in
implementing a DB2 system; DML, DCL, and DDL; sample uses of DB2; DB2 address
spaces, attachments to: CICS, TSO, IMS, batch; stored procedures; trailer
site, online reorganisation. Web Enabled DB2, DB2 Connect.
Tables and DB2 architecture
How data is arranged; storage
groups, databases, tablespaces, indexes, tables, views;
basic table design, keys, table splitting; referential integrity, foreign
keys, constraints, triggers; functions of the catalog tables; typical disk
requirements; physical storage considerations.
SQL overview
SELECT statement, predicates, JOIN and UNION queries; scalar
functions; labeled durations;column functions:
BETWEEN, NULL, LIKE, EXISTS, IN; GROUP BY; UPDATE, DELETE, INSERT; CASE
expressions; special registers; subquery with IN; subquery with NOT IN; correlated
subselect; EXISTS, ANY, ALL; inner and outer
joins; dynamic SQL; security: GRANT and REVOKE.
DB2 commands
How to enter commands; starting and stopping DB2; starting and stopping a
database; displaying and cancelling threads; DISPLAY UTILITY, TERM UTILITY;
traces; commands for log, bufferpools, procedures.
DB2 utilities
Invoking utilities: CHECK INDEX, CHECK DATA, IMAGECOPY, LOAD, UNLOAD, MERGECOPY,
MODIFY, QUIESCE, RECOVER, REORG, REPAIR, REPORT, RUNSTATS, STOSPACE.
Logging
Active and archive log datasets; role of the bootstrap dataset; log manager,
log buffers, log write; CICS and DB2 logging, two-phase commit.
Locking and integrity
Overview of locking; COMMIT,
ROLLBACK. Lock types: transaction, page level,
row level, table level, tablespace level; duration of locks; bind options;
claim and drain locks.