©HCCS & IBM® 2008 Stephen Linkin1 Database Management Systems On z/OS Stephen S. Linkin Houston Community College © HCCS and IBM 2008
©HCCS & IBM® 2008 Stephen Linkin2 Database Management Systems For The Mainframe What Is A Database? Why Use A Database? Who Is The Database Administrator?
©HCCS & IBM® 2008 Stephen Linkin3 How Is A Database Designed? Major Definitions Entities Data Attributes Entity Relationships ORDER Ord No: Ord No: Cust: Cust: Acme Widgets ITEMS 1.Boxes 2.Widgets 3. Coyotes
©HCCS & IBM® 2008 Stephen Linkin4 How Is A Database Designed? Major Definitions Entities Data Attributes Entity Relationships Application Functions Access Paths
©HCCS & IBM® 2008 Stephen Linkin5 What Is A Database Management System? What Structures Exist In A Relational Database? Database Tables Indexes Keys
©HCCS & IBM® 2008 Stephen Linkin6 What Is DB2? Data Structures In DB2 Views Table Space Index Space Storage Groups
©HCCS & IBM® 2008 Stephen Linkin7 What Is DB2? Schema Structures User-defined Data Type (UDT) User-Defined Function (UDF) Trigger Large Object (LOB) Binary Large Objects (BLOB’s) Character Large Objects (CLOB’s) Double Byte Character Large Objects (DBCLOB’s) Stored procedure
©HCCS & IBM® 2008 Stephen Linkin8 What Is DB2? System structures Catalog and directory Buffer pools Active and archive logs
©HCCS & IBM® 2008 Stephen Linkin9 What Is DB2? DB2 Address Spaces System services Database services Lock manager services (IRLM) Using DB2 Utilities Using DB2 Commands
©HCCS & IBM® 2008 Stephen Linkin10 What Is SQL? DML DDL DCL
©HCCS & IBM® 2008 Stephen Linkin11 Application Programming For DB2 DB2 program preparation: the flow DCLGEN PRECOMPILE
©HCCS & IBM® 2008 Stephen Linkin12 Application Programming For DB2 DB2 program preparation: the flow DCLGEN PRECOMPILE BIND EXEC SQL SELECT EMPNO, LASTNAME SELECT EMPNO, LASTNAME INTO :EMPNO, :LASTNAME FROM EMP INTO :EMPNO, :LASTNAME FROM EMPEND-EXEC.
©HCCS & IBM® 2008 Stephen Linkin13 Application Programming For DB2 DB2 program preparation: the flow DCLGEN PRECOMPILE BIND RUN
©HCCS & IBM® 2008 Stephen Linkin14 Functions Of The IMS Database Manager
©HCCS & IBM® 2008 Stephen Linkin15 Structure Of The IMS Database Subsystem
©HCCS & IBM® 2008 Stephen Linkin16 Structure Of The IMS Database Subsystem The IMS Hierarchical Database Model Data Access Sequence
©HCCS & IBM® 2008 Stephen Linkin17 Structure Of The IMS Database Subsystem The IMS Hierarchical Database Model Data Access Sequence IMS Use Of z/OS Services Evolution Of IMS
©HCCS & IBM® 2008 Stephen Linkin18 Summary Read The Redbook