47
© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert for DB2 z/OS DB2 Version Migration Application Changes Database Maintenance

with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0

Access Path Control - The NEXT Levelwith CPU Environment Virtualization Bind ImpactExpert for DB2 z/OS

DB2 Version Migration

Application Changes

Database Maintenance

Page 2: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 1

Key Features

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

Page 3: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 2

Key Features

Migration to new DB2 releases and application of APARs

Integrates into maintenance and compile-procedures

Pre-screens application changes

Supports and controls dynamic SQL

Virtual Optimizer Expert - VOX

Page 4: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 3

ImpactExpert for DB2 z/OS ------ Main Menu ---------------------- Version 6.10 Command ===> ________ DB2: F91D

Primary cmd: END, S(ettings), C(leanup), A(bout), O(ld interface), H(istory) Line cmd: S(elect), I(nfo)

Dyn Migr. ConvertScenario Base Recent Expl Rules Qual. DRDA----------------------- ------------ ------------ ---- ----- ----- ----REBIND Analysis Catalog - YES N - -Pre-BIND Local Catalog DBRM YES - - -Post-BIND Local History Catalog NO - - -Pre-BIND Prod-Baseline Export (*) DBRM YES - N NPost-BIND Prod-Baseline Export (*) Catalog NO - N NEarly Precheck Static Export (*) - YES Y N NEarly Precheck Dynamic Export (*) - YES Y N -DSC Protection Export (*) - YES - N -Dynamic SQL DynStmtCache - YES - - -Static and dynamic SQL Trace - YES - - -

Plan_table compare Plan_table 1 Plan_table 2DBRM reconstruct Catalog

NOTE (*): Use export/import function to update BIX export tables.

Key Features

Page 5: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 4

Bind ImpactExpert

DB2 Version Migration control

(Early PrecheckTM)

Page 6: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 5

Version Migration control - EarlyPrecheckTM

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.

Page 7: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 6

PlanTable

Impact-Analysis

PlanTable

Comparison

Worsened

improved New AccessPath Pattern

DB2I V10 DB2P V8

or equal

DB2 9 behaviour Report

Version Migration control - EarlyPrecheckTM

Runs stand-alone for global package processing

Page 8: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 7

Specific DB2 version rule set

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)

V10 pattern 1 – Range list index scan

V10 pattern 2 – In memory in list

WORSENED – Statements with Worsened Access Path

CHANGED – Statements with Changed Access Path (not classified)

Page 9: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 8

Aug...Sep Oct Nov May...

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 10: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 9

Bind ImpactExpert

Application Changes

(Bind Control)

Page 11: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 10

BIND Control

Automatically finds BIND impacts of changed applications

LOG

EXPLAIN BIX

New DBRM for a changed programOriginal DB2

catalog

Page 12: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 11

ImpactExpert for DB2 z/OS ----- Job Overview (1/5) -------------- Job 1 from 2 Command ===> ________ Scroll ===> CSR Mode: PRE-BIND LOCAL DB2: F91DPrimary cmd: END, A(ll), N(ew), R(efresh), Z(oom), L(ocate) -Line cmd: P(rograms), D(elete), G(raphic), L(PLans), S(tatements), Z(oom)

Job name Step name Submitter Submit time PLTB owner Job status-------- --------- --------- ------------------- ---------- ----------

S BINDPACK CHKRBIND NEWMANN 2008-10-27-08.44.06 NEWMANN DONE_ BINDPACK CHKBIND SMITH 2010-11-02-09.55.43 IMPACT DONE

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

BIND Control

Page 13: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 12

ImpactExpert for DB2 z/OS ----- Programs Summary ------------- Status 1 from 7 Command ===> ________ Scroll ===> CSR Mode: PRE-BIND LOCAL DB2: F91DPrimary cmd: END, R(efresh), Z(oom) Line cmd: S(elect)

COLLECTION : *______________________________________________________________ PACKAGE : *______________________________________________________________ PLAN : *______

Status Programs Statements---------------------------------------- ---------- ----------

S PROCESSED 2 7 _ - UNCHANGED 1 5 _ - WORSENED 1 1 _ - NEW 0 1 _ NON-DETERMINABLE 0 0 _ PLAN_TABLE ISSUES 0 0 _ ERROR 0 0

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

BIND Control

Page 14: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 13

ImpactExpert for DB2 z/OS -- All Programs (1/6) ------------- Program 1 from 2 Command ===> ________ Scroll ===> CSR Mode: PRE-BIND LOCAL DB2: F91DPrimary cmd: END, S(how prepared), Z(oom), L(ocate) programsLine cmd: S(tatements), A(nalyze), B(IND prepare), Z(oom)

Imp Collection / Plan Program Job submit time Rel Rec EX--- ------------------ -------- ------------------- --- --- ---

_ EQ BINDDEMO BINDDEMO 2008-10-27-08.44.06 N/A YES S WRS BINDDEMO SQLZDEMO 2008-10-27-08.44.06 V9 NO

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

BIND Control

Page 15: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 14

ImpactExpert for DB2 z/OS -- Pre-BIND Overview (1/4) ----------- Stmt 1 from 4 Command ===> ________ Scroll ===> CSR Mode: PRE-BIND LOCAL DB2: F91DPrimary cmd: END, SE(tup Analyze), Z(oom), L(ocate) stmtnoLine cmd: S(elect), AO/AN(Analyze Old/New), DO/DN(Dynamic analyze Old/New),

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

Job submit time . 2008-10-27-08.44.06 Bindtime . . 2008-10-27-08.41.08.053757Collection/Plan . BINDDEMOProgram . . . . . SQLZDEMOLibrary . . . . . SE.PRODUCT.IDUG.DEMO.DBRM

StmtNo StmtNo Bad access types Bad access types ExplainCatlg DBRM Imp before BIND with BIND sqlcode----- ----- --- ---------------------- ---------------------- -------

__ 0 66 NEW NMIX 0__ 10 40 EQ NMIX NMIX 0__ 18 24 EQ 0S 26 58 WRS SORT 0

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

BIND Control

Page 16: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 15

ImpactExpert for DB2 z/OS ----- Access Paths ------- LINE 00000001 COL 001 080 Command ===> ________ Scroll ===> PAGEMode: PRE-BIND LOCAL DB2: F91DPrimary cmd: END, C(atalog data), D(etails on/off), S(tatement text)

Collection . BINDDEMO Timestamp. . 2008-10-27-08.44.16.630000Package. . . SQLZDEMO Version. . . V1StmtNo old . 26 Bindtime . . 2008-10-27-08.41.08.053757StmtNo new . 58 SE.PRODUCT.IDUG.DEMO.DBRM

Access path before BIND ---------------| Access path with BIND ----------------

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -SYSCOLUMNS 1 1 I 1 Y | SYSCOLUMNS 1 1 I 1 Y S

DSNDCX01 | DSNDCX01| 1 2 0 3 N|

Milliseconds: 21 | Milliseconds: 89Serviceunits: 79 | Serviceunits: 348-------------------------------------------------------------------------------

******************************** Bottom of Data ********************************

BIND Control

Page 17: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 16

Application Release Rollout – Customer Example

Page 18: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 17

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: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 18

Bind ImpactExpert

Database Maintenance (Rebind Control)(DSC Protection)

(Access Path Restore)

Page 20: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 19

BindImpactExpert

Any utility automation tool, e.g.,RealTimeMaintain

REBIND Control

Automatically guarantees REBINDS that improve performance

LOG

EXPLAIN The Pre-Check!

Page 21: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 20

ImpactExpert for DB2 z/OS ----- Programs Summary ------------- Status 1 from 8 Command ===> ________ Scroll ===> CSR Mode: REBIND ANALYSIS DB2: F91DPrimary cmd: END, R(efresh), Z(oom) Line cmd: S(elect)

COLLECTION : *______________________________________________________________ PACKAGE : *______________________________________________________________ PLAN : *_______

Status Programs Statements---------------------------------------- ---------- ----------

_ PROCESSED 152 1325 _ - IMPROVED 6 57 _ - CHANGED 8 25 _ - UNCHANGED 131 1203 _ - WORSENED 7 40 _ NON-DETERMINABLE 0 0 _ PLAN_TABLE ISSUES 0 0 _ ERROR 0 0

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

REBIND Control

Page 22: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 21

ImpactExpert for DB2 z/OS -- All Programs (1/6) --------- Program 101 from 152 Command ===> ________ Scroll ===> CSR Mode: REBIND ANALYSIS DB2: F91DPrimary cmd: END, S(how prepared), Z(oom), L(ocate) programsLine cmd: S(tatements), A(nalyze), R(EBIND prepare), Z(oom)

Imp Collection / Plan Program Job Submit Time Rel Rec EX--- ------------------ -------- ------------------- --- --- ---

_ EQ RTDX0510 MDB2MODI 2009-12-17-11.05.58 V9 NO _ IMP RTDX0510 MDB2RTDX 2009-12-17-11.05.58 N/A YES _ EQ RTDX0510 MDB2SUB 2009-12-17-11.05.58 N/A NO _ EQ RTDX0510 MDB2SYSC 2009-12-17-11.05.58 N/A NO _ EQ RTDX0510 MDB2SYST 2009-12-17-11.05.58 N/A NO _ EQ RTDX0510 MDB2SY8C 2009-12-17-11.05.58 V9 NO _ EQ RTDX0510 MDB2SY8T 2009-12-17-11.05.58 N/A NO _ EQ RTDX0510 MDB2T001 2009-12-17-11.05.58 N/A NO _ CHG RTDX0510 MDB2T002 2009-12-17-11.05.58 N/A NO _ EQ RTDX0510 MDB2T003 2009-12-17-11.05.58 V9 NO S WRS RTDX0510 MDB2T004 2009-12-17-11.05.58 V9 NO _ EQ RTDX0510 M2DBRIV9 2009-12-17-11.05.58 V9 NO _ EQ RTDX0510 M2DBRTV9 2009-12-17-11.05.58 V9 NO _ EQ RTDX0510 O2DBIX 2009-12-17-11.05.58 N/A NO _ CHG RTDX0510 O2DBJB 2009-12-17-11.05.58 V9 NO _ EQ RTDX0510 O2DBSH 2009-12-17-11.05.58 N/A NO

REBIND Control

Page 23: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 22

Access Path Comparison

ImpactExpert for DB2 z/OS -- REBIND Overview (1/4) ------------ Stmt 1 from 40 Command ===> ________ Scroll ===> CSR Mode: REBIND ANALYSIS DB2: F91DPrimary cmd: END, SE(tup Analyze), Z(oom), L(ocate) stmtnoLine cmd: S(elect), A(nalyze), D(ynamic analyze), E(dit and analyze),

V(iew), Z(oom)

Job submit time . 2009-12-17-11.05.58 Bindtime . . 2009-12-16-18.09.15.916093Collection/Plan . RTDX0510Program . . . . . MDB2T004Version . . . . .

Bad access types Bad access types ExplainStmtNo Imp before REBIND with REBIND Hint sqlcode------ --- ---------------------- ---------------------- ---- -------

_ 1091 WRS TS 0_ 1098 IMP LP,NXO 0_ 1113 EQ TS TS 0_ 1120 EQ TS TS 0_ 1135 EQ TS TS 0_ 1142 EQ 0_ 1157 WRS TS 0_ 1164 IMP LP,NXO 0_ 1179 WRS TS 0

Page 24: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 23

DSC Protection

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

Page 25: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 24

DSC Protection

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

Page 26: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 25

ImpactExpert for DB2 z/OS ----- Job Overview (1/4) -------------- Job 1 from 4 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), G(raphic), V(iew extract),

R(eset statistics), Z(oom)

Job name Step name Submitter Submit time PLTB owner Job status-------- --------- --------- ------------------- ---------- ----------

_ DSCPROT DSCPROTC HOPPER 2010-10-21-16.33.13 HOPPER DONE_ DSCPROT DSCPROTC HOPPER 2010-09-24-17.11.44 HOPPER DONE_ DSCPROT DSCPROTC HOPPER 2010-09-24-16.25.45 HOPPER DONE_ DSCPROT DSCPROTC HOPPER 2010-09-21-11.22.28 HOPPER DONE

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

DSC Protection

Page 27: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 26

ImpactExpert for DB2 z/OS -- Dynamic SQL Overview (1/6) ------ Stmt 1 from 561 Command ===> ________ Scroll ===> CSR Mode: DSC PROTECTION DB2: Q91APrimary cmd: END, SE(tup Analyze), Z(oom), L(ocate) stmtid oldLine cmd: S(elect), D(ynamic analyze), E(dit and analyze),

R(eset statistics), T(ablespaces), V(iew), Z(oom)

Bad access types Bad access typesStmtID Imp before RUNSTATS after RUNSTATS---------- --- ---------------------------- ----------------------------

_ 28 EQ TS TS_ 30 EQ TS TS_ 44 EQ TS TS_ 45 EQ_ 46 EQ TS TS_ 47 EQ TS TS_ 60 EQ TS TS_ 62 WRS NMIX_ 63 EQ_ 64 EQ_ 65 EQ_ 66 EQ_ 67 EQ_ 68 EQ TS TS

DSC Protection

Page 28: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 27

Bind ImpactExpert

VOX and MAX

Page 29: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 28

VOX and MAX

0

150

BIX1 BIX2 BIX3 BIX4WRS

IMP

WRS

CHA

IMP

EQ

Here are four BIX batch runs with normal data spread

The question is: Where are the data deltas?

The answer is: Use MAX

Page 30: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 29

ImpactExpert for DB2 z/OS ----- Job Overview (5/5) ----------- Job 16 from 113 Command ===> Scroll ===> CSR Mode: REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES DB2: Q91APrimary cmd: END, A(ll), N(ew), R(efresh), Z(oom), L(ocate) submit timeLine cmd: P(rograms), C(ompare), D(elete), G(raphic), L(PLans),

S(tatements), Z(oom)

Submit time Submitter Jobname Stepname PLTB owner PTF Level Mode------------------- --------- -------- -------- ---------- --------- ----

C 2011-02-25-14.13.14 BOXWELL RBNDPACK CHKRBIND BOXWELL PTF_10179 RC PC 2011-02-25-14.09.26 BOXWELL RBNDPACK CHKRBIND BOXWELL PTF_10179 RC P

2011-02-07-16.08.26 DUDEK RBNDPALE CHKRBIND IMPALE PTF_10179 RC P2011-02-07-16.08.26 DUDEK RBNDPAIR CHKRBIND IMPAIR PTF_10179 RC P2011-02-07-14.19.40 DUDEK RBNDPAC2 CHKRBIND IMPACT PTF_10179 RC P2011-02-07-12.56.03 DUDEK RBNDPAXX CHKRBIND IMPACT PTF_10179 RC P2011-02-07-12.56.03 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P2011-02-07-11.08.49 DUDEK RBNDPAC2 CHKRBIND IMPACT PTF_10179 RC P2011-02-07-11.08.49 DUDEK RBNDPAC1 CHKRBIND IMPACT PTF_10179 RC P2011-02-03-14.32.42 DUDEK RBNDPAC1 CHKRBIND IMPACT PTF_10179 RC P2011-02-03-14.04.36 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P2011-02-02-16.43.14 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P2011-02-02-16.19.42 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P2011-02-02-15.57.27 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P2011-02-02-14.04.59 DUDEK RBNDPACK CHKRBIND IMPACT PTF_10179 RC P

VOX and MAX

Page 31: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 30

VOX and MAX

Page 32: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 31

VOX and MAX

Page 33: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 32

ImpactExpert for DB2 z/OS ----- Job Overview (1/5) ----------- Job 16 from 113 C +-------------------------------------------------------------------------+M ! Mode : REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES !P ! Submitter: BOXWELL Submit time: 2011-02-25-14.09.26 DB2: Q91A !L ! !

! Programs Total : 23 (100%) !! - Improved 0 0,00% !! - Worsened 5 ………. . 21,74% ! d! - Changed 1 ……. . 4,35% ! -! - Unchanged 11 . . 47,83% ! 7

G ! - Non-Dtrm. 4 . . 17,39% ! 1! - PLTA Iss. 2 . . 8,70% ! 0! - Errors 0 0,00% ! 0! ! 0! Statements Total : 208 (100%) ! 0! - Improved 4 .. 1,92% ! 0! - Worsened 10 ………. 4,81% ! 0! - Changed 3 … 1,44% ! 0! - Unchanged 120 . . 57,69% ! 0! - Non-Dtrm. 10 . 4,81% ! 0! - PLTA Iss. 61 . 29,33% ! 0! - Errors 0 0,00% ! 0+-------------------------------------------------------------------------+ 0

2011-02-02-14.04.59 DONE 0 0 0 0

VOX and MAX

Page 34: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 33

ImpactExpert for DB2 z/OS --- Meta-Data Analysis Expert ------------ DB2: Q91A Command ===> Mode: REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES

Primary cmd: END Line cmd: I(mproved), C(hanged), U(nchanged), W(orsened)

COLLECTION : * PACKAGE : * PLAN : * First run : 2011-02-25-14.09.26 Second run : 2011-02-25-14.13.14

2nd runIMPROVED CHANGED UNCHANGED WORSENED

Totals 0 0 137 0 1st run

U IMPROVED 4 -4 0 4 0

CHANGED 3 0 -3 3 0

UNCHANGED 120 0 0 0 0

WORSENED 10 0 0 10 -10

VOX and MAX

Page 35: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 34

ImpactExpert for DB2 z/OS -- Statement Overview ---------------- Stmt 1 from 4 Command ===> Scroll ===> CSR Mode: REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES DB2: Q91APrimary cmd: END, Z(oom), L(ocate) collid/planLine cmd: S(tatement text), Z(oom), 1(First run), 2(Second run)

First run : 2011-02-25-14.09.26 Second run : 2011-02-25-14.13.14

Collection/Plan + Program + Version/Contoken + StmtNo SectNo------------------ ---------- ----------------------- -------- --------

2 1 DDLGEN SQLDDLD CONTOKEN=18E9104F0C1873 2262 4DDLGEN SQLDDLD CONTOKEN=18E9104F0C1873 4642 23DDLGEN SQLDDLS CONTOKEN=18E33349101C91 1862 21DDLGEN SQLDDLS CONTOKEN=18E33349101C91 2007 23------------------ ---------- ----------------------- -------- --------

VOX and MAX

Page 36: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 35

ImpactExpert for DB2 z/OS ----- Access Paths ------- LINE 00000001 COL 001 080 Command ===> Scroll ===> CSR Mode: REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES DB2: Q91APrimary cmd: END, C(atalog data), D(etails on/off), S(tatement text), T(ables),

I(All Indexes), X(Used indeXes)

Collection . DDLGEN Timestamp. . 2011-02-25-14.09.29.890000Package. . . SQLDDLD Contoken . . 18E9104F0C187370StmtNo old . 2262 Bindtime . . 2011-02-25-14.08.59.956412StmtNo new .

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

----------------- -- -- -- -- -- -- -- ! ----------------- -- -- -- -- -- -- --SYSTABLES 1 1 I 1 0 N S ! SYSTABLES 1 1 I 3 0 N

DSNDTX02 ! VRT_IX_20110218115 VIRTUALLY CREATED1 2 0 3 N !

!Milliseconds: 5 ! Milliseconds: 1Serviceunits: 10 ! Serviceunits: 2-------------------------------------------------------------------------------

******************************** Bottom of Data ********************************

VOX and MAX

Page 37: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 36

ImpactExpert for DB2 z/OS ----- Access Paths ------- LINE 00000001 COL 001 080 Command ===> Scroll ===> CSR Mode: REBIND ANALYSIS WITH/WITHOUT MIGRATION RULES DB2: Q91APrimary cmd: END, C(atalog data), D(etails on/off), S(tatement text), T(ables),

I(All Indexes), X(Used indeXes)

Collection . DDLGEN Timestamp. . 2011-02-25-14.13.17.060000Package. . . SQLDDLD Contoken . . 18E9104F0C187370StmtNo old . 2262 Bindtime . . 2011-02-25-14.08.59.956412StmtNo new .

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

----------------- -- -- -- -- -- -- -- ! ----------------- -- -- -- -- -- -- --SYSTABLES 1 1 I 1 0 N S ! SYSTABLES 1 1 I 1 0 N S

DSNDTX02 ! DSNDTX021 2 0 3 N ! 1 2 0 3 N

!Milliseconds: 5 ! Milliseconds: 5Serviceunits: 10 ! Serviceunits: 10-------------------------------------------------------------------------------

******************************** Bottom of Data ********************************

VOX and MAX

Page 38: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 37

Database Maintenance – Customer Example

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.

012345678

CPUconsumptionoldCPUconsumptionnew

0100

200300

400500

600700

SQLstatementsexaminedSQLstatementschanged

Page 39: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 38

Bind ImpactExpert

Additional Features

Page 40: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 39

Additional features

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

Bind Avoidance DBRM Reconstruct DB2 Package housekeeping Full SPT01 support

Page 41: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 40

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 :

DSC Browser

Page 42: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 41

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

DSC Browser

Page 43: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 42

ImpactExpert for DB2 z/OS --- Dynamic Statement Cache (1/8) -- Stmt 1 from 182 Command ===> ________ Scroll ===> CSR

DB2: F91DPrimary cmd: END, SE(tup), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), D(ynamic Analyze), E(dit Statement), O(bjects),

S(tatement Text), T(able), X(EXecute)

StmtID Count Program PrAuthID Qualifier Executes Getpages S---------- -------- --------- -------- --------- ---------- ---------- -

_ 323 1 IQADBACP NEWMANN NEWMANN 1234 528891 V_ 314 1 IQADBACP NEWMANN NEWMANN 1234 340584 V_ 324 1 IQADBACP NEWMANN NEWMANN 1234 53330 V_ 322 1 IQADBACP NEWMANN NEWMANN 1234 33318 V_ 502 1 IQADBACP NEWMANN NEWMANN 1 22592 V_ 503 1 IQADBACP NEWMANN NEWMANN 1 22094 V_ 511 1 IQADBACP NEWMANN NEWMANN 2144 4476 V_ 493 1 IQADBACP NEWMANN NEWMANN 2144 4288 V_ 274 1 IQADBACP NEWMANN NEWMANN 2290 4059 V_ 381 1 IQADBACP NEWMANN NEWMANN 77 3855 V_ 391 1 IQADBACP NEWMANN NEWMANN 158 3035 V_ 276 1 IQADBACP NEWMANN NEWMANN 1234 1441 V_ 494 1 IQADBACP NEWMANN NEWMANN 156 781 V_ 513 1 IQADBACP NEWMANN NEWMANN 157 588 V_ 477 1 IQADBACP NEWMANN NEWMANN 67 495 V

DSC Browser

Page 44: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 43

ImpactExpert for DB2 z/OS --- Dynamic Statement Cache (4/8) -- Stmt 1 from 182 Command ===> ________ Scroll ===> CSR

DB2: F91DPrimary cmd: END, SE(tup), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), D(ynamic Analyze), E(dit Statement), O(bjects),

S(tatement Text), T(able), X(EXecute)Synchr. Synchr. Rows Rows Index Tablespc.

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

_ 323 0 0 4473216 2290 0 2468_ 314 0 0 2996152 2295 0 2468_ 324 0 0 2284751 1234 0 1234_ 322 0 0 1621476 1234 0 1234_ 502 0 0 678110 2290 0 159_ 503 0 0 675998 1234 0 159_ 511 0 0 0 2144 0 0_ 493 0 0 0 2144 0 0_ 274 0 0 0 2290 0 0_ 381 34 0 0 77 0 0_ 391 0 0 3495 2819 316 158_ 276 0 0 0 1234 0 0_ 494 0 0 0 156 156 0_ 513 0 0 0 157 0 0_ 477 0 0 2628 49 98 67

DSC Browser

Page 45: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 44

ImpactExpert for DB2 z/OS --- Dynamic Statement Cache (6/8) -- Stmt 1 from 182 Command ===> ________ Scroll ===> CSR

DB2: F91DPrimary cmd: END, SE(tup), Z(oom), L(ocate) getpagesLine cmd: Z(oom), A(nalyze), D(ynamic Analyze), E(dit Statement), O(bjects),

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

_ 323 23.457 0.019 1:34.655 0.077 _ 314 17.138 0.014 1:16.865 0.062 _ 324 6.339 0.005 26.839 0.022 _ 322 4.753 0.004 18.608 0.015 _ 502 2.108 2.108 6.242 6.242 _ 503 2.039 2.039 5.120 5.120 _ 511 0.446 - 1.205 0.001 _ 493 1.325 0.001 5.583 0.003 _ 274 0.493 - 1.278 0.001 _ 381 0.536 0.007 4.194 0.054 _ 391 0.979 0.006 2.785 0.018 _ 276 0.231 - 0.879 0.001 _ 494 0.175 0.001 0.603 0.004 _ 513 0.051 - 0.129 0.001 _ 477 0.036 0.001 0.094 0.001

DSC Browser

Page 46: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 45

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…

SQL Aggregation

Ignores values, spacing, cursor names, select clauses

Page 47: with CPU Environment Virtualization · © 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 Access Path Control - The NEXT Level with CPU Environment Virtualization Bind ImpactExpert

© 2011 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 46

BIX IT!