+ All Categories
Home > Documents > DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2,...

DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2,...

Date post: 22-Aug-2020
Category:
Upload: others
View: 2 times
Download: 2 times
Share this document with a friend
55
DB2 12 for z/OS Overview John Iczkovits [email protected]
Transcript
Page 1: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 for z/OS Overview

John [email protected]

Page 2: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Please Note

• IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion.

• Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.

• The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract.

• The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.

2

Page 3: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 Dynamics: The market is moving, forcing businesses to transform

Explosion intransaction growth

driven by mobility and the Internet of Things

Analytics is moving to Cognitive

real-time

to capture new opportunities at the point of

impact

Hybrid cloud is the new standard

for delivering service, agility,

trust and efficiency

3

The market is moving, causing DB2 to transform

Page 4: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 for z/OS Strategy

Page 5: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Redefining enterprise IT for digital business and t he mobile app economy

DB2 12 for z/OS – GA October, 2016

5

Scale and speed for the next era of mobile applicat ionsSuper fast ingest rate -- over 11 Million Inserts per second for IOT, Mobile and Cloud* 280 trillion rows in a single DB2 table, with agile partition technology

In-Memory databaseAdvanced in-memory techniques in DB2 12 means faster transactions with less CPU

Deliver analytical insights faster2-10x improvement for modern analytics workloadsIndividual modern analytic queries may see up to 100x improvement**JSON data management improvements

Easier to manage for the next generation of IT staf fCloud-based self-service provisioning of resourcesAutomated admin operations such as RUNSTATSDirection to use z Machine Learning for system self-optimization

The launch pad for Continuous Delivery

*: Under dedicated environment using 12 way data sharing on z13, insert against one table (PBR/Member Cluster) from zLinux clients. All partitions were GBP dependent and logging enabled. Our record is, 11.7 million insert per second without index, 5.3 million insert per second with index defined. ** Modern analytics queries evaluated include SQL constructs such as UNION ALL, outer joins, complex expressions (CASE, CAST, scalar functions etc)

Hundreds of other new enhancements in DB2 12Extended core availability and performance

Empowering next gen workloads:DevOps and Agile developmentMore schema and partition flexibilityEasier to use, more self-optimizing systemCloud-style as-a-Service provisioningImproved Analytics, application porting, and developer

productivity

Page 6: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Hybrid Cloud -- The marriage of one or more public or private clouds to an on premise DB2 and its data. The first example is DB2 query acceleration in the cloud.

DbaaS (DB2 as a Service) -- Easy provisioning and de-provisioning of DB2 resources via non traditional audiences (non administrators).

DaaS – (DB2 Data as a Service) -- DB2 data can be provided in a on demand basis to new service oriented applications with a simple, open call API. DB2 12 provides an embedded REST end point. Using this model, the actual platform on which the data resides is irrelevant to developers.

Provisioning – The process where you create and prepare a set of resources for users. For DB2, this could mean creation of whole DB2 systems or an application’s set of tables and associated resources.

RESTful API – Is an application program interface (API) that is simple to use and is in wide use in internet & mobile apps that interact with services like DB2.

There are many models for “cloud computing” and many apply to DB2

DB2 12 and Cloud Computing

6

DB2 Customers want to utilize hybrid clouds, DbaaS, and they want DB2 Data as a Service for improved administration with lower skills required, and for their next generation application development

Page 7: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 Data as a Service DB2 Cloud/Mobile modernization with RESTful APIs and JSON

EnterpriseApps

EnterpriseData

Enterprise Transaction Processing

Systems of Record

Cloud APIs

Mobile-Optimized APIs

Cloud-based Services

EnterpriseSystems

Integration

z/OS Connect or

DB2 native REST

Serving mobile data directly from z/OS is 40% less expensive than exporting to a system of engagement

CICS,IMS

Batch,WAS

• Many modern application developers work with REST services and JSON data formats• DB2 12 (and DB2 11 APAR PI66828) ship a Native DB2 REST service

• Easier DBA management of DB2 RESTful services, means easier adoption• z/OS Connect Enterprise Edition (zCEE) integration

Native DB2 REST service provider now available

Page 8: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Unleashing DB2 data for the API Economy

API API

API

API Connect

APIAPI

API

� RESTful Services: a new way to interact with z/OS data

CICSIMSBatch…

Page 9: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 z/OS REST Service Provider - Solution OverviewDDF

Service Discovery

Data Transformation

Service Invocation

Access Control

Tracing and Auditing (SMF)

SQL

Data Studio

RESTful

JSON

Provides a DB2 integrated solution for enabling REST APIs to access DB2 Data

� Leverages existing DDF capability including thread pooling, profiling and WLM classification of services� A new HTTP listener is provided, accepts JSON payloads and returns results as a JSON response� Does not require installation of any additional products or require configuring a new network interface� Description of service is in the DB2 catalog table and a prepared package used to execute the service � Provides a set of system defined services that can be used create and discover DB2 services� Security, accounting, statistics, and auditing uses existing DB2 instrumentation infrastructure� DB2 maps a service to a single SQL statement (eg. INSERT, SELECT, CALL) execution� DB2 services integrate into z/OS Connect EE by using the z/OS Connect EE REST Client

Authentication

DDF

Page 10: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

IBM DevOps for DB2 for z/OS

Check-in

code /

schema

UserSPEED• Reduce time and cost to deploy application changes• Deploy more frequently with more autonomy and

control• Automated. Accelerated.

SIMPLICITY• Reduce errors of manual process• Frees up resources by allowing other users to deploy• Collaborative. Accurate.

SECURITY• Safeguard valuable assets under the control and

security of DB2 for z/OS• Transparent and auditable review built into process• Protected. Secured.

Dev Test

DB

changed

App

deployed

Validated

Develop

DB

changed

App

deployed

Validated

Promote

RTC Build UCD

AOC

zOSToolkit

DB

changed

App

deployed

Validated

Hidden automateddeployment

An optimized and automated process for rapid deployment of applications and database schema changes to simplify and speed the delivery of critical operational environments for exceptional business value

IBM DB2 Change Management Solution Pack

Page 11: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DBaaSDB2-as-a-Service

Digital & Modern Enterprise AppNative RESTful APIsDaaS

DB2 Data-as-a-Service

Hybrid Cloud ServicesFor DB2

DB2 Customers want DBaaS (DB2 as a Service) and they want DB2 Data as a Service (RESTful APIs to DB2) for improved administration with lower skills required, and for their next generation application development

On-prem cloud services initially, can be extended to public cloud in the future

DATA ANALYTICS BUSINESS ANALYTICS OPERATIONAL ANALYTICS

DB2 z/OSAPIs

DB2 for z/OS and Cloud

SYSTEM PROVISIONING : INSTALL, MIGRATION,

HOUSEKEEPING

RESOURCES PROVISIONING : DB,TABLES, INDEXES, DATA

APP DEV LIFECYCLE : SINGLE OR MULTI-PLATFORM APPLICATION DEPLOYMENT

APP DEV ENVIRONMENT : DEDICATED ENVIRONMENT

ON OR OFF PREMISES

Page 12: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Announcing a new dimension for the DB2 Analytics Accelerator . . .

DB2 Analytics Accelerator for z/OS Version 6.1

Integrated on-prem and cloud solution supporting transactional and analytics

workloads for right-time insight

DB2 Analytics Accelerator on Cloud Version 1.1

High-speed analysis of enterprise data with cloud agility, flexibility and ease of deployment

High-speed analysisRapid insight from enterprise data in a secure cloud environment

Fast and Simple DeploymentImproved agility and quick time to value

Secure cloud environmentComprehensive data encryption capabilities based on a dedicated, bare-metal deployment

Reduce costSpeed implementation on analytics projects to reduce overall implementation costs

New dimension of deploymentSupport for the IBM DB2 Analytics Accelerator on Cloud Version 1.1

Flexible hybrid cloudA hybrid model with tight integration between cloud and on-premise deployment options

Speed and SimplifyQuickly deploy new or additional Accelerator instances by deploying applicable workload in the cloud

Support for Data Science using R Support of R functions enabling in-database analytics on DB2 for z/OS using R - the most popular language used by data scientists

Page 13: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Data Data Prep

ML Algo Model Deploy Predict

The z Systems on premise advantage

� People, processes, and infrastructure

� Data in place analytics for optimal performance, security, & governance

� Federated analytics across a wide variety of structured and unstructured data from z and non-z data sources

� Live transactional data with continuous feedback leads to better models and more accurate predictions

IBM Machine Learning for z/OSEnabling Continuous Intelligence on the World’s Most Valuable Data

Announced Feb. 15, 2017

Page 14: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 for z/OS Timeline

V8V9

DB2 102004

20072010

2013DB2 11

2016

V8 EOS 4/2012

DB2 12

Version GA

V7 3/2001

V8 3/2004

V9 3/2007

V10 10/2010

V11 10/2013

V12 10/2016

V9 EOS 4/2014

V10 EOS 9/2017

DB2 12 ESP (“beta”) started in March, 2016

Over 50 customers and partners tested DB2 12 in the ESP

GA October, 2016

FutureContinuousDelivery

Page 15: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

What are our customers saying about DB2 12 ?

DB2 12 Cost Savings

The biggest benefit with DB2 12 comes

with Index in memory optimization (Fast

Traverse Block) which provides incredible costs

savings with lower CPU consumption for OLTP

– nearly 9-10% after Rebind.

This should bring down our mainframe

operating costs.

Jacek SurmaDII,Zespół Systemów Mainframe

DB2 12 - The #1 Enterprise Server for

Mission Critical Data !

We are really excited about Performance

Enhancements in DB2 12 especially advance

"in-memory" (Fast Traversal Blocks FTB)

capabilities. During testing we have seen up to

5 % CPU reduction and this clearly relates to

enormous potential cost savings and positions

DB212 as a leader in Enterprise Database

market.

İbrahim ParlakIT ManagerGaranti Bank

DB2 12 Availability & Security

We are very pleased with many of the new

DB2 12 features, especially with Transfer

Ownership and Pending Alter Column feature

this give our Enterprise higher availability and

security which are “critical” in the banking

industry.

Jacek SurmaDII,Zespół Systemów Mainframe

DB2 12 – Exciting new capabilities

We love the "agile partition technology" that DB2

12 offers. This feature makes it easier for ITERGO to

address "hot spots" where "new data" is inserted.

This is particularly important when enterprises are

looking for scale, speed and reduced costs .

Walter JanissenChief Architect ITERGO

DB2 12 rules the API Economy

The RESTful API is yet another way where DB2 is

at the leading edge – and again cementing DB2’s

and the mainframes position as a full capable

server in the IT infrastructure of today. Using

these REST-services Mobile applications can both

be built faster and run faster !

Frank PetersenChief Architect BankData

DB2 12 –Offering Advanced “in-memory”

technology"We are looking forward to exploiting the advanced

"in-memory" technology that DB2 12 offers (Index

Fast Traverse Block) this gives us an opportunity to

reduce CPU resource consumption and performance

cost by using more real memory. It is very cost

effective trade off for enterprises like us that run

DB2 12 on z13 machines. During testing we have

seen up to 23% CPU reductions in "specific" test

cases". Henrik Henriksen DB2 DBA Danske Bank

Page 16: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12: Hear What the customers are saying…

DB2 12 – More Control over Dynamic Plan Stability

“Dynamic Plan stability give us much better options to control and manage dynamic SQL. It is very important for us, as dynamic SQL becomes more and more popular. Dynamic SQL becomes an increasing part of our workload and we want to have the same control of Dynamic SQL as we have had for Static SQL for years.”

Henrik HenriksenDanske BankMainframe & Midrange Services

Gaining Deeper Insight with DB2 12

““I am excited about all of the great new SQL functionality that is coming with DB2 12. Things like FETCH FIRST on DELETE, simpler pagination, and of course, tons of performance enhancements, will make it easier than ever to get insight from our DB2 databases.”

Craig Mullins IBM GOLD Consultant IBM Champion for Analytics

DB2 12 - The #1 Enterprise Server offering “in-memory” technology

“In the past few releases of DB2 for z/OS, IBM has systematically removed the most significant virtual storage limits DB2, so that customers can more fully exploit the real storage available in their System z servers. The “in-memory ” features of DB2 12 take this a step further, allowing customers to really take advantage of today’s larger memory configurations in order to significantly reduce operational costs and improve application performance . There’s more still to do, but DB2 is now a bona fide in-memory database.”

Julian Stuhler

DB2 Specialist, IBM Gold Consultant,IBM Champion for Analytics

DB2 12 – RESTful API helping enterprises to be Agile “Restful API in DB2 12 for z/OS allows you to develop mobile and

other apps with scalable performance in a matter of minutes. Do you want to be quick and agile ? Use Restful API in DB2 12 for z/OS”

Kurt Struyf

IBM GOLD Consultant IBM Champion for Analytics

Page 17: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

What are our customers saying about DB2 12 ?

Immediate SAP certification of

DB2 12 *

* See SAP Note 2302997

Page 18: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables
Page 19: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables
Page 20: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

What is it?• An in-memory database (IMDB) is one that primarily relies on main memory

for data storage (as opposed to disk)

What does this mean? • New and existing workloads can benefit tremendously

• Ex. Fast lookup of transactional data from mobile devices• The DB2 Lab has measured up to a 23% reduction in CPU

on existing workloads

• Memory on the z platform is getting larger and cheaper• We expect more growth in future hardware

• DB2 12 exploits large memory for improved performance and CPU reductions

• Larger buffer pools to reduce I/O – up to 4 TB• New memory optimized structures to speed up performance

• Fast Traverse Blocks (FTBs), Contiguous Buffer Pools,fast insert pipes, …

DB2 12 is an In-Memory Database

DB2 In-Memory database means faster transactions an d queries, with lower CPU overhead

Not to be confused with IDAA value

IDAA• Accelerates complex analytical queries, up to

2000x faster than traditional DB2 could• Is a hybrid data store that allows DB2 to deliver

industry leading performance for mixed workloads

In-memory DB2 • Can be used to speed up and lower the overhead of

DB2’s traditional workloads (primarily OLTP-based)• Can very much be used in conjunction with IDAA

Page 21: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

In-Memory Index Optimization

• A new Index Fast Traverse Block (FTB) is introduced– Memory optimized structure for fast index lookups– Resides in memory areas outside of the buffer pool

• New zparm INDEX_MEMORY_CONTROL• Default=AUTO (min. of 500 MB or 20% of allocated BP storage)

– UNIQUE indexes only, key size 64 bytes or less

• DB2 automatically determines which indexes would benefit from FTB

• DISPLAY STATS command shows which indexes are using FTBs

• New SYSINDEXCONTROL catalog table

– Specify time windows to control use of FTBs for an index

• New IFCIDs 389 and 477 to track FTB usage

Page 22: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Simple Look-up : Faster & Cheaper

22

6%

11%

16%

23%

2 3 4 5

Index Levels

CPU Improvement (%) from Simple Lookup in DB2 12

Up to 23% CPU reduction for index look up using DB2 12 In-memory index tree

Page 23: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

(Pre-GA measurements)

DB2 12: CPU Reductions for Transactions

Page 24: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

INSERT Performance

• Insert workloads are amongst the most prevalent and performance critical

• DB2 12 delivers significant improvements for Non-clustered insert: journal table pattern

– UTS, MEMBER CLUSTER

• Advanced new insert algorithm to streamline space search

– Default is to use the new fast algorithm for qualifying table spaces• DEFAULT_INSERT_ALGORITHM zparm can change the default• INSERT ALGORITHM table space attribute can override zparm

Page 25: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

• Simulated stock exchange transactions (row size = 200 bytes)• Utilizing DB2 12 features : New insert algorithm and scalability

enhancements • All done with single z13 box• 12 way DB2 data sharing with 4 way sysplex with high availability • 7 DS8870 control units: logs spread across 6, tables/indexes separate• 2GB/sec total logging• 5.3 M inserts per second after adding an index• About 2x faster than V11 on average• Relieves bottlenecks that can arise with the old insert algorithm

25

DB2 1211.7 Million Inserts Per Second

- Scalability without compromise

Page 26: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

UNION ALL w/View

Complex Outer Join, UDF

Complex reporting, large sort

Simple query or large data

scan

CPU Reduction %

DB2 12: CPU Reductions for Query Workloads

(Pre-GA measurements)

Page 27: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12: Simplicity and RAS

• Dynamic SQL Plan Stability– Stabilize performance of repeating dynamic SQL statements

• RUNSTATS automation– Optimizer automatically update profile with RUNSTATS

recommendations

• RLF control for static packages

• LOB compression– Using zEDC hardware

• DRDA Fast Load– Callable command for fast load of data into DB2 directly from files on

distributed client

Page 28: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Dynamic SQL Plan Stability

• Problem: – Unstable performance of repeating dynamic SQL statements– Environmental changes can result in change in access path or performance regression,

and this can be tough to manage• RUNSTATS• applying sw maintenance • DB2 release migration • zparm changes• schema changes

• Static SQL has several advantages– Access path established at BIND time– Static plan management gives advanced management functions

• Objective: extend static SQL advantages to dynamic SQL

Page 29: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Dynamic Plan Stability

• DB2 12 plan – base infrastructure

– Opaque parameter CACHEDYN_STABILIZATION– Capture

• Command with / without monitoring• Global variable

– FREE– EXPLAIN (current, invalid)– Invalidation– LASTUSED (identify stale statements)– Instrumentation (query hash, explain, cache + catalog hit ratio)– APPLCOMPAT is part of matching criteria

• Key DB2 12 limitations

– Temporal stabilization not currently included– REBIND support not included

• No PLANMGMT/SWITCH/APREUSE

Page 30: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 DRDA Fast Load

• Problem:

• DB2 provides the DSNUTILU stored procedure to load data from a client

• But this is difficult to use, app must xfer data to z/OS file

• Solution:

• DB2 Client API (CLI and CLP) for remote load into DB2

• Easy/fast loading of data from file that resides on client

• Internal format (SAP), as well as delimited and spanned (LOB data)

• Overlap network operations with data ingest on the DB2 server

• Measured results show as fast or faster than DB2 LOAD utility

• zIIP eligible

Page 31: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12: application enablement

• Several SQLPL Improvements

– SQLPL in triggers, including versioning and debug support

– SQLPL obfuscation

– Support for constants

– Dynamic SQL in SQLPL UDFs and stored procedures

• ARRAY and LOB global variables

• JSON function improvements for easier retrieval of JSON dataq

Page 32: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12: application enablement…

• Enhanced MERGE support

• New SQL Pagination syntax

• Piece-wise modification of data (DELETE)

• XMLModify multiple update support

• Bi-temporal improvements– Inclusive/inclusive support– Temporal RI– Logical transaction for system time

Page 33: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Enhanced MERGE

• DB2 z/OS initial support for MERGE statement with limited functionality was delivered with Version 9:

• Limited to UPDATE and INSERT and only one of each

• Focused on use of host variable column arrays to provide multiple rows of input data

• In DB2 12, DB2 z/OS MERGE statement will be aligned with behavior defined in SQL Standard and DB2 family.

• Source data as a table-reference• Multiple MATCHED clauses• Additional Predicates with [NOT]MATCHED• Support DELETE operation• Allow IGNORE and SIGNAL

Page 34: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

SQL Pagination

• With the growth of web and mobile applications, application developers are looking for more efficient ways to develop good performing applications.

• Numeric-based paginationSELECT * FROM tab OFFSET 10 ROWS FETCH FIRST 10 ROWS ONLY

• Data-dependent paginationExisting syntaxWHERE (LASTNAME = ‘SMITH’ AND FIRSTNAME >= ‘JOHN’) OR

(LASTNAME > ‘SMITH’)

New equivalent syntaxWHERE (LASTNAME, FIRSTNAME) > (SMITH, JOHN)

Page 35: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Piece-wise Modification of Data

• Mitigate the effects of locking and logging when potentially millions of rows could be affected by a simple statement like:"DELETE FROM T1 WHERE C1 > 7“

• Solution

– Allow the fetch clause to be specified on a searched delete statement

DELETE FROM T1 WHERE C1 > 7 FETCH FIRST 5000 ROWS ONLY;COMMIT;

Page 36: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

• Relief for table scalability limits

• Simplify large table management

• Improve availability

• Agile schemas (more online schema changes)

• Security and compliance improvements

• Streamline migration process

• Utility performance, availability, usability

DBA Productivity – DB2 12 Goals

Page 37: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Partition By Range Current Limitations

� Maximum table size limited to 16Tb (4k pages) or 128Tb (32k pages)

• Maximum number of partitions is also dependent on DSSIZE and page size

– E.g. if DSSIZE = 256 GB and page size = 4K then Max Parts is 64

• DSSIZE is at Table Space Level not Part Level– All Parts inherit the same DSSIZE set at Table Space – No ability to have differing Partition sizes– Altering DSSIZE requires REORG of entire tablespace

Page 38: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 Lifting the Limits

• New PBR tablespace structure called ‘PBR RPN’• Relative page numbers (RPN) instead of absolute• Remove dependency between #partitions & partition size• New RID is Relative RID

– Part Number stored in Partition Header Page– Page number stored in Data Page, relative to start of the partition

• Up to 1TB Partition Size, or 4 Petabytes (PB) per table space• Maximum number of rows with 4K pages increased from 1.1 to 280 Trillion

– @1,000 rows inserted per second, more than 8800 years to fill!• Increasing DSSIZE is supported at partition-level• New DSSIZE support for indexes• These infrastructure changes position DB2 for future enhancements

– Increase in partition limits, increase number of rows per page– Attribute variance by partition, schema changes via REORG PART

Page 39: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 Online Schema Improvements

• Insert partition

• Online deferred ALTER INDEX COMPRESS YES– Previously placed indexes in RBDP

• Option to defer column-level ALTERs– Materialize through online REORG– Avoid availability constraints & conflict with other deferred alters

• TRANSFER OWNERSHIP

Page 40: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

IBM DB2 12 Utilities – key to enabling DB2 function• Continuing evolution of REORG utility• Diminishing importance of data re-clustering for application performance

– Optimizer improvements, I/O performance improvements, caching improvements, contiguous buffer pools

• Increasing use of IBM REORG for schema evolution– Insert partition– PBR RPN conversion– Deferred column-level alter– LOB compression

• Improved PBG partition management– Overflow to new PBG partition to ensure successful partition-level REORG of PBGs

Page 41: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 Utilities Maximizing Efficiency & Eliminating Application Impact

• Improved efficiency– Further reduction in CPU cost & more offload to zIIP

• REORG up to 57% zIIP offload• LOAD up to 90%

– REGISTER NO option to eliminate data sharing overhead for RUNSTATS, UNLOAD– COLGROUP statistics CPU cost reduced by up to 25%, elapsed time up to 15%– More efficient handling of compressed data to reduce CPU and elapsed time across range of utilities– REORG avoidance: Immediate increase of partition DSSIZE with PBR RPN– Improved FlashCopy support

• Multiple DFSMS COPYPOOL support for SLBs & better messaging• Improved FlashCopy handing in REORG & template support for MGMTCLAS, STORCLAS

• Eliminating application impact– Improved LOAD utility support for sequences with automatic handling of MAXASSIGNEDVAL – Online LOAD REPLACE – non-disruptive refresh of reference tables– Skip invalidation of cached statements by RUNSTATS– Removed recoverability restrictions for PBG table spaces

Page 42: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Data Sharing Improvements

• Support for global transactions

• DDF shared session data across group – DDF transaction re-routing, session token for client fail-over

• Data sharing performance improvements:– Improved lock avoidance checking to reduce CF lock requests– In-memory indexes can reduce GetPages and CF GBP requests– Improved insert space search can avoid P-lock contention and streamline inserts– RUNSTATS and UNLOAD ISOLATION(UR) to avoid CF page registration

Page 43: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Data Sharing Improvements …

• New data sharing peer recovery option

• Retry of automatic LPL and GRECP recovery

• Asynchronous CF Lock duplexing – Reduces overhead for system managed duplexing of CF LOCK1 and SCA structures– Secondary structure updates are performed asynchronously with respect to primary updates– DB2 will sync up with z/OS to ensure data integrity i.e., all modify locks have been “hardened” in the secondary

lock structure before the corresponding undo/redo record for the update is written to DB2 the active log on DASD– Increases the practical distance for multi-site sysplex operations while duplexing of CF LOCK1 structure– Requirements:

• z/OS 2.2 SPE with PTFs for APARs OA47796 and OA49148• CFCC Level 21 (z13)• DB2 12

Page 44: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 Async Lock Replication

Two Data Centers at Larger DistanceRPO: No data lossRTO: Disk hyperswap

� Seconds

Data center A

IBM z System

CF

Data center B

Sync Mirror (PPRC )

Up to ~100 km

IBM z System

z/OS LPAR

DB2

z/OS LPAR

DB2

Linux

SAP NetWeaverIBM z System

z/OS LPAR

DB2

z/OS LPAR

DB2

IBM z System

z/OS LPAR

DB2

z/OS LPAR

DB2

Linux

SAP NetWeaverIBM z System

z/OS LPAR

DB2

z/OS LPAR

DB2

IBM z System

CF

DB2 data sharing

Duplex GBPs, SCA As today

Duplex Locks Asynch for improved perfm

Continuous availability on site failover

z/OS 2.2 SPECFCC level 21

Page 45: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Migration Prerequisites – Hardware & Operating Syste m

• Processor requirements:– z196 class processors or higher

• Software Requirements:– z/OS V2.1 Base Services, (5650-ZOS), or later– DFSMS V2.1, or later– Language Environment Base Services– z/OS V2.1 Security Server (RACF), or later– IRLM Version 2 Release 3 (Delivered with DB2 12)

• Additional details:– http://www.ibm.com/common/ssi/rep_ca/1/897/ENUS215-371/ENUS215-371.PDF

Page 46: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Migration & Catalog

• Single phase migration process– No ENFM phase – New function activated through new command: -ACTIVATE FUNCTION LEVEL– BNFA vs. ANFA– APPLCOMPAT rules, fallback rules continue to apply

• BSDS conversion to support 10 byte log RBA is pre-requisite• No pre-V10 bound packages

– Get rid of 31-bit runtime, some performance improvements

• BRF is deprecated– BRF page sets still supported, but zparm and REORG options are removed

• Temporal RTS tables– Defined in catalog, enablement is optional

Page 47: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Beyond DB2 12: Delivering Accelerated Value

Deliver desirable, consumable capabilities to the marketplace with speed and quality

• DB2 for z/OS is moving to a Continuous Delivery model based upon DB2 12

• Why?

– Faster delivery of easily consumable new features

– Integrates perfectly with new DevOps methodologies being

adopted by our users

– Easier deployment enables faster adoption of new technology

• Available on Replay

https://youtu.be/9Bw_iJlj9gs

Page 48: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Beyond DB2 12, Strategic Areas

• Analytics– IDAA, HTAP– Query performance, machine learning

• Cloud– Self-service for app developers– Hybrid cloud– Simplification, self-management

• Modern Application Development– Mobile, IoT– SAP– Application portability, open source integration

• Core Technology– Security– Performance, scalability, in-memory, z hw integration– Continuous availability

• Foundation: internal dev/test tooling modernization for DevOps

Core Technology

Analytics

Foundation

CloudModern

App

Page 49: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 12 – More Information• DB2 12 website & webcast

https://www.ibm.com/analytics/us/en/technology/db2/db2-12-for-zos.html

• DB2 12 Business Value whitepaper

• IDUG DB2 12 Technical whitepaper http://www.idug.org/db2v12whitepaper

• “Scaling Progressive SAP Solutions with DB2 12 – Immediate SAP Certification of DB2 12 at IBM General Availability”

• DB2 12 GA Announcement https://www-01.ibm.com/common/ssi/rep_ca/7/897/ENUS216-077/ENUS216-077.PDF

• World of DB2 http://www.worldofdb2.com/

Page 50: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Summary• DB2 for z/OS continues to aggressively evolve to meet the demands of modern application workloads• Many DB2 12 features were rolled back to field releases for speedier delivery

– NoSQL RESTful API– Cloud-style aaS provisioning– JSON enhancements– SQL performance for SAP and other apps– Simulated buffer pools– Numerous utilities enhancements

• DB2 12 delivers many new innovations for optimizing existing workloads and enabling for new cloud, mobile, analytics opportunities

• DB2 is moving to a continuous delivery model to deliver faster with high quality and easier upgrades for customers

– DB2 12 has new infrastructure for CD support

Page 51: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables
Page 52: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

IDAA: Hybrid transaction/Analytical processing

The hybrid computing platform on z Systems

Supports transaction processing and analytics workloads concurrently, efficiently and

cost-effectively

Delivers industry leading performance for mixed workloads

The unique heterogeneous scale-out platform leads in the industry

Superior availability, reliability and security

TransactionProcessing

AnalyticsWorkload

Page 53: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

DB2 RESTful API Support

53

• Many modern application developers work with REST services and JSON data formats• DB2 Adaptor for z/OS Connect provides the means to do this• Available via DB2 Accessories Suite for z/OS V3R3

• DB2 10 or later

• Future direction: native DB2 REST provider• Easier DBA management of DB2 RESTful services, uses existing DRDA infrastructure• z/OS Connect Enterprise Edition integration• DB2 11 APAR PI66828

Page 54: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

Cloud Provisioning

• Subsystem lifecycle management through administration tools, DSM & z/OSMF– Install, migrate, clone

• Application development lifecycle services– Urban Code Deploy (UCD) & z/OSMF workflow integration with DB2 Administration & Object

Compare tools with REST APIs

DB2B

(user target)

DB2A

(user source)

IBM DB2 Admin Tool & DB2 Object

Comparison Tool

z/OSMF

User

REST call over HTTPS

Workflow

SQL, DB2 Commands…

UCD

Page 55: DB2 12 for z/OS Overviewsirdug.org/downloads/SHARE2017SanJoseDB212forzOSOverview.pdf · For DB2, this could mean creation of whole DB2 systems or an application’s set of tables

55

Thank You for Attending!Please remember to complete your evaluation of

this session in the SHARE mobile app .

DB2 12 for z/OS Overview


Recommended