Top Banner
www.bmc.com 1 6/22/99 ©1999 BMC Software, Inc. All Rights Reserved. DB2 UDB for OS/390 Version 7 An Overview Craig S. Mullins Director, DB2 Technology Planning BMC Software http://www.bmc.com Visit Craig’s web site at: http://
40

DB2 UDB for z/OS Version 7 - An Overview

Dec 02, 2014

Download

Technology

Craig Mullins

An overview of mainframe DB2 V7
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: DB2 UDB for z/OS Version 7 - An Overview

www.bmc.com

1 6/22/99 ©1999 BMC Software, Inc. All Rights Reserved.

DB2 UDB for OS/390 Version 7

An Overview

Craig S. MullinsDirector, DB2 Technology PlanningBMC Softwarehttp://www.bmc.com

Visit Craig’s web site at:

http://www.craigsmullins.com

Page 2: DB2 UDB for z/OS Version 7 - An Overview

2 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Agenda

DB2 and S/390 Status CheckDB2 V7 Enhancements e-Business Application Data Management Business Intelligence Family Compatibility Other New Features

Trends for the FutureSummary

Page 3: DB2 UDB for z/OS Version 7 - An Overview

3 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

S/390 Status Check

S/390 rebranded as zSeries 900 runs OS/390, Linux, and z/OS

OS/390 becomes z/OS 64 bit 99.999% up time Workload License Manager Continued Investment in Mainframe

Page 4: DB2 UDB for z/OS Version 7 - An Overview

4 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Where does S/390 play?

>70% of data still resides on S/390 > 95% of S/390 data will be front-ended to the web >80% of IMS and CICS applications will be front-ended to the web 20-35% S/390s will become web-servers

Page 5: DB2 UDB for z/OS Version 7 - An Overview

5 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Status Check

DB2 licenses growing 25% annually since 1996 10,000+ licenses as of end of 1999

Complex environments More components, applications, data

Parallel Sysplex - scalability but not availability

Staffing Shrinking pool of available talent

e-Business shrinks maintenance windows No longer a “batch” window - 24x7x366

Page 6: DB2 UDB for z/OS Version 7 - An Overview

6 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2: Where are we Now?

According to IBM (Dan Wordman [IBM], IDUG May 2000)

50% of IBM’s DB2 Customers are using Version 5 in production

20% have Version 6 in house (at least testing)

More and more shops are beginning to move to DB2 V6 now Year 2000 scare is past us Version 6 Refresh / RML (2Q2000) More stability

Version 7 is just around the corner...

Page 7: DB2 UDB for z/OS Version 7 - An Overview

7 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Too Much, Too Quick?

New functionality in DB2 V5 and V6 delivered through APARs:

http://www.software.ibm.com/data/db2/os390/v5apar.html http://www.software.ibm.com/data/db2/os390/v6apar.html

Identity Columns JavaStoredProcedures

REXX Languageand Stored

Procedures

REBUILDINDEXUtility

More than

15 Tables

in a Join

SQLJ Support

SQL ProcedureLanguage

Index Screening for List Prefetch

Page 8: DB2 UDB for z/OS Version 7 - An Overview

8 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

E-Business Enhancements

E-busi-ness (e’biz’nis) The transformation of key business processes through the use of Internet technologies.

Page 9: DB2 UDB for z/OS Version 7 - An Overview

9 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

What is XML?

XML stands for eXtensible Markup Language.

Like HTML, XML is based on SGML(Standard Generalized Markup Language)

HTML uses tags to describe the appearance of data on a page, whereas XML uses tags to describe the data itself, instead of its appearance.

Allows documents to be self-describing, through the specification of tag sets and the structural relationships between the tags.

XML is a meta language - a language used to define other languages; these languages are collected in dictionaries called Document Type Definitions (DTDs).

The DTD stores definitions of tags for specific industries or fields of knowledge. So, the meaning of a tag must be defined in a DTD before it can be used. The DTD for an XML document can be either part of the document or stored in an external file.

Page 10: DB2 UDB for z/OS Version 7 - An Overview

10 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

XML Extender

A new data type extender for XML documentsLike Video, Image, Audio, and Text ExtendersCombine UDT, UDFs, and triggers for functionality

XML document stored in a column -or-XML components stored as parts of multiple

columns in multiple tablesCan formulate XML documents from existing

DB2 tablesCan search XML documents text and sectionsUDTs for XML: XMLVARCHAR and XMLCLOB

Page 11: DB2 UDB for z/OS Version 7 - An Overview

11 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Net.Data Enhancements

Built-in XML exploitationGenerate XML tags as output

from Net.Data macrosUse XML style

sheet to format and display the generated output

Page 12: DB2 UDB for z/OS Version 7 - An Overview

12 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

Application-Related Enhancements

Page 13: DB2 UDB for z/OS Version 7 - An Overview

13 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Stored Procedure Enhancements . . .

Stored Procedure Builder

Point and click environment for building stored procedures Supports the entire DB2 Family

Can build stored procedures on a workstation for deployment on OS/390

Will support SQL Procedure Language and Java Works as:

a Microsoft Visual Studio plug-in

with Microsoft Visual Basic

with IBM VisualAge

as a stand-alone SP development environment

Page 14: DB2 UDB for z/OS Version 7 - An Overview

14 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

SQL Procedure Enhancements . . . SQL Procedure Language:

Enables stored procedures to be written in extended, procedural SQL: Assignment statements

CASE - LEAVE

Cursors

IF - THEN - ELSE

Local variables

LOOP, REPEAT, and WHILE

FOR, CALL, and RETURN

SIGNAL and RESIGNAL

SQL Procedure Language is compatible with ANSI SQL/PSM specification

The SQL Procedure Language is converted into C by the Stored Procedure Builder

The C code goes through program preparation process

Provides ease of development with procedural SQL plus . . .

Speed of execution with compiled and prepared C

Page 15: DB2 UDB for z/OS Version 7 - An Overview

15 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Stored Procedure Enhancements.

COMMIT and ROLLBACK:Now enabled for stored procedures

Possible for a stored procedure to issueUse with cautionWill COMMIT or ROLLBACK entire UOW

including changes made from by calling application

Page 16: DB2 UDB for z/OS Version 7 - An Overview

16 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

SQL Assist

SQL Assist provides:A tool to help you build SQL statements

SELECT INSERTUPDATEDELETE

Available in the following “products”:Control CenterStored Procedure BuilderData Warehouse Center

Page 17: DB2 UDB for z/OS Version 7 - An Overview

17 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Scrollable Cursors . . .

Can code cursors to scroll forward and backward through the data

FETCH next rowFETCH prior rowMove cursor forward N rowsMove cursor backward N rows

Makes navigating through retrieved data easier

Work is moved from the application code into SQLUse a fixed, declared temporary table to store the result

set.

Page 18: DB2 UDB for z/OS Version 7 - An Overview

18 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Scrollable Cursors.

SENSITIVE show changes done by the user or other users

INSENSITIVE not updateable; will not show changes made

DECLARE csr1 SENSITIVE STATIC SCROLL CURSORFOR SELECT FIRSTNAME, LASTNME FROM DSN8710.EMP ORDER BY LASTNME;OPEN csr1;FETCH LAST csr1 INTO :FN, :LN;

Scrollable Cursor FETCH Keywords

NEXTPRIORLASTCURRENTBEFOREAFTERABSOLUTE nRELATIVE n

Page 19: DB2 UDB for z/OS Version 7 - An Overview

19 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Row Expressions

Can specify more than one set of comparisons in a single predicate using a subquery

Multiple columns compared in a single predicatePossibly against multiple rows on the right side of the

predicate

Example

SELECT *FROM SAMPLE_TABLEWHERE (COL1, COL2) IN (SELECT COLX, COLY FROM OTHER_TABLE);

Page 20: DB2 UDB for z/OS Version 7 - An Overview

20 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

External SAVEPOINTs

SAVEPOINTs basically enable sub-UOW stability points (or milestones)

Name a SAVEPOINT, for example, SPOINT1Subsequent processingROLLBACK TO SAVEPOINT SPOINT1

Can have multiple SAVEPOINTs within a UOW

Can ROLLBACK to any SAVEPOINT (OS/390)

Page 21: DB2 UDB for z/OS Version 7 - An Overview

21 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Other Application Enhancements

JDBC and ODBC ImprovementsJDBC 2.0 supportODBC 3.0 supportCan run ODBC/CLI programs as a static application

SQL ImprovementsSelf-referencing Subselect on UPDATE or DELETEFETCH limited number of rows (e.g. TOP ‘N’ ROWS)Optimization and parallelism improvementsBetter sort avoidance techniques

IndexingAbility to select index access for small tables. DSNZPARM

value determines the threshold for a small table

Page 22: DB2 UDB for z/OS Version 7 - An Overview

22 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Other Application Enhancements

Precompiler Services - an API called by a host language compiler or preprocessor

Precompile and compile in one stepEasier and more flexible Portability between the DB2 Family improved Initially, only available for COBOL

Page 23: DB2 UDB for z/OS Version 7 - An Overview

23 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

Data Management Enhancements

Page 24: DB2 UDB for z/OS Version 7 - An Overview

24 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Identity Columns

Automatically generate unique, sequential values for a table

Only one identity column per tableGood for generating unique key valuesData type must be SMALLINT, INTEGER, BIGINT, or

DECIMAL(x,0) [zero scale]Can also use a UDT based on one of these data types

ExampleCREATE TABLE EXAMPLE (ID_COL INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY START WITH 100 INCREMENT BY 10 ...)

Page 25: DB2 UDB for z/OS Version 7 - An Overview

25 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Declared Temporary Tables

Defines a temporary table for the current session, not just a UOW like Global Temporary Tables

Embedded in application program Can be dynamically preparedDoes not appear in the DB2 CatalogCan not be shared across programs, users, etc.Table materialized in new temporary tablespaceNo authority to DECLARE, but authority required to use the new

temporary tablespaceCHECK constraints and indexes are supported on temporary

tables (OS/390)

Page 26: DB2 UDB for z/OS Version 7 - An Overview

26 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Declared Temporary Tables (continued)

Why use declared temporary tables:

Retrieve data once and use repetitively throughout a program

Retrieve data from non-relational data sources (flat file, IMS, IDMS, etc.) and use SQL to join it to DB2 data

Staging area for data before it is moved into a permanent DB2 table

Page 27: DB2 UDB for z/OS Version 7 - An Overview

27 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

What is Unicode?

Fundamentally, computers just deal with numbers. They store letters and other characters by assigning a number for each one. Before Unicode was invented, there were hundreds of different encoding systems for assigning these numbers.

Unicode provides a unique number for every character: no matter what the platform, no matter what the program, no matter what the language.

More information available at: http://www.unicode.org

Page 28: DB2 UDB for z/OS Version 7 - An Overview

28 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Unicode Support

Support for Unicode enabled in DB2 V7

Provides multinational support

Represents characters of virtually all languages

One codeset per system

Variable length encoding scheme

supports UCS-2 and UTF-8

Page 29: DB2 UDB for z/OS Version 7 - An Overview

29 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Utility Improvements

IBM UNLOAD utility (a third unload option from IBM)

- better speed than DSNTIAUL

- not free, extra charge from IBM

Parallel LOAD with multiple inputs- load a partitioned TS in parallel with multiple input data sets

- run in a single step

Online LOAD RESUME capability

Page 30: DB2 UDB for z/OS Version 7 - An Overview

30 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Utility Improvement (continued)

COPY with CHECKPAGE

- enhanced error-checking on data pages

- ensures error-free backup COPY

Usual promises of speed improvements- unusual promise of additional cost

Utility wildcarding- templates & lists define groups of objects for utility processing

LISTDEF GL INCLUDE TABLESPACE GL.* INCLUDE INDEXSPACE GL.X* EXCLUDE TABLESPACE GL.*Q1 EXCLUDE INDEXSPACE GL.*XQ1

COPY LIST GL ...

Page 31: DB2 UDB for z/OS Version 7 - An Overview

31 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Other DBA Enhancements

UNION and UNION ALL in Views - finally!

DBADM can create views for others - lessens the need for SYSADM

Deferred Data Set Creation (ERP)

- useful when many tables exist that do not have data in them

- particularly useful for ERP (such as, SAP R/3 and Peoplesoft)

DDF Suspend and Resume

- used to temporarily suspend activity from requesters

- does not terminate connections

- enables DDL at the server to complete w/o disrupting the app

Page 32: DB2 UDB for z/OS Version 7 - An Overview

32 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Other Data Mgmt EnhancementsOnline DSNZPARM changes (subset, someday all)

- can change EDM Pool specification

History of object statistics in DB2 Catalog

- MODIFY STATISTICS

Enhanced Control Center

- can generate DDL from the Catalog using Control Center

Restart improvement

- Restart Light - Data Sharing - - smaller footprint restart performs just recovery portion of DB2 restart

- Restart and Thread cancellation - - don’t have to wait for rollbacks of long running jobs to complete

Page 33: DB2 UDB for z/OS Version 7 - An Overview

33 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DBA Tools

IBM is officially in the DBA tools businessIntroducing numerous DBA tools for multiple areas such as change mgmt, backup/recovery, performance mgmt, application building...

But do not be fooled:the tools are not freethe tools are not all new

in some cases, IBM is charging for what used to be free

many of the tools are not developed by IBM

Page 34: DB2 UDB for z/OS Version 7 - An Overview

34 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

Business Intelligence Enhancements

Page 35: DB2 UDB for z/OS Version 7 - An Overview

35 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Data Warehouse Manager

The DB2 Data Warehouse Manager to enable easier data warehouse creation and management

Integrated with DB2 Control CenterControl and govern queriesHelp for data cleansing, generating key columns,

generating period tables, inverting and pivoting tablesStatistical transformers for subtotals, rollups, cubes,

moving averages, regression, etc.Replication to allow heterogeneous data movement

Page 36: DB2 UDB for z/OS Version 7 - An Overview

36 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

“DB2 Family”Compatibility Enhancements

OS/390 LUNO

Linux, Unix, NT, OS/2 AS/400 VM and VSE Satellite Edition DB2 Everyplace

Page 37: DB2 UDB for z/OS Version 7 - An Overview

37 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 Version 7

OtherPertinentDetails

Page 38: DB2 UDB for z/OS Version 7 - An Overview

38 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

DB2 V7 Packaging

The utilities will be packaged separately under DB2 V7

Similar to the way the other “tools” shipped with DB2 are packaged (e.g., DB2-PM, Buffer Pool Tool, etc.)

Utilities will have a price tag under V7No more free utilities from IBM IBM has indicated they will still provide utilities free of

charge for Catalog operations/processing

Page 39: DB2 UDB for z/OS Version 7 - An Overview

39 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Other V7 Stuff to Know...

GA for DB2 for OS/390 V7 most likely first quarter of 2001

Can migrate to V7 directly from V5 without first moving to V6Will require a specific maintenance level

(as yet not determined)

Of course, you can also migrate to V7 from V6

Page 40: DB2 UDB for z/OS Version 7 - An Overview

40 5/30/2000 ©2000 BMC Software, Inc. All Rights Reserved.

Contact Information

Craig S. MullinsDB2 Technology Planning

[email protected]

[email protected]

http://www.craigsmullins.com

BMC Softwarehttp://www.bmc.com

Delivering Application Service Assurance for S/390

http://www.craigsmullins.com/cm-book.htm