©Copyright IBM Corp. 1999 11
Chapter 3. DB2 Storage Objects
This chapter representsan introduction to DB2 for OS/390 (DB2 throughout this
redbook) fort he storageadmi nistratorsinterested in understanding the different
types of data related objects used in a DB2 environment. Special emphasis is
placed on the data sets managed directly byDB2.

3.1 DB2 Overview

DB2 is a database management system based on the relational data model.
Many customers use DB2 for applicationswhich require good performance
and/or high availabilityfor large amounts of data. This data is stored in data sets
directly associated to DB2 tablespac es and distributedacross DB2 databases.
Data in table spaces is often accessed through indexes;indexes are stored in
index spaces.
Data tablespaces can be divided into two groups: system table spaces and user
table spaces.Both of these have identical data attributes. The differenceis that
system tablespac es are required to control and manage the DB2 subsystem and
the user data. The consequence of this is that system table spaces require the
highest availability and some special consideration. User data cannot be
accessed without system data or with obsolete system data.
Inaddit iont o thedata table spaces, DB2 requires a group of traditional data sets,
not associated to table spaces,that are used by DB2 in order to provide the
appropriate high levelof data availability,t heback-up and recovery data sets.
Proper management of these data sets is required to achievet his objective.
In summary,the three main data set types in a DB2 subsystem are:
1. DB2 back-up and recovery data sets
2. DB2 system table spaces
3. DB2 user table spaces

3.2 DB2 Data Objects

DB2 manages data by associatingit to a set of DB2 objects. These objects are
logical objects.S ome of these objects havea physical representation on storage
devices.The DB2 dat a objectsare:
•TABLE
•TABLESPACE
• INDEX
• INDEXSPACE
• DATABASE
• STOGROUP
A complete description of all DB2 objects and their implementation can be found
in the DB2 forOS /390Administration Guide, SC26-8957,in Section 2. Designing
a database.