SlideShare a Scribd company logo
1 of 14
DB2 For z/OS Solutions
SoftBase Batch Healthcare



Batch Healthcare Consists of:

    Attach Facility (DB2 Call Attach)

    Checkpoint (Checkpoint Facility)

    Batch Analyzer ( DB2 Batch Analysis)

    DeadLock Advisor (DeadLock-Timeout Reporting)




 - All can be licensed separately or in combination
SoftBase Batch Analyzer
Batch Healthcare Solution
SoftBase Batch Analyzer


Nightly DB2 Batch Overview




Where is bad DB2 for z/OS SQL? Which Jobs (applications) need tuning?
SQL Job Performance Analysis


  Select the Most Expensive Job
SoftBase Systems            Batch Analyzer Version 3.1.0
                       === SQL Performance Analysis (Jobs) ===
 Command ===>                                                Scroll ===> CSR
 Filter: ON Intervals: OFF From: 08/11/11 To: 08/12/11 Loctn: DB8G
                                                                                                 ->
                           +--- RUN TIME ---+---CPU UTILIZED--+
                 Job Start |   Job    DB2 % |        Job       DB2 % |       DB2 CPU%        Total
   Jobname       Timestamp | Elapsed of Et |         CPU      of CPU | I all Jobs          DB2 Cost
   -------- ----------- -------- ------          -------- ------ -- --------               --------
_ HRBKUPQ2 08/12 19:33 06:04:56        58.3      04:30:08        52.9 --            38.2   $8582.36
_ HRBKUPMO 08/12 03:11 04:51:07        63.2      02:55:00        68.4 --            32.0   $7191.54
_ HRDLY001 08/12 18:36 00:55:18        96.5      00:34:37        95.4 --             8.8   $1982.46
_ DLYRATEX 08/12 03:04 00:56:13        55.3      00:44:43        46.9 --             5.6   $1259.18
_ HRBKUPMU 08/12 01:26 01:31:29
Select the most expensive              29.1      01:13:45        25.1 --             4.9   $1111.53
 DB2 Job to see 08/12 19:32 00:51:52
_ HRMTHLY2      Job Step               97.4 is the most expensive DB2 Job
                                                 00:14:46        95.2 --             3.7   $ 843.96
                                       What
      performance.
_ HR430003 08/12 00:34 00:33:48        89.2 the last 24 hours? Job HRBKUPQ2 used
                                       during    00:12:56        81.2 --             2.8   $ 630.92
_ INVCMTH1 08/12 15:34 00:48:22        more than00:42:56
                                       15.1       38% of all DB2 CPU during this time!
                                                                 13.2 --             1.5   $ 340.25
_ HR430001 08/12 13:14 00:18:12        16.8      00:16:18        15.0 --             0.6   $ 147.46
_ HR430001 08/12 17:21 00:17:05        15.2      00:15:20        13.5 --             0.5   $ 125.08
SQL Job Performance Analysis


  Select the Most Expensive Step
 SoftBase Systems            Batch Analyzer Version 3.1.0
                       === SQL Performance Analysis (Steps) ===
 Command ===>                                                Scroll ===> CSR
 Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G
                                                                                          ->
                                       +-- RUN TIME --+-CPU UTILIZED-+          DB2
                            Step Start | Step    DB2 %| Step        DB2 %|      CPU%   Total
   Jobname StepName          Timestamp Elapsed of Et      CPU        CPU     I Steps DB2 Cost
   -------- --------        ----------- -------- ----- -------- ----- -- ----- --------
S HRBKUPQ2 HRBKUPDL         08/12 20:23 03:26:50 86.2 02:24:31 81.5 -- 82.4 $7075.64
_ HRBKUPQ2 HRBK00Z          08/13 00:31 01:07:00 16.8 01:01:03 16.2 --           6.9 $ 593.73
_ HRBKUPQ2 HRBKUPQ2         08/12 23:54 00:37:20 24.6 00:34:29 22.6 --           5.4 $ 468.02
_ HRBKUPQ2 HRBKUPMO         08/12 19:33 00:45:14 19.1 00:25:50 14.3 --           2.6 $ 223.15
                                                      The most expensive steps
_ HRBKUPQ2 HRBKCHK2
Select the most expensive   08/12 23:50 00:03:21 99.0 00:02:34 first. Step --
                                                         are listed  99.7        1.7 $ 153.79
     Step to see SQL
_ HRBKUPQ2 HRBKCHK          08/12 20:18 00:02:04 97.8 HRBKUPDL used 82.4% of
                                                       00:01:06 99.6 --          0.7 $ 65.92
_statement performance.
   HRBKUPQ2 HRBKUPN1        08/12 20:20 00:03:01   0.0 00:00:31 CPU. --
                                                            the DB2 0.0          0.0 $   0.01
_ HRBKUPQ2 HRBK00X          08/12 23:53 00:00:07 33.3 00:00:03 68.8 --           0.0 $   2.11
SQL Job Performance Analysis


 Select the Most Expensive Statement
 SoftBase Systems          Batch Analyzer Version 3.1.0
                         === SQL Performance Analysis ===
 Command ===>                                                                Scroll ===> CSR
 Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G
                              Commands: S : Show SQL D : Dynamic SQL L : timeLine ->
                                   Step Start   Stmt Stmt              DB2 CPU %     Total
S Jobname          Plan   Package Timestamp      Num Type I All Stmts                 Cost
- -------- -------- -------- ----------- ----- ----- --- --------- --------
S HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          559 UPDAT -               94.5   $6687.90
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          446 OPEN         -         2.8   $ 203.81
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          508 SELCT -                0.9   $ 70.53
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 The most expensive SQL 0.7
                                                 470 FETCH -                      $ 52.07
Select the most expensive DLYRATEX 08/12 20:23 statements are listed first. 0.5
_ HRBKUPQ2 PDGF450                               520 SELCT -                      $ 39.28
_ HRBKUPQ2 for details. DLYRATEX 08/12 20:23 This UPDATE statement
SQL statement PDGF450                            535 SELCT -                0.2   $ 20.69
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          400 FETCH -
                                                 used 94.5% of all DB2      0.0   $   1.27
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23            CPU in this batch
                                                 276 SELCT -                0.0   $   0.10
                                                       program.
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          493 CLOSE -                0.0   $   0.01
_ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23          380 OPEN         -         0.0   $   0.01
SQL Job Performance Analysis


  Actual Text of The Most Expensive Statement
 SoftBase Systems      Batch Analyzer Version 3.1.0                  Row 1 of 3

Command ===>                                         Scroll ===> CSR

 JobName: HRBKUPQ2   Step: HRBKUPDL   Program: DLYRATEX SSID: DB8G
    Plan: PDGF450    Type: PACKAGE     Collid: PDGF450DB8G

 ------------------------ Performance ----------------------------
 CPU as pct of Elapsed..        65.5        Total Cost..: $6687.90
  SQL statement you Average       Maximum        Total %of Total
   should tune first! --------- ---------    ---------     -----
                                                                   Actual SQL Text is
 Elapsed.Time...          0.013     6.710    10196.763      95.3     now displayed.
 CPU Time.......          0.008     0.027     6687.897      94.5     Notice that the
 Rows Affected..             96        96     76800000              WHERE clause is
-------- SQL Text ( statement number:    559 ) ------------------- written to update
UPDATE ACCT_NOTES SET NOTE_TEXT2 =                                 ALL account note
                                                                   records instead of
:W-WORKING-STORAGE.W-NEW-INVC-NOTE WHERE CUST_N =
                                                                          one.
:DCLACCOUNT.ACCT-CUST-N
Batch Throughput Analysis


    Identifies Batch Contention Issues
SoftBase Systems              Batch Analyzer Version 3.1.0
                         === Batch Throughput Analysis (Jobs) ===
Command ===>                                                Scroll ===> CSR
Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G

                               +--- RUN TIME ---+
                Job Start |         Job        DB2 % |                        Deadlck   Comt Chg    Commit
    Jobname     Timestamp | Elapsed of Et | DB2 CPU I Timeout                            Cnt Pct    Freqncy
    --------   -----------|-------- ------ |-------- -- -------                         ---- ----- --------
_   HRDLY001   08/12 03:04 00:01:41             91.9         ~ 0:00 --             3       0 99.9 NO CMT
_   HRMTHLY2   08/12 03:04 00:01:05             94.6         ~ 0:00 --             2       0 99.9 NO CMT
                   Displays DB2 batch jobs encountering
_   HRMTHLY2   08/12 03:09 00:01:05             94.7         ~ 0:00 --             2       0 99.9 NO CMT
                timeouts and deadlocks. Job HRDLY had 3
_   HRMTHLY2   08/12 19:32issued no COMMITS during
                 timeouts, and 00:51:52         97.4 00:14:46 --                   1     133 96.1 00:00:23
_   HR430003   08/12 00:34 execution.
                                00:33:48        89.2 00:12:56 --                   0       0 91.7 NO CMT
_   MTHBILLN   08/12 00:36 00:30:33             16.6 00:15:01 --                   0       0   0.0 NO CMT
_   HRBKUPMU   08/12 01:26 01:31:29             29.1 01:13:45 --                   0    2601 13.1 00:00:02
                                     Chg Pct is a critical number – it is the
_   HRBKUPMO   08/12 03:11 04:51:07             63.2 02:55:00 --                   0    1601 88.6 00:00:10
                                        percent of time, out of all I/O, that
_   ACCTHIST   08/12 11:54 00:09:23     programs 0.0 00:03:42 --
                                                  are changing DB2 data.           0       0   0.0 NO CMT
_   MTHBILL3   08/12 13:03 00:06:55             10.8 00:06:20 --                   0       0   0.0 NO CMT
Recovery Impact Analysis


    Identifies Potential Rollbacks
SoftBase Systems           Batch Analyzer Version 3.1.0
                       === Recovery Impact Analysis (Jobs) ===
 Command ===>                                                Scroll ===> CSR
 Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G

                               +-- RUN TIME---+
                 Job Start | Job             DB2 %|   Deadlck Chg Comit Commit Rollback
    Jobname      Timestamp |Elapsed of Et| I Timeout Pct           Cnt Frequncy Estimate
    -------- -----------|-------- -----|-- ------- ----- ----- -------- --------
_   HRBKUPQ2 08/12 19:33 06:04:56 58.3 --                 0   80.7 2601 00:00:08 05:39:53
_   HRBKUPMO 08/12 03:11 04:51:07 63.2 --                 0   88.6 1601 00:00:10 05:26:30
_   HR430003 08/12 00:34 00:33:48 89.2 --                 0   91.7    0 NO CMT 00:55:22
_   DLYRATEX 08/12 03:04 00:56:13 55.3 --                 0   56.8 1601 00:00:02 00:35:22
_       The Recovery Impact Analysis Report 91.9 --
    HRDLY001 08/12 03:04 00:01:41                         3   99.9    0 NO CMT 00:01:03
       provides an estimate of how long each
_   HRMTHLY2 08/12 03:09 00:01:05 94.7 --                 2   99.9    0 NO CMT 00:01:03
         DB2 batch program will require to
_   HRMTHLY2 08/12 19:32 00:51:52 97.4 --
        ROLLBACK any changes it has made                  1   96.1  133 00:00:23 00:01:03
_   HRMTHLY2 08/12 COMMIT statement.
          since the last 03:04 00:01:05 94.6 --           2   99.9    0 NO CMT 00:01:02
_   HR430002 08/12 17:46 00:47:59              1.0 --     0   86.4    1 00:47:59 00:00:51
_   HRDLY001 08/12 18:36 00:55:18 96.5 --                 0   97.9  300 00:00:11 00:00:42
SoftBase Batch Analyzer Installation


Batch Analyzer Installation Procedure

    Installation time is usually maximum of 1 – 2 hours

    DB2 DBA performs the Batch Analyzer installation – System
     Programmer SMP type install is not required!

    Initial installation is done into a test DB2 environment

    DBAs and Developers usually review Batch Analyzer reports after
     it collects data for several days
SoftBase Batch Analyzer POC


Batch Analyzer Deployment

    Batch Analyzer’s Touch Free Collector can begin gathering
     performance data for all DB2 batch jobs in seconds –WITHOUT
     JCL CHANGES

    Performance collection overhead is typically 1% - 3% for each Job
     watched – most customers say it is not even noticeable

    Batch Analyzer Touch Free Collector can be started and stopped
     with a single command

    Batch Analyzer does not require a lengthy trial – it either finds
     significant performance problems immediately or it doesn’t!
SoftBase Batch Analyzer
Batch Healthcare Solution
SoftBase
   20 Fall Pippin Lane, Suite 202
   Asheville, NC USA 28803
   sales@softbase.com
   support@softbase.com
   800-669-7076




© 2011 Candescent SoftBase, LLC
SoftBase® is a Registered Trademark. All Right Reserved.
Phone: (800) 669-7076 | (828) 670-9900

More Related Content

What's hot

Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Emre Baransel
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersKyle Hailey
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014Connor McDonald
 
PostgreSQL Portland Performance Practice Project - Database Test 2 Tuning
PostgreSQL Portland Performance Practice Project - Database Test 2 TuningPostgreSQL Portland Performance Practice Project - Database Test 2 Tuning
PostgreSQL Portland Performance Practice Project - Database Test 2 TuningMark Wong
 
Dataguard fsfo-implementation
Dataguard fsfo-implementationDataguard fsfo-implementation
Dataguard fsfo-implementationمسلم islam
 
Profiling the logwriter and database writer
Profiling the logwriter and database writerProfiling the logwriter and database writer
Profiling the logwriter and database writerKyle Hailey
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Kristofferson A
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptChien Chung Shen
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersConnor McDonald
 
Indexing in Exadata
Indexing in ExadataIndexing in Exadata
Indexing in ExadataEnkitec
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-featuresNavneet Upneja
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus cagingBertrandDrouvot
 
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
 Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo... Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...Enkitec
 
Dataguard broker and observerst
Dataguard broker and observerstDataguard broker and observerst
Dataguard broker and observerstsmajeed1
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuningafa reg
 
How to Avoid Pitfalls in Schema Upgrade with Galera
How to Avoid Pitfalls in Schema Upgrade with GaleraHow to Avoid Pitfalls in Schema Upgrade with Galera
How to Avoid Pitfalls in Schema Upgrade with GaleraSveta Smirnova
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 

What's hot (20)

Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmasters
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014
 
PostgreSQL Portland Performance Practice Project - Database Test 2 Tuning
PostgreSQL Portland Performance Practice Project - Database Test 2 TuningPostgreSQL Portland Performance Practice Project - Database Test 2 Tuning
PostgreSQL Portland Performance Practice Project - Database Test 2 Tuning
 
Intro to ASH
Intro to ASHIntro to ASH
Intro to ASH
 
Dataguard fsfo-implementation
Dataguard fsfo-implementationDataguard fsfo-implementation
Dataguard fsfo-implementation
 
Profiling the logwriter and database writer
Profiling the logwriter and database writerProfiling the logwriter and database writer
Profiling the logwriter and database writer
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning Concept
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
 
Indexing in Exadata
Indexing in ExadataIndexing in Exadata
Indexing in Exadata
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus caging
 
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
 Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo... Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
 
Using AWR for IO Subsystem Analysis
Using AWR for IO Subsystem AnalysisUsing AWR for IO Subsystem Analysis
Using AWR for IO Subsystem Analysis
 
Dataguard broker and observerst
Dataguard broker and observerstDataguard broker and observerst
Dataguard broker and observerst
 
Shareplex Presentation
Shareplex PresentationShareplex Presentation
Shareplex Presentation
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
 
How to Avoid Pitfalls in Schema Upgrade with Galera
How to Avoid Pitfalls in Schema Upgrade with GaleraHow to Avoid Pitfalls in Schema Upgrade with Galera
How to Avoid Pitfalls in Schema Upgrade with Galera
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 

Similar to Quickly Locate Poorly Performing DB2 for z/OS Batch SQL

Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)akirahiguchi
 
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleGuatemala User Group
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationAndrew Hutchings
 
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...Percona xtra db cluster(pxc) non blocking operations, what you need to know t...
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...Marco Tusa
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTanel Poder
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new featuresAlfredo Krieg
 
Lightweight Transactions at Lightning Speed
Lightweight Transactions at Lightning SpeedLightweight Transactions at Lightning Speed
Lightweight Transactions at Lightning SpeedScyllaDB
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging RubyAman Gupta
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTanel Poder
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratopSandesh Rao
 
Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Ontico
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and HadoopDataWorks Summit
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2Alex Zaballa
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2Alex Zaballa
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Alex Zaballa
 
Adapting to Adaptive Plans on 12c
Adapting to Adaptive Plans on 12cAdapting to Adaptive Plans on 12c
Adapting to Adaptive Plans on 12cMauro Pagano
 

Similar to Quickly Locate Poorly Performing DB2 for z/OS Batch SQL (20)

Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)
 
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...Percona xtra db cluster(pxc) non blocking operations, what you need to know t...
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
 
Lightweight Transactions at Lightning Speed
Lightweight Transactions at Lightning SpeedLightweight Transactions at Lightning Speed
Lightweight Transactions at Lightning Speed
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
 
Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and Hadoop
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
 
Adapting to Adaptive Plans on 12c
Adapting to Adaptive Plans on 12cAdapting to Adaptive Plans on 12c
Adapting to Adaptive Plans on 12c
 

More from softbasemarketing

Improve DB2 z/OS Test Data Management
Improve DB2 z/OS Test Data ManagementImprove DB2 z/OS Test Data Management
Improve DB2 z/OS Test Data Managementsoftbasemarketing
 
Improve DB2 testing environments
Improve DB2 testing environmentsImprove DB2 testing environments
Improve DB2 testing environmentssoftbasemarketing
 
Instantly find the causes of DB2 deadlocks and timeouts
Instantly find the causes of DB2 deadlocks and timeoutsInstantly find the causes of DB2 deadlocks and timeouts
Instantly find the causes of DB2 deadlocks and timeoutssoftbasemarketing
 
DB2 for z/OS Checkpoint and Restart Solution
DB2 for z/OS Checkpoint and Restart SolutionDB2 for z/OS Checkpoint and Restart Solution
DB2 for z/OS Checkpoint and Restart Solutionsoftbasemarketing
 
Execute DB2 applications more efficiently, in less time and with greater flex...
Execute DB2 applications more efficiently, in less time and with greater flex...Execute DB2 applications more efficiently, in less time and with greater flex...
Execute DB2 applications more efficiently, in less time and with greater flex...softbasemarketing
 
Developing and Deploying Reliable DB2 Applications
Developing and Deploying Reliable DB2 ApplicationsDeveloping and Deploying Reliable DB2 Applications
Developing and Deploying Reliable DB2 Applicationssoftbasemarketing
 

More from softbasemarketing (7)

Improve DB2 z/OS Test Data Management
Improve DB2 z/OS Test Data ManagementImprove DB2 z/OS Test Data Management
Improve DB2 z/OS Test Data Management
 
DB2 for z/OS Solutions
DB2 for z/OS SolutionsDB2 for z/OS Solutions
DB2 for z/OS Solutions
 
Improve DB2 testing environments
Improve DB2 testing environmentsImprove DB2 testing environments
Improve DB2 testing environments
 
Instantly find the causes of DB2 deadlocks and timeouts
Instantly find the causes of DB2 deadlocks and timeoutsInstantly find the causes of DB2 deadlocks and timeouts
Instantly find the causes of DB2 deadlocks and timeouts
 
DB2 for z/OS Checkpoint and Restart Solution
DB2 for z/OS Checkpoint and Restart SolutionDB2 for z/OS Checkpoint and Restart Solution
DB2 for z/OS Checkpoint and Restart Solution
 
Execute DB2 applications more efficiently, in less time and with greater flex...
Execute DB2 applications more efficiently, in less time and with greater flex...Execute DB2 applications more efficiently, in less time and with greater flex...
Execute DB2 applications more efficiently, in less time and with greater flex...
 
Developing and Deploying Reliable DB2 Applications
Developing and Deploying Reliable DB2 ApplicationsDeveloping and Deploying Reliable DB2 Applications
Developing and Deploying Reliable DB2 Applications
 

Recently uploaded

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 

Recently uploaded (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 

Quickly Locate Poorly Performing DB2 for z/OS Batch SQL

  • 1. DB2 For z/OS Solutions
  • 2. SoftBase Batch Healthcare Batch Healthcare Consists of:  Attach Facility (DB2 Call Attach)  Checkpoint (Checkpoint Facility)  Batch Analyzer ( DB2 Batch Analysis)  DeadLock Advisor (DeadLock-Timeout Reporting) - All can be licensed separately or in combination
  • 3. SoftBase Batch Analyzer Batch Healthcare Solution
  • 4. SoftBase Batch Analyzer Nightly DB2 Batch Overview Where is bad DB2 for z/OS SQL? Which Jobs (applications) need tuning?
  • 5. SQL Job Performance Analysis Select the Most Expensive Job SoftBase Systems Batch Analyzer Version 3.1.0 === SQL Performance Analysis (Jobs) === Command ===> Scroll ===> CSR Filter: ON Intervals: OFF From: 08/11/11 To: 08/12/11 Loctn: DB8G -> +--- RUN TIME ---+---CPU UTILIZED--+ Job Start | Job DB2 % | Job DB2 % | DB2 CPU% Total Jobname Timestamp | Elapsed of Et | CPU of CPU | I all Jobs DB2 Cost -------- ----------- -------- ------ -------- ------ -- -------- -------- _ HRBKUPQ2 08/12 19:33 06:04:56 58.3 04:30:08 52.9 -- 38.2 $8582.36 _ HRBKUPMO 08/12 03:11 04:51:07 63.2 02:55:00 68.4 -- 32.0 $7191.54 _ HRDLY001 08/12 18:36 00:55:18 96.5 00:34:37 95.4 -- 8.8 $1982.46 _ DLYRATEX 08/12 03:04 00:56:13 55.3 00:44:43 46.9 -- 5.6 $1259.18 _ HRBKUPMU 08/12 01:26 01:31:29 Select the most expensive 29.1 01:13:45 25.1 -- 4.9 $1111.53 DB2 Job to see 08/12 19:32 00:51:52 _ HRMTHLY2 Job Step 97.4 is the most expensive DB2 Job 00:14:46 95.2 -- 3.7 $ 843.96 What performance. _ HR430003 08/12 00:34 00:33:48 89.2 the last 24 hours? Job HRBKUPQ2 used during 00:12:56 81.2 -- 2.8 $ 630.92 _ INVCMTH1 08/12 15:34 00:48:22 more than00:42:56 15.1 38% of all DB2 CPU during this time! 13.2 -- 1.5 $ 340.25 _ HR430001 08/12 13:14 00:18:12 16.8 00:16:18 15.0 -- 0.6 $ 147.46 _ HR430001 08/12 17:21 00:17:05 15.2 00:15:20 13.5 -- 0.5 $ 125.08
  • 6. SQL Job Performance Analysis Select the Most Expensive Step SoftBase Systems Batch Analyzer Version 3.1.0 === SQL Performance Analysis (Steps) === Command ===> Scroll ===> CSR Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G -> +-- RUN TIME --+-CPU UTILIZED-+ DB2 Step Start | Step DB2 %| Step DB2 %| CPU% Total Jobname StepName Timestamp Elapsed of Et CPU CPU I Steps DB2 Cost -------- -------- ----------- -------- ----- -------- ----- -- ----- -------- S HRBKUPQ2 HRBKUPDL 08/12 20:23 03:26:50 86.2 02:24:31 81.5 -- 82.4 $7075.64 _ HRBKUPQ2 HRBK00Z 08/13 00:31 01:07:00 16.8 01:01:03 16.2 -- 6.9 $ 593.73 _ HRBKUPQ2 HRBKUPQ2 08/12 23:54 00:37:20 24.6 00:34:29 22.6 -- 5.4 $ 468.02 _ HRBKUPQ2 HRBKUPMO 08/12 19:33 00:45:14 19.1 00:25:50 14.3 -- 2.6 $ 223.15 The most expensive steps _ HRBKUPQ2 HRBKCHK2 Select the most expensive 08/12 23:50 00:03:21 99.0 00:02:34 first. Step -- are listed 99.7 1.7 $ 153.79 Step to see SQL _ HRBKUPQ2 HRBKCHK 08/12 20:18 00:02:04 97.8 HRBKUPDL used 82.4% of 00:01:06 99.6 -- 0.7 $ 65.92 _statement performance. HRBKUPQ2 HRBKUPN1 08/12 20:20 00:03:01 0.0 00:00:31 CPU. -- the DB2 0.0 0.0 $ 0.01 _ HRBKUPQ2 HRBK00X 08/12 23:53 00:00:07 33.3 00:00:03 68.8 -- 0.0 $ 2.11
  • 7. SQL Job Performance Analysis Select the Most Expensive Statement SoftBase Systems Batch Analyzer Version 3.1.0 === SQL Performance Analysis === Command ===> Scroll ===> CSR Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G Commands: S : Show SQL D : Dynamic SQL L : timeLine -> Step Start Stmt Stmt DB2 CPU % Total S Jobname Plan Package Timestamp Num Type I All Stmts Cost - -------- -------- -------- ----------- ----- ----- --- --------- -------- S HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 559 UPDAT - 94.5 $6687.90 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 446 OPEN - 2.8 $ 203.81 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 508 SELCT - 0.9 $ 70.53 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 The most expensive SQL 0.7 470 FETCH - $ 52.07 Select the most expensive DLYRATEX 08/12 20:23 statements are listed first. 0.5 _ HRBKUPQ2 PDGF450 520 SELCT - $ 39.28 _ HRBKUPQ2 for details. DLYRATEX 08/12 20:23 This UPDATE statement SQL statement PDGF450 535 SELCT - 0.2 $ 20.69 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 400 FETCH - used 94.5% of all DB2 0.0 $ 1.27 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 CPU in this batch 276 SELCT - 0.0 $ 0.10 program. _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 493 CLOSE - 0.0 $ 0.01 _ HRBKUPQ2 PDGF450 DLYRATEX 08/12 20:23 380 OPEN - 0.0 $ 0.01
  • 8. SQL Job Performance Analysis Actual Text of The Most Expensive Statement SoftBase Systems Batch Analyzer Version 3.1.0 Row 1 of 3 Command ===> Scroll ===> CSR JobName: HRBKUPQ2 Step: HRBKUPDL Program: DLYRATEX SSID: DB8G Plan: PDGF450 Type: PACKAGE Collid: PDGF450DB8G ------------------------ Performance ---------------------------- CPU as pct of Elapsed.. 65.5 Total Cost..: $6687.90 SQL statement you Average Maximum Total %of Total should tune first! --------- --------- --------- ----- Actual SQL Text is Elapsed.Time... 0.013 6.710 10196.763 95.3 now displayed. CPU Time....... 0.008 0.027 6687.897 94.5 Notice that the Rows Affected.. 96 96 76800000 WHERE clause is -------- SQL Text ( statement number: 559 ) ------------------- written to update UPDATE ACCT_NOTES SET NOTE_TEXT2 = ALL account note records instead of :W-WORKING-STORAGE.W-NEW-INVC-NOTE WHERE CUST_N = one. :DCLACCOUNT.ACCT-CUST-N
  • 9. Batch Throughput Analysis Identifies Batch Contention Issues SoftBase Systems Batch Analyzer Version 3.1.0 === Batch Throughput Analysis (Jobs) === Command ===> Scroll ===> CSR Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G +--- RUN TIME ---+ Job Start | Job DB2 % | Deadlck Comt Chg Commit Jobname Timestamp | Elapsed of Et | DB2 CPU I Timeout Cnt Pct Freqncy -------- -----------|-------- ------ |-------- -- ------- ---- ----- -------- _ HRDLY001 08/12 03:04 00:01:41 91.9 ~ 0:00 -- 3 0 99.9 NO CMT _ HRMTHLY2 08/12 03:04 00:01:05 94.6 ~ 0:00 -- 2 0 99.9 NO CMT Displays DB2 batch jobs encountering _ HRMTHLY2 08/12 03:09 00:01:05 94.7 ~ 0:00 -- 2 0 99.9 NO CMT timeouts and deadlocks. Job HRDLY had 3 _ HRMTHLY2 08/12 19:32issued no COMMITS during timeouts, and 00:51:52 97.4 00:14:46 -- 1 133 96.1 00:00:23 _ HR430003 08/12 00:34 execution. 00:33:48 89.2 00:12:56 -- 0 0 91.7 NO CMT _ MTHBILLN 08/12 00:36 00:30:33 16.6 00:15:01 -- 0 0 0.0 NO CMT _ HRBKUPMU 08/12 01:26 01:31:29 29.1 01:13:45 -- 0 2601 13.1 00:00:02 Chg Pct is a critical number – it is the _ HRBKUPMO 08/12 03:11 04:51:07 63.2 02:55:00 -- 0 1601 88.6 00:00:10 percent of time, out of all I/O, that _ ACCTHIST 08/12 11:54 00:09:23 programs 0.0 00:03:42 -- are changing DB2 data. 0 0 0.0 NO CMT _ MTHBILL3 08/12 13:03 00:06:55 10.8 00:06:20 -- 0 0 0.0 NO CMT
  • 10. Recovery Impact Analysis Identifies Potential Rollbacks SoftBase Systems Batch Analyzer Version 3.1.0 === Recovery Impact Analysis (Jobs) === Command ===> Scroll ===> CSR Filter: ON Intervals: OFF From: 08/11/11 To: 08/13/11 Loctn: DB8G +-- RUN TIME---+ Job Start | Job DB2 %| Deadlck Chg Comit Commit Rollback Jobname Timestamp |Elapsed of Et| I Timeout Pct Cnt Frequncy Estimate -------- -----------|-------- -----|-- ------- ----- ----- -------- -------- _ HRBKUPQ2 08/12 19:33 06:04:56 58.3 -- 0 80.7 2601 00:00:08 05:39:53 _ HRBKUPMO 08/12 03:11 04:51:07 63.2 -- 0 88.6 1601 00:00:10 05:26:30 _ HR430003 08/12 00:34 00:33:48 89.2 -- 0 91.7 0 NO CMT 00:55:22 _ DLYRATEX 08/12 03:04 00:56:13 55.3 -- 0 56.8 1601 00:00:02 00:35:22 _ The Recovery Impact Analysis Report 91.9 -- HRDLY001 08/12 03:04 00:01:41 3 99.9 0 NO CMT 00:01:03 provides an estimate of how long each _ HRMTHLY2 08/12 03:09 00:01:05 94.7 -- 2 99.9 0 NO CMT 00:01:03 DB2 batch program will require to _ HRMTHLY2 08/12 19:32 00:51:52 97.4 -- ROLLBACK any changes it has made 1 96.1 133 00:00:23 00:01:03 _ HRMTHLY2 08/12 COMMIT statement. since the last 03:04 00:01:05 94.6 -- 2 99.9 0 NO CMT 00:01:02 _ HR430002 08/12 17:46 00:47:59 1.0 -- 0 86.4 1 00:47:59 00:00:51 _ HRDLY001 08/12 18:36 00:55:18 96.5 -- 0 97.9 300 00:00:11 00:00:42
  • 11. SoftBase Batch Analyzer Installation Batch Analyzer Installation Procedure  Installation time is usually maximum of 1 – 2 hours  DB2 DBA performs the Batch Analyzer installation – System Programmer SMP type install is not required!  Initial installation is done into a test DB2 environment  DBAs and Developers usually review Batch Analyzer reports after it collects data for several days
  • 12. SoftBase Batch Analyzer POC Batch Analyzer Deployment  Batch Analyzer’s Touch Free Collector can begin gathering performance data for all DB2 batch jobs in seconds –WITHOUT JCL CHANGES  Performance collection overhead is typically 1% - 3% for each Job watched – most customers say it is not even noticeable  Batch Analyzer Touch Free Collector can be started and stopped with a single command  Batch Analyzer does not require a lengthy trial – it either finds significant performance problems immediately or it doesn’t!
  • 13. SoftBase Batch Analyzer Batch Healthcare Solution
  • 14. SoftBase 20 Fall Pippin Lane, Suite 202 Asheville, NC USA 28803 sales@softbase.com support@softbase.com 800-669-7076 © 2011 Candescent SoftBase, LLC SoftBase® is a Registered Trademark. All Right Reserved. Phone: (800) 669-7076 | (828) 670-9900

Editor's Notes

  1. SoftBase Batch Health Care Consists of:Attach Facility - DB2 Call Attach which permits DB2 batch applications to be run as native MVS jobstreamsCheckpoint - Checkpoint Facility which permits DB2 batch applications to restart at or near the point of failureBatch Analyzer - DB2 Batch Analysis which pinpoints the most expensive batch applications and SQL statements anywhere in batchDeadLock Advisor - DeadLock-Timeout Reporting that immediately reports on all batch jobs involved in -904/-911 situations.
  2. Your most expensive batch job will be at the top of the list of all jobs that ran in the past 24 hour interval.SELECT that job.
  3. Your most expensive Step of the batch job you selected will be at the top of the list.SELECT that Step.
  4. Your most expensive Statement of the Step you selected will be at the top of the list.SELECT that Statement.
  5. The actual SQL Text of the Statement will be displayed. This is the Most Expensive SQL Statement in your entire DB2 batch stream and the one you should tune first.