Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN...

41
0 © 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH Access Path Protection for static and dynamic SQL with Bind ImpactExpert for DB2 z/OS DB2 Version Migration Application Changes Database Maintenance

Transcript of Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN...

Page 1: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

0© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Access Path Protection for static anddynamic SQL with

Bind ImpactExpertfor DB2 z/OS

–DB2 Version Migration Application Changes

Database Maintenance

Page 2: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

1© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Secures performance changes resulting from BINDs and

REBINDs

Compares access paths old/new and pinpoints

improvements /degradations

Highlights statements that are less efficient than the

original

Supports full automation with flexible XML batch reports

Migration to new DB2 releases and application of APARs

Integrates into maintenance and compile-procedures

Pre-screens application changes

Supports and controls dynamic SQL

BIX – Key Features

Page 3: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

2© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Bind ImpactExpert

DB2 Version Migration control (EarlyPrecheck™)

Page 4: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

3© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Goal:

Detection of potential access paths degradations before

migration of the production system by comparing the

access paths of a DB2 Vnow production system with the

access paths on a Vnext test system (based on Vnow

production statistics) without affecting the production

system at the earliest possible stage for static and

dynamic SQL.

BIX – Version Migration control (EarlyPrecheck™)

Page 5: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

4© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

PlanTable

Impact-Analysis

PlanTable

Comparison

Worsened

improved New AccessPath Pattern

DB2I V9 DB2P V8

or equal

DB2 9 behaviour Report

Runs stand-alone for global package processing

BIX – Version Migration control (EarlyPrecheck™)

Page 6: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

5© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Each statement is classified to one of the following

categories:

UNCHANGED – Statements without Access Path Change

IMPROVED – Statements with Improved Access Path

DB2 Vnext special patterns (examples)

V9 pattern 1 – Usage of smaller index

V9 pattern 2 – Usage of bigger index, sort avoided

V9 pattern 3 – Usage of smaller index, index only get

lost

WORSENED – Statements with Worsened Access Path

CHANGED – Statements with Changed Access Path (not

classified)

BIX – Specific DB2 version rule set

Page 7: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

6© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Aug...Sep Okt Nov Mai...

DB2P Produktion Vnow

DB2I Impact VnextNFM

DB2T Testsystem VnowDB2T Vnext

CMDB2T Vnext NFM

DB2P VnextCM

DB2P VnextNFM

DB2I Impact VnextCM

DB2I Vnow

Co

py

& P

rech

eck

Co

py

& P

rech

eck

Co

py

& P

rech

eck

Co

py

& P

rech

eck

Repeatable Precheck – Customer Example

Page 8: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

7© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Statement Summary ------------- Type 1 from 11 Command ===> ________________________________________________ Scroll ===> CSR_

DB2: DB2I Primary cmd: END, J(obs), RES(et) Line cmd: P(ackages/Plans), S(tatements)

COLLECTION. . . . . . __________________ PACKAGE. . . ________ TIME FROM . . . . . . __________________ PLAN . . . . ________ TIME TO . . . . . . . __________________

CATEGORY DESCRIPTION COUNT ----------- --------------------------------------------------- ---------

_ UNCHANGED Statements without Access Path Changes 18974 _ IMPROVED Statements with improved Access Path 2234 _ V9 RULE 1 Usage of smaller index 119 _ V9 RULE 2 Usage of bigger index, sort avoided 362 _ V9 RULE 4 TS scan to IX scan for small tables 227 _ V9 RULE 5 Usage of index with 0 pages (bad stats) 191 _ V9 RULE 8 Join sequence change (outside smaller) 239_ CHANGED Statements with changed Access Path 513 _ WORSENED Statements with degraded Access Path 448

---------------------------------------------------------------- ---------_ PROCESSED Statements processed by ImpactExpert 23307

Repeatable Precheck – Customer Results

Page 9: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

8© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ------ Impact Filter Summary ------- Type 1 from 10 Command ===> _______________________________________________ Scroll ===> CSR_

DB2: DB2I Primary cmd: END, J(obs), RES(et) Line cmd: A(uthIDs), S(tatements)

COLLECTION. . . . . . __________________ PACKAGE. . . ________ TIME FROM . . . . . . __________________ PLAN . . . . ________ TIME TO . . . . . . . __________________

CATEGORY DESCRIPTION COUNT ----------- --------------------------------------------------- ---------

_ UNCHANGED Statements without Access Path Changes 15582 _ IMPROVED Statements with improved Access Path 389 _ V9 RULE 1 Usage of smaller index 7 _ V9 RULE 2 Usage of bigger index, sort avoided 9 _ V9 RULE 4 TS scan to IX scan for small tables 55 _ V9 RULE 5 Usage of index with 0 pages (bad stats) 28 _ V9 RULE 8 Join sequence change (outside smaller) 34_ CHANGED Statements with changed Access Path 466 _ WORSENED Statements with degraded Access Path 52

----------- --------------------------------------------------- ---------_ PROCESSED Statements processed by ImpactExpert 16622

Repeatable Precheck – Customer results

Page 10: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

9© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Bind ImpactExpert

Application Changes

(Bind Control)

Page 11: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

10© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

LOG

EXPLAIN

Automatically finds BIND impacts of changed applications

BIX

New DBRM for a changed programOriginal DB2

catalog

BIX – Bind Control

Page 12: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

11© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Impact Filter --------------------------------Command ===> J________________________________________________________________

DB2: Q91BPrimary cmd: END, J(obs)

Enter your selections. Then press ENTER to see the impact summary.

COLLECTION. . . . . . PACKAGE. . . TIME FROM . . . . . . 2009-09-15-13.37.47TIME TO . . . . . . . 2009-09-15-13.37.47

INPUT SOURCE. . . . . B - A(ll) / B(INDs) / R(EBINDs)

ImpactExpert Reporting

FlexibleFiltering options

BIX – Bind Control

Page 13: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

12© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Impact Filter Summary ------------------------Command ===>

DB2: Q91BPrimary cmd: END, J(obs)

Enter your selections. Then press ENTER to see the impact summary.

COLLECTION. . . . . . *_ PACKAGE. . . *_____TIME FROM . . . . . . 2009-09-15-13.37.47TIME TO . . . . . . . 2009-09-15-13.37.47

INPUT SOURCE. . . . . B - A(ll) / B(INDs) / R(EBINDs)

Select (x) one of the following from the impact summary to view details.PACKAGES ANALYZED : 519 STATEMENTS ANALYZED : 3737

NUMBER OF PACKAGES. NUMBER OF STATEMENTS.IMPROVED. . . . : 53 IMPROVED. . . . . : 108

X WORSENED. . . . : 17 WORSENED. . . . . : 20 UNCHANGED . . . : 421 UNCHANGED . . . . : 3567 CHANGED . . . . : 28 CHANGED . . . . . : 42 OTHER . . . . . : 0

ProcessingSummary

BIX – Bind Control

Page 14: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

13© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Worsened Packages ---------- Package 1 from 17 Command ===> Scroll ===> CSR

DB2: Q91BPrimary cmd: END, L(ocate) -Package-Line cmd: S(tatement), C(reate REBIND)

COLLECTION/ PACKAGE/ STATEMENTSJOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S------------------- ------------------ -------- --- --- --- --- --- -2009-09-15-09.53.58 IQA_COLLECTION_510 ADB2M101 NO 3 3 0 R2009-09-15-09.53.58 IQA_COLLECTION_510 ADB2M101 NO 3 3 0 R2009-09-15-09.53.58 IQA_COLLECTION_510 ADB2M101 NO 3 3 0 R2009-09-15-09.53.58 IQA_COLLECTION_510 ADB2M101 NO 3 3 0 R2009-09-15-09.36.12 IQA_COLLECTION_510 XDB2CN22 NO 0 1 0 R2009-09-15-09.36.12 IQA_COLLECTION_510 XDB2CN01 NO 0 1 0 R2009-09-15-09.36.12 ADB20410 SQLZU102 NO 0 1 10 R2009-09-15-09.36.12 SQLZ0120 SQLZU102 NO 0 1 10 R2009-09-15-09.36.12 ADB20410 PARSTYPE NO 1 1 1 R2009-09-15-09.36.12 MDB20330 O2DBIX NO 4 2 0 R2009-09-15-09.36.12 IQA0510 BAIMM200 NO 1 1 0 R2009-09-15-09.36.12 IQA_COLLECTION_510 ADB2SET1 NO 7 3 0 R2009-09-15-09.36.12 IQA_COLLECTION_510 ADB2M101 NO 3 3 0 R2009-09-15-09.36.12 ADB20410 ADB2DSTS NO 0 3 0 R2009-09-15-09.36.12 ADB20410 ADB2DSTP NO 3 2 2 R2009-09-15-09.36.12 ADB20410 ADB2DSTB NO 0 3 0 R

Statement overview for each

package in the list

BIX – Bind Control

Page 15: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

14© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- BIND Impact --------------- Statement 1 from 5 Command ===> Scroll ===> CSR

DB2: Q91BPrimary cmd: END, SE(tup Analyze)Line cmd: S(elect), D(ynamic Analyze DBRM), E(dit and Analyze DBRM),

A(nalyze Old), O(Dynamic Analyze Old), P(Edit and Analyze Old)

Timestamp. . . 2009-09-15-09.36.12.530000Collection . . ADB20410Package. . . . ADB2DSTPVersion. . . . 2009-09-15-08.04.46.922689DBRM Library . SE.ADB20411.TDBRM

STMTNO STMTNO BAD ACCESS TYPESORIG NEW IMPACT OLD VERSION WITH BIND------ ------ ------ --------------------- ----------------------

S 2108 2212 WRS SORT TS,SORT4665 4723 WRS NMIX TS2075 2173 IMP LP,SORT4875 4983 IMP TS NMIX4891 3878 IMP LP3863 4002 EQ N/A 2153 NEW

Compares old to new and automatically identifies the SQL changes and their

impact before you BIND

BIX – Bind Control

Page 16: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

15© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Comparison --------- LINE 00000077 COL 001 080Command ===> Scroll ===> CSR

DB2: Q91BPrimary cmd: END, CAN(cel)Collection . ADB20410 StmtNo . . 2212Package. . . ADB2DSTP Stmtcost . 124.15

Statement Text + Access paths-------------------------------------------------------------------------------

SELECT MAX ( X_HIST_TIMESTAMP )

FROM PARSVTAB )

ORDER BY X_NAME , X_SEQNO

FOR FETCH ONLY Access path before BIND ---------------! Access path with BIND ----------------

TABLE QB PN AC MA ME IX ! TABLE QB PN AC MA ME IX INDEX TY CO TH ON ! INDEX TY CO TH ON

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -ADB2T071 1 1 I 1 0 N ! ADB2T071 1 1 R 0 0 N

ADB2X0711 ! 1 2 0 3 N ! 1 2 0 3 N

ADB2T071 2 1 I1 0 0 Y ! ADB2T071 2 1 I1 0 0 Y ADB2X0711 ! ADB2X0711

Presents the access path comparison

BIX – Bind Control

Page 17: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

16© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Application Release Rollout – Customer Example

Page 18: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

17© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

414

5

unchanged access paths

worsened access paths

improved access paths

395

5

14

Packages processed

0 bound with explain(no)

QA needed

ImpactExpert - Summary Package Level

Packages processed 414

Packages analyzed 414bound with explain(no)0

Unchanged 395Worsened 5Improved 14

QA omitted 409QA needed 5

ImpactExpert - Summary SQL Level

SQL analyzed 4304

Unchanged 4264Worsened 7Improved 33

QA omitted: 98,79 %Critical access path changes prevented: 7

Application Release Rollout – Customer Example

Page 19: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

18© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Bind ImpactExpert

Database Maintenance

(Rebind Control)

(DSC Protection)

(Access Path Restore)

Page 20: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

19© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

BindImpactExpert

Any utility automation tool, e.g.,RealTimeMaintain

Automatically guarantees REBINDs that improve performance

LOG

EXPLAIN The Pre-Check!

BIX – Rebind Control

Page 21: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

20© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- REBIND Impact ------------- Statement 1 from 23Command ===> Scroll ===> CSR

DB2: Q91BPrimary cmd: END, SE(tup Analyze),Line cmd: S(elect), A(nalyze), D(ynamic Analyze), E(dit and Analyze)

Timestamp. . 2009-09-15-09.36.12.250000Collection . ADB20410Package. . . ADB2DSTPVersion. . . 2008-11-05-17.18.16.515822

BAD ACCESS TYPESSTMTNO IMPACT BEFORE REBIND WITH REBIND COST HINT----- ----- ------------------- -------------------- ------------ ----3478 EQ SORT SORT 29.563496 EQ LP LP 23.343516 EQ SORT SORT 23.34 USED3537 EQ 08.343559 EQ SORT SORT 23.343730 WRS SORT TS,SORT 124.155120 EQ 10.12

_ 7584 EQ 0.187597 EQ 0.55

Presents the REBIND impact for each

statement in the package

BIX – Rebind Control

Page 22: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

21© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

BIX – Access Path Comparison

ImpactExpert for DB2 z/OS ----- Comparison --------- LINE 00000077 COL 001 080Command ===> Scroll ===> CSRMode: Precheck Static DB2: Q91BPrimary cmd: END, C(atalog data), D(etails on/off), S(tatement text)

Collection . RTDX0510 Timestamp. . 2009-04-24-08.13.50.890000 Package. . . DSMORPB Contoken . . 184177A60269695E StmtNo . . . 332 Bindtime . . 2008-10-23-14.41.12.401132

Access path before REBIND -------------! Access path with REBIND --------------

TABLE QB PN AC MA ME IX PR ! TABLE QB PN AC MA ME IX PRINDEX TY CO TH ON FT ! INDEX TY CO TH ON FT

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -SYSTABLESPACE 1 1 R 0 N S ! SYSTABLESPACE 1 1 R 0 N SSYSTABLEPART 1 2 I 2 1 N ! SYSTABLEPART 1 2 I 2 4 N L

DSNDPX01 ! DSNDPX011 3 0 3 N ! 1 3 0 3 N

SYSDATABASE 2 1 R 0 N S ! SYSDATABASE 2 1 I 0 N! DSNDDX02

2 2 0 3 N ! 2 2 0 3 N!

Milliseconds: 32 ! Milliseconds: 28Serviceunits: 125 ! Serviceunits: 110-------------------------------------------------------------------------------

Verify the access path changes

Page 23: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

22© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Proactive

DB2P production system DB2T test system

_HISTCatalog

StatisticsCatalog

Statistics

Plantable BIXPlantable

Dynamic SQL

Dynamic SQL

Dynamic Stmt

Cache

CaptureDSC

Explain DSC

BIXDynamicExplain

RUNSTATSwith DSC

ProtectionTM

ProductionRUNSTATS

BIX DSC Protection

Page 24: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

23© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Reactive

DB2P production system

AP restore featureTM

CatalogStatistics

Plantable

Dynamic SQL

Dynamic Stmt

Cache

CaptureDSC

Explain DSC

RUNSTATSwithout DSC ProtectionTM

CatalogStatisticsReposi-

tory

PlantableHistory

Comparison

BIXImpact-Analysis

BIX Access Path Restore

Page 25: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

24© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS ----- Job Overview (1/4) ------------- Job 1 from 1 Command ===> Scroll ===> CSR Mode: DSC PROTECTION DB2: Q91APrimary cmd: END, A(ll), D(SC Extracts), E(Imported DSC Extracts), N(ew),

I(mport), X(EXport), R(efresh), Z(oom), L(ocate) submit timeLine cmd: S(tatements), A(uthIDs), D(elete), R(eset statistics),

V(iew extract), Z(oom)

Job name Step name Submitter Submit time PLTB owner Job status-------- --------- --------- ------------------- ---------- ----------BAIMDSC CHECKDYN HOPPE 2010-07-27-15.13.57 HOPPE DONE-------- --------- --------- ------------------- ---------- ----------

BIX DSC Protection

Page 26: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

25© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

ImpactExpert for DB2 z/OS -- Dynamic SQL Overview (1/12) ------- Stmt 1 from 3 Command ===> Scroll ===> CSR Mode: DSC PROTECTION DB2: Q91APrimary cmd: END, SE(tup Analyze), Z(oom), L(ocate) stmtid oldLine cmd: S(elect), DO/DN(Dynamic analyze Old/New), R(eset statistics),

EO/EN(Edit and analyze Old/New), VO/VN(View Old/New), Z(oom)

Bad access types Bad access typesStmtID old StmtID new Imp old new---------- ---------- --- ---------------------- ----------------------

90 90 WRS NMIX LP,SORT93 93 WRS NMIX LP,SORT250 250 WRS TS,LP TS,NMIX,MSJN

---------- ---------- --- ---------------------- ----------------------

BIX DSC Protection

Page 27: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

26© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

012345678

CPUconsumptionoldCPUconsumptionnew

0100

200300

400500

600700

SQLstatementsexaminedSQLstatementschanged

Savings of CPU consumption are in average more than 80%. Additionally the effort for manual investigation of SQL can be reduced to only 20 percent of the original effort.

Database Maintenance – Customer Example

Page 28: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

27© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Bind ImpactExpert

Additional Features

Page 29: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

28© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Dynamic Statement Cache Capture (Online / Batch)

Online Plan Table comparison

Full Virtual Index Support

Trace Facility

SQL Aggregation Feature

Trace Hostvar values

Supports Catalog History Tables Integrated Catalog Statistics Browser

Full SPT01 support

Bind Avoidance

DBRM Reconstruct

BIX – Additional Features

Page 30: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

29© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Analyze for DB2 z/OS ----- Limit DSC Snapshot --------------------------------Command ===> DB2: Q91A

Primary cmd: END

MEMBER : Blank(Connected DB2) / *(All members) / member name

NO LIMITATION : XHIGHEST VALUES : EXCEED THRESHOLD: THRESHOLD:

For limitation to highest values or exceeding of specified thresholdEXECUTIONS : ROWS PROCESSED : SORTS : BUFFER READS : ROWS EXAMINED : PARALLEL GROUPS : BUFFER WRITES : INDEX SCANS : RID EXCEED DB2 LIMITS : GETPAGES : TABLE SPACE SCANS : RID EXCEED STORAGE :

For limitation to highest values onlyELAPSE TIME : CPU TIME :

WAIT TIME FOR ...SYNCRONOUS I/O : SYNCR. EXECUTION : READS OTHER THREADS : LOCK AND LATCH : GLOBAL LOCKS : WRITES OTHER THREADS :

BIX – DSC Browser

Page 31: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

30© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Analyze for DB2 z/OS ----- Filter Dynamic Statement Cache --------------------Command ===> DB2: Q91A

Primary cmd: END

FIRST TABLE : ________________________________________________________________CREATOR ________________________________________________________________

FIRST TABLE : ________________________________________________________________NAME ________________________________________________________________

QUALIFIER : ________________________________________________________________

PRIMARY : ________________________________________________________________AUTHID ________________________________________________________________

SELECT X CURRENT USERS between and (Integer)INSERT X STMT COUNT between and (Integer)UPDATE X AVG CPU TIME between and (MM:SS.TTT)DELETE X AVG ELAPSE TIME between and (MM:SS.TTT)

AVG GETPAGES between and (Integer)Total stmts 104 OUTPUT LIMIT: 10000 0 - 25000 Max number of statements to be displayed

BIX – DSC Browser

Page 32: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

31© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Analyze for DB2 z/OS --- Dynamic Statement Cache (1/8) -- Statement 1 from 117 Command ===> Scroll ===> CSR

DB2: Q91APrimary cmd: END, F(ilter), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), E(dit statement), S(tatement text), T(able),

X(EXecute)

StmtID Program Lineno UserID Qualifier Executes Getpages S---------- -------- --------- -------- -------- ---------- ---------- -

2162 IQADBACP 1086 NEUMANN NEUMANN 14 245 V2164 IQADBACP 1094 NEUMANN NEUMANN 36 222 V2152 IQADBACP 1086 NEUMANN NEUMANN 3 61 V2154 IQADBACP 1086 NEUMANN NEUMANN 7 48 V2247 IQADBACP 1042 NEUMANN NEUMANN 1 48 V2250 IQADBACP 1042 NEUMANN NEUMANN 1 48 V2192 IQADBACP 1082 NEUMANN NEUMANN 10 47 V2208 IQADBACP 1042 NEUMANN NEUMANN 1 47 V2138 IQADBACP 1082 NEUMANN NEUMANN 12 39 V2150 IQADBACP 1086 NEUMANN NEUMANN 3 24 V2155 IQADBACP 1086 NEUMANN NEUMANN 7 24 V2253 IQADBACP 1022 NEUMANN NEUMANN 1 23 V2255 IQADBACP 1090 NEUMANN NEUMANN 3 21 V2256 IQADBACP 1094 NEUMANN NEUMANN 4 20 V

BIX – DSC Browser

Page 33: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

32© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Analyze for DB2 z/OS --- Dynamic Statement Cache (4/8) -- Statement 1 from 117 Command ===> Scroll ===> CSR

DB2: Q91APrimary cmd: END, F(ilter), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), E(dit statement), S(tatement text), T(able),

X(EXecute)Synchr. Synchr. Rows Rows Index Tablespc.

StmtID Buffer Rd Buffer Wr examined processed Scans Scans---------- ---------- --------- ---------- ---------- ---------- ----------

2162 0 0 74 37 52 152164 0 0 0 185 0 742152 4 0 38 19 30 42154 0 0 16 8 16 02247 0 0 101 2 2 12250 0 0 101 2 2 12192 0 0 844 2 4 112208 4 0 100 39 2 12138 0 0 13 13 13 02150 0 0 8 4 8 02155 0 0 8 0 8 02253 0 0 3 1 0 02255 0 0 0 7 3 32256 0 0 0 2 0 8

BIX – DSC Browser

Page 34: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

33© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Analyze for DB2 z/OS --- Dynamic Statement Cache (6/8) -- Statement 1 from 117 Command ===> Scroll ===> CSR

DB2: Q91APrimary cmd: END, F(ilter), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), E(dit statement), S(tatement text), T(able),

X(EXecute)

StmtID Total CPU Average CPU Total Elapse Average Elapse---------- HHHH:MM:SS.ttt HHHH:MM:SS.ttt HHHH:MM:SS.ttt HHHH:MM:SS.ttt

2162 0.040 0.003 0.373 0.027 2164 0.047 0.001 0.128 0.004 2152 0.014 0.005 0.104 0.035 2154 0.007 0.001 0.007 0.001 2247 0.006 0.006 0.006 0.006 2250 0.006 0.006 0.006 0.006 2192 0.005 0.001 0.005 0.001 2208 0.013 0.013 0.089 0.089 2138 0.004 - 0.004 -2150 0.002 0.001 0.002 0.001 2155 0.002 - 0.002 -2253 - - - -2255 0.004 0.001 0.004 0.001 2256 0.004 0.001 0.004 0.001

BIX – DSC Browser

Page 35: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

34© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

SQL-Text Count CPU-TimeSELECT … WHERE COL = ‘ABC‘ 1 1sSELECT … WHERE COL = ‘BCD‘ 1 1sSELECT … WHERE COL = ‘CDE‘ 1 1sSELECT … WHERE COL = ‘DEF‘ 1 1sSELECT … WHERE COL = ‘EFG‘ 1 1s…

SQL-Text Count CPU-TimeSELECT … WHERE COL = ‘ABC‘’ 10.000 10.000s…

Level 1: Ignore values, spacing, cursor names, select clauses

BIX – SQL Aggregation

Page 36: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

35© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

SELECT COLX, COL2 FROM CRE1.TAB1 WHERE COL5 = ‘ABC‘ SELECT COL1, COL2 FROM CRE1.TAB1 WHERE COL5 = ‘123‘=> Level 1SELECT COL1, COL2 FROM CRE1.TAB1 WHERE COL5 > ‘123‘=> Level 2SELECT COL1, COL2 FROM CRE1.TAB1 WHERE COL5 > :HV1=> Level 3SELECT COL1, COL2 FROM CRE1.TAB1 WHERE COL7 > :HV1=> Level 4

SELECT COL1, COL2 FROM CRE2.TAB1 WHERE COL5 > :HV1=> Level 3+ tbcreator

SELECT COL1, COL2 FROM CRE1.TAB1 WHERE COL = ‘ABC‘

Level 2: Level1 + operators in predicatesLevel 3: Level2 + right hand sideLevel 4: Aggregate on object levelOptionally (for all levels): table creator

BIX – SQL Aggregation

Page 37: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

36© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Reduce the risk of bad access paths after REBIND Adds transparency to the new DB2 feature

Show existing copies (and their status!)

Shows access paths for package copies

Allow to execute REBINDs for packages that e.g. are rated CHANGED with the ability to switch back in case of a performance degradation*

Reduces the amount of space needed in SPT01 due to the fact that no REBIND is generated by BIX for unchanged packages*

Allows to REBIND unchanged packages in a migration scenario without creating a copy*

* Along with BIX

SPT01 Transparency – Key Features

Page 38: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

37© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Bind Avoidance – ConditionalBind

Avoid unnecessary binds Optimize and accelerate the compile procedure Reduce CPU load Reduce locks the catalog Compatible with the DB2 Coprocessor

Page 39: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

38© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

DBRM Reconstruct – Key Features

Recreates DBRMs from the DB2 catalog Generates the original BIND command Supports PLANs and PACKAGEs Allows to recreate multiple PACKAGE versions

Page 40: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

39© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

New features coming up… we are ready for DB2 10

SEGUS and SOFTWARE ENGINEERING announcedSame-Day-Support for DB2 10 ESP for z/OS

SOFTWARE ENGINEERING's products, which include

RealTime DBAExpertSQL PerformanceExpertBind ImpactExpertRecovery AssuranceExpertInstant CloningExpertPocket Tool Suite,

support the new version of DB2 since March 31st, 2010.

Page 41: Bind ImpactExpert for DB2 z/OS - SEGUS · Bind ImpactExpert for DB2 z/OS ... JOB SUBMIT TIME PLAN DBRM REC EX IMP WRS OTH S ... ImpactExpert for DB2 z/OS ----- BIND Impact ...

40© 2010 SEGUS Inc. and SOFTWARE ENGINEERING GMBH

Summary

What can you expect from Bind ImpactExpert:

- Flexibility in developing and runningyour applications

- Same level of insight & protection foryour static and dynamic SQL

- Proactive and/or reactive procedures following your needs

- Cost efficiency in development and operations