Database
DB2 Training class 01
Database Structures
Network Structures (e.g. IDMS)
Many to Many relationships
Complex structure using Pointers
Best for Keeping storage
Hierarchical Structures (e.g. IMS DB)
One to Many Relationships
Inverted Tree like tructure
Best for storing parent and child type entities
Relational Structures (e.g. DB2)
One to Many! Many to One
Best for ease of data retrieval
Data and Database
Data " Collection of facts suita#le for communications
DB2 $atalog
DB2 %irectory
&cti'e (og
Bu**er )ools
Data "b#ects " o#?ects that are created and used #y the
users&
DB2 Data Objects
DB2 Data Objects
Storage +rou) It is a collection of direct access volumes! all
of the same device type
Database $ collection of logically related o#?ects like ta#le
spaces! index spaces! ta#les etc& a storage group and #uffer pool
must #e defined for each data#ase
able S)ace 7ogical address space on the secondary storage to
hold one or more ta#les& It is the storage unit for recovery and
reorgani%ing purpose Three types
imple
egmented
Partitioned
DB2 Data Objects
Sim)le able S)aces can contain more than one stored ta#les
i&e& $ single page can contain ro's from all the ta#les
toring more than one ta#les might ena#le faster retrieval for
?oins using the ta#les #ut creates locking pro#lem
Segmente% able S)ace contain more than one stored ta#les!
#ut in a segmented space& a segment consists of a logically
contiguous set of pages and no page is allo'ed to contain
records from more than one ta#le&