CENG497 - DB2 for z/OS Seminar – May 26th 2011 – Middle East Technical
University, Ankara




  DB2 for z/OS Architecture in
  Nutshell
  Cüneyt Göksu
  DB2 SME, Information Champion, IBM Gold Consultant




                                                                         1
Who am I ?

BS, Computer Science, YTU, Istanbul, 1990

MBA, Marmara University, Istanbul, 1992

MS in CS, IIT, Chicago, 1994

20+ years in “Information Management” Technologies

1996 IDUG (International DB2 Users Group)

2004 TDUG (Turkish DB2 Users Group)

2008-2010 IBM Data Champion

2009 IBM Gold Consultant

2011 IDUG BOD
                                                     2
Mainframe – Legend Never Ends

•1964: IBM® System/360™
•Obsolete? New trend?
•Trusted for mission-critical data
•Capability to maintain both old and new applications
•SOA (Service-Oriented Architecture) enabled
•z/OS – Most widely used mainframe operating system
•DB2 for z/OS – IBM’s mainframe relational database
 management system – Since 1983!

                                                        3
4
5
6
What is DB2 for z/OS?
• Relational Data Base Management System (RDBMS)
 – Data base consists of tables
   • Simple concepts
   • Dynamic relationships
 – Structured query language (SQL)
   • High level
       – Data Manipulation Language (DML)
       – Data Definition Language (DDL)
       – Data Control Language (DCL)
   • User specifies WHAT not HOW
 – RDBMS facilities
   •   Integrity
   •   Dynamic definition of DB2 objects
   •   Active catalog
   •   Recovery / restart
   •   Continuous operations
   •   Security
   •   Interactive tools
                                                   7
The system’s view
                                                               • Distributed
                            Utility                             Applications
                       Utility

WebSphere     TSO      BATCH          DB2         CICS          IMS
Application
  Server
                                                                      Trxb
                                                                  Trxa
                       Prog2
   Appl2

 Appl1
                                                      Trx2
               Prog1                                Trx1



                                            • DB2 receives MANY requests
                                              from MANY user programs to
                                              access potentially the SAME data
                                            • Besides USER PROGRAMS, DB2
                                              also receives requests from
                                              UTILITIES
                                                                                 8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
The Risks of Database Failures




                                 50
51
52
53
54
55
56
57
COPY/RECOVER utilities



                                            RECOVER
    UPDATE        UPDATE   DELETE

Log Time




            COPY

                                     DISK
                                    CRASH




           IMAGE COPY
                                                      58
59
60
DB2 Data Structures




                      61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
DB2 Concurrency Control




                          76
Data integrity and concurrency
                          EMPLOYEE Table

     Prog1                                                       Prog2




 1            EXCLUSIVE
                          Row
                LOCK
     UPDATE
                                                    STOP
                                                  ... WAIT ...
                                                                         2
              RELEASE




                                                                  ..
               LOCK                                              SELECT




                                                                  .
                                             OK
 3                                             SHARED
                                                LOCK
     COMMIT
                                                         4

              DB2 must maintain data integrity and also
                  provide maximum concurrency
                                                                             77
78
79
80
81
82
83
84
85
86
87
DB2 Security




               88
Roles and interfaces in DB2

                                                               Security
                                                             Administrator

                                                              Operations

                                              System            Data
                                            Administration   Administrator
                                                               Capacity
 Functional     Technical                                      Planner
  Designer      Designer
                                                                z/OS
                             Database                          Sysprog
                            Administrator
              Programmer                                      CICS/IMS
                                                               Sysprog
                                                                 TP
                                                              Specialist
                                                                             89
90
91
92
93
Distributed Data Facility




                            94
Location transparency, Scalability, Phased growth, Portability of application

                                                                                95
96
97
98
99
100
101
102
103
104
105
106
107
DB2 for z/OS data sharing

                 z/OS            z/OS              z/OS

                  DB2             DB2              DB2




                 z/OS                              z/OS

                  DB2            SHARED            DB2
                                  DASD




                 z/OS            z/OS              z/OS

                  DB2             DB2              DB2




 •   Improved availability              • Incremental processing growth
 •   Huge queries feasible              • Configuration flexibility
 •   SYSPLEX hardware required          • Dynamic workload balancing
 •   Single shared catalog
                                                                          108
CENG497 - DB2 for z/OS Seminar – May 26th 2011 – Middle East Technical
University, Ankara




  Q&A
  Cüneyt Göksu
  DB2 SME, Information Champion, IBM Gold Consultant
  Cuneyt.Goksu@Gmail.com




                                                                         109

DB2 for z/OS Architecture in Nutshell

  • 1.
    CENG497 - DB2for z/OS Seminar – May 26th 2011 – Middle East Technical University, Ankara DB2 for z/OS Architecture in Nutshell Cüneyt Göksu DB2 SME, Information Champion, IBM Gold Consultant 1
  • 2.
    Who am I? BS, Computer Science, YTU, Istanbul, 1990 MBA, Marmara University, Istanbul, 1992 MS in CS, IIT, Chicago, 1994 20+ years in “Information Management” Technologies 1996 IDUG (International DB2 Users Group) 2004 TDUG (Turkish DB2 Users Group) 2008-2010 IBM Data Champion 2009 IBM Gold Consultant 2011 IDUG BOD 2
  • 3.
    Mainframe – LegendNever Ends •1964: IBM® System/360™ •Obsolete? New trend? •Trusted for mission-critical data •Capability to maintain both old and new applications •SOA (Service-Oriented Architecture) enabled •z/OS – Most widely used mainframe operating system •DB2 for z/OS – IBM’s mainframe relational database management system – Since 1983! 3
  • 4.
  • 5.
  • 6.
  • 7.
    What is DB2for z/OS? • Relational Data Base Management System (RDBMS) – Data base consists of tables • Simple concepts • Dynamic relationships – Structured query language (SQL) • High level – Data Manipulation Language (DML) – Data Definition Language (DDL) – Data Control Language (DCL) • User specifies WHAT not HOW – RDBMS facilities • Integrity • Dynamic definition of DB2 objects • Active catalog • Recovery / restart • Continuous operations • Security • Interactive tools 7
  • 8.
    The system’s view • Distributed Utility Applications Utility WebSphere TSO BATCH DB2 CICS IMS Application Server Trxb Trxa Prog2 Appl2 Appl1 Trx2 Prog1 Trx1 • DB2 receives MANY requests from MANY user programs to access potentially the SAME data • Besides USER PROGRAMS, DB2 also receives requests from UTILITIES 8
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
    The Risks ofDatabase Failures 50
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
    COPY/RECOVER utilities RECOVER UPDATE UPDATE DELETE Log Time COPY DISK CRASH IMAGE COPY 58
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
    Data integrity andconcurrency EMPLOYEE Table Prog1 Prog2 1 EXCLUSIVE Row LOCK UPDATE STOP ... WAIT ... 2 RELEASE .. LOCK SELECT . OK 3 SHARED LOCK COMMIT 4 DB2 must maintain data integrity and also provide maximum concurrency 77
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
    Roles and interfacesin DB2 Security Administrator Operations System Data Administration Administrator Capacity Functional Technical Planner Designer Designer z/OS Database Sysprog Administrator Programmer CICS/IMS Sysprog TP Specialist 89
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
    Location transparency, Scalability,Phased growth, Portability of application 95
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
    DB2 for z/OSdata sharing z/OS z/OS z/OS DB2 DB2 DB2 z/OS z/OS DB2 SHARED DB2 DASD z/OS z/OS z/OS DB2 DB2 DB2 • Improved availability • Incremental processing growth • Huge queries feasible • Configuration flexibility • SYSPLEX hardware required • Dynamic workload balancing • Single shared catalog 108
  • 109.
    CENG497 - DB2for z/OS Seminar – May 26th 2011 – Middle East Technical University, Ankara Q&A Cüneyt Göksu DB2 SME, Information Champion, IBM Gold Consultant [email protected] 109