Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

MAINFRAMES

DB2 – IBM Data Base


NAGARAJU DOMALA
DB2

“Introduction to DBMS and DB2


Overview“
Session 1

Nagaraju Domala
Session 1 - Objectives

On completion of this session the learner will be able to:

 Explain DBMS, Database and different database models


 Explain evolution of DB2 and how it is supported on
Mainframe Environment`

Nagaraju Domala
Recap On RDBMS Concepts

Database is a collection of logically related objects.


Any Database should have the following features
 Data Sharing
 Security
 Recovery
 Data Definition
 Physical Storage
 Accessing
 Referential Integrity
DBMS:- It is a layer between application program & data.
It is a software that handles the management of database.

Nagaraju Domala
Database Model
Three Types of Data model

1. Hierarchical Data Model


2. Network Data Model and
3. Relational Data Model

In hierarchical model, it uses embedded pointers to


create tree like structure where in dependent Element will
have only one parent.

EX: IMS is a hierarchical type of database.

Nagaraju Domala
Database Model - Diagram

HIERARCHICAL NETWORK

E1
E1

E2 E2 E4

E3 E3

Nagaraju Domala
Database Model

In network model, it uses embedded pointers to create


mesh like structure where in dependent Element will have
more than one parent.

EX: IDMS is a Network type of database.

In Relational model, there are no pointers, but each


entity is represented as table.

EX: Db2 is a Relational type of database.

Nagaraju Domala
TABLE CONCEPTS

 ONE TABLE FOR EACH ENTITY


 EMPLOYEE, DEPARTMENT & PROJECT are
the three tables which stores their respective
information.

EMP DEPT PROJ

Nagaraju Domala
TABLE CONCEPTS

COLUMN PER DATA ELEMENT

• ONE COLUMN FOR EACH ELEMENT OF DATA NEEDED

TABLE : EMP

EMPNO LASTNAME WORKDEPT JOB ...

Nagaraju Domala
DB2 HISTORY

Relational Model:

 Developed by Dr.E.F.Codd in 1969-70.

 DB2 is a RDBMS for the MVS operating system


environment.

 IBM released DB2 Version 1 delivered in 1984 and


version 4 in 1995 and the latest version is 9.1 for Z/OS

Nagaraju Domala
Environment - DB2 STRUCTURE

USER APPLICATION
MANAGER DATA

DATA
MANAGER
APPLICATION
PROGRAMS

Nagaraju Domala
Environment - DB2 STRUCTURE

MVS
TSO
USERDATA PRG

IMS DB2
PRG

CICS
PRG

Nagaraju Domala
DB2 SUBSYSTEM
ATTACHES

APPLICATION S QMF
DB2 APPLICATIONS
APPLICATIONS APPLICATION S
(ONLINE)
(ONLINE/ (ONLINE) (ONLINE/
BATCH) BATCH) (ONLINE)
(ONLINE/
BATCH)

Call Attach Facility TSO CICS IMS

DB2 DATABASE IMS DATABASE

Nagaraju Domala
DB2 Components
Major Components:

System Services - This supports system operation,


operator communication, logging etc.
Locking services - This provides necessary controls for
managing concurrent access to data.
Database services - This supports definition, retrieval, and
update of user and system data.
Distributed data facility - provides distributed database
support.

Nagaraju Domala
DB2 as perceived by an individual User

User (Application Programming or Interactive)

SQL

VIEW 1 VIEW 2

BaseTable B1 BaseTable B2 BaseTable B3 BaseTable B4

VSAM VSAM VSAM VSAM


Dataset D1 Dataset D2 Dataset D3 Dataset D4

Nagaraju Domala

You might also like