DB2 Data Structures




CS185c

Chris Pollett

Feb. 2, 2010

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

Outline

Introduction

Bird's eye View of DB2 Data Structures

The following picture illustrates the principle data sturctures of DB2:

Image showing the persistent and in memory data structures of DB2

Persistent Structures - Databases

Persistent Structures - Table Spaces

Persistent Structures - Tables

Quiz

Which of the following statements is true?

  1. DB2 and IMS cannot interoperate with each other.
  2. The z/OS platform is 32 bit.
  3. Each segment in a segmented table space has the same number of pages.

Types of Tables

DB2 supports five main types of tables:

Persistent Structures - Page

Persistent Structures - Storage Group

More on Storage

There are also a couple of options for how storage for table spaces is managed with regards to DB2. You can have:

Ways you can manipulate a storage group

Persistent Storage Structures - Indexes

Types of Indexes

DB2 supports several types of indexes which we will talk more about as the semester progresses.

System Database - Catalog

System Database - More Catalog

Catalog Structure

Major table spaces of the Catalog are :

System Database - Directory

Directory Structure

Major table spaces of the Directory are :