Finish Table Spaces, Start Architecture




CS185c

Chris Pollett

Feb. 9, 2010

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

Outline

Introduction

How much data can be stored in a LOB column?

This depends on the kind of table space the base table is in. In all cases, though, the actual LOB data is stored in its own table space.

Image of table of maximum LOB sizes arranged by table space type

Partitioning and LOBs

Image showing a LOB column split among partitions

More LOB data in each column can be stored in a partitioned table space because each partition must have a LOB table space. One can assign the number of partitions (from 1 to 4096).

XML Table Spaces

Image showing an base table associated with an XML table space

More on XML Tables Spaces

XML Table Spaces and Partitioning

Image showing a single XML table associated with a partitioned tabled

Quiz

Which of the following statements is true?

  1. DB2 only supports one type of index.
  2. The EDM pool might be used to store internal representation of query plans.
  3. Users can directly query the DB2 Directory

Universal Table Spaces

Partition-by-Range

Partition-by-Growth

Partition-by-Range and Auxiliary Objects

Image showing a partition-by-range table space as well as XML and LOB table spaces

Partition-by-Growth and Auxiliary Objects

Image showing a partition-by-range table space as well as XML and LOB table spaces

Views

Example View

The following view might be used for people who don't have access to certain privileged columns:

A view defined on only some columns of a table

DB2 Address Space and System Architecture

Distinct Sources of Requests