Features, Environment, Tablespaces, Varian Demo




CS185c

Chris Pollett

Jan. 28, 2010

(These notes are based on slides which are copyright IBM)

Outline

DB2 Features

DB2 and Its Environment

Graphics showing DB2 and the systems it can interact with

The System View

Diagram showing DB2 within a System setting

User Interaction with DB2

A User Running a SELECT statement on DB2

Programming Interfaces

The following systems have developer communities to support DB2 integration:

DB2 Utilities

Majors utilities of DB2

Example of What SPUFI looks like

SPUFI Screenshot showing SQL Statements

Results of SPUFI Query

SPUFI Result of an SQL Statements

An Example 3270 Transaction

3270 Screenshot of a SQL Report

DB2 Data Structures

Table Spaces

Table Space Organization

Types of Tablespaces

Tablespaces come in different flavors which (except for XML) can be specified when you do CREATE TABLESPACE:

Segmented Table spaces

Segmented table spaces can be used to store more than one (usually relatively small) table:

Segmented Tablespace containing four tables with references.

Segments are grouped by page. Each segment holds records from only one table. Each segment contains the same number of pages, and each table uses only as many segments as it needs. Segments belonging to the same table are chained together.

Segmented table spaces hold a maximum of 64 GB of data and can contain one or more VSAM data sets.

More Facts about Segmented Tablespaces