SlideShare una empresa de Scribd logo
1 de 16
DB2 For z/OS Solutions
SoftBase DeadLock Advisor
Batch Healthcare Solution
SoftBase DeadLock Advisor



Business Challenges

DB2 organizations experience
deadlocks, timeouts, and resource unavailable
situations.
       Delay batch processing
       Time consuming to troubleshoot
       DB2 syslog message problems
         o Cryptic language
         o Not always available to programmers, i.e., more work for the DBA
SoftBase DeadLock Advisor



DeadLock Advisor Solution

Every programmer and DBA involved can instantly see:


       Which job was deadlocked (offended)


       Which job caused the deadlock (offending)


       A plain-English explanation of what happened
SoftBase DeadLock Advisor



Deadlock Situation
 HRMNTHLY                                      HRDAILY
 Application                                  Application
                 EMP_PROJ         EMPLOYEE
 Update                                       Update
                   Table            Table
 EMP_PROJ                                     EMPLOYEE


                   Locked          Locked

 Update            by HRM          by HRD
 EMPLOYEE


                                              Update
                                              EMP_PROJ
               Wait for HRDAILY
                                  Deadlock
                                  Code -911
SoftBase DeadLock Advisor



HRDAILY
SBST375I SOFTBASE DeadLock Advisor
***********************************************************************
* Job: HRDAILY. DB2 Subsystem DB8G. Plan HRDAILY is deadlocked by     *
* HRMNTHLY (BATCH). Deadlocking plan is HRMNTHLY.                     *
* This job (HRDAILY)will receive a negative
SQLCODE.                  *
***********************************************************************
SBST501I SOFTBASE DeadLock Advisor
***********************************************************************
* Job: HRDAILY. DB2 Subsystem DB8G. Tablespace Page                   *
* DGFDB008.DGFTS081.X'00007A' is involved in a deadlock condition.    *
***********************************************************************




                              Deadlock
SoftBase DeadLock Advisor



HRMNTHLY

 SBST375I SOFTBASE DeadLock Advisor
 ***********************************************************************
 * Job: HRMNTHLY. DB2 Subsystem DB8G. Plan HRMNTHLY has deadlocked     *
 * plan HRDAILY in HRDAILY (BATCH). This job (HRMNTHLY) is *NOT*       *
 * affected, but has caused HRDAILY to receive a deadlock condition.   *
 ***********************************************************************




                               Deadlock
SoftBase DeadLock Advisor



Timeout
 HRMNTHLY                                        HRDAILY
 Application                                    Application
               EMP_PROJ                         Update
 Update          Table                          EMP_PROJ
 EMP_PROJ


                Locked

                by HRM

                            Wait for HRMNTHLY


                          Timeout




                                      -911
SoftBase DeadLock Advisor



HRDAILY
SBST376I SOFTBASE DeadLock Advisor
***********************************************************************
* Job: HRDAILY. DB2 Subsystem DB8G. Plan HRDAILY is timed out due to *
* HRMNTHLY (BATCH). Requested resource is being held by plan          *
* HRMNTHLY. This job (HRDAILY) will receive a negative SQLCODE.       *
***********************************************************************
SBST501I SOFTBASE DeadLock Advisor
***********************************************************************
* Job: HRDAILY. DB2 Subsystem DB8G. A lock request for Tablespace     *
* Page DGFDB008.DGFTS081.X'00007A' could not be granted, and the      *
* request waited for a period longer than the maximum specified by    *
* the installation.                                                   *
***********************************************************************




                               Timeout
SoftBase DeadLock Advisor



HRMNTHLY
 SBST376I SOFTBASE DeadLock Advisor
 ***********************************************************************
 * Job: HRMNTHLY. DB2 Subsystem DB8G. Plan HRMNTHLY has timed out plan *
 * HRDAILY in HRDAILY (BATCH). This job (HRMNTHLY) is *NOT* affected, *
 * but has caused HRDAILY to receive a timeout condition.              *
 ***********************************************************************




                                Timeout
SoftBase DeadLock Advisor



TSO Timeout
                                               HRDAILY
    TSO                                       Application
              EMP_PROJ                        Update
 Update         Table                         EMP_PROJ
 EMP_PROJ


                Locked

                by TSO

                               Wait for TSO


                         Timeout




                                      -911
SoftBase DeadLock Advisor



HRHOURLY
 SBST376I SOFTBASE DeadLock Advisor
 ***********************************************************************
 * Job: HRHOURLY. DB2 Subsystem DB8G. Plan HRHOURLY is timed out due   *
 * to CSB4 (TSO). Requested resource is being held by plan DSNESPRR.   *
 * This job (HRHOURLY) will receive a negative SQLCODE.                *
 ***********************************************************************
 SBST501I SOFTBASE DeadLock Advisor 531
 ***********************************************************************
 * Job: HRHOURLY. DB2 Subsystem DB8G. A lock request for DBID/OBID     *
 * 00000279.00000010 could not be granted, and the request waited for *
 * a period longer than the maximum specified by the installation.     *
 ***********************************************************************




                             TSO Timeout
SoftBase DeadLock Advisor



Stopped Database
                              HRDAILY
                             Application
        EMP_PROJ             Update
          Table              EMP_PROJ




                      -904
SoftBase DeadLock Advisor



HRDAILY
 SBST501I SOFTBASE DeadLock Advisor
 ***********************************************************************
 * Job: HRDAILY. DB2 Subsystem DB8G. An attempt was made to allocate   *
 * Database DGFDB008, but it is stopped for all access.                *
 * This job (HRDAILY) will receive a negative SQLCODE.                 *
 ***********************************************************************




                                                       Stopped Database




                          Stopped Database
SoftBase DeadLock Advisor
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

Más contenido relacionado

Similar a Instantly find the causes of DB2 deadlocks and timeouts

How Oracle Single/Multitenant will change a DBA's life
How Oracle Single/Multitenant will change a DBA's lifeHow Oracle Single/Multitenant will change a DBA's life
How Oracle Single/Multitenant will change a DBA's lifeGuatemala User Group
 
SQL tips and techniques April 2014
SQL tips and techniques April 2014SQL tips and techniques April 2014
SQL tips and techniques April 2014Nick Ivanov
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replicationMasao Fujii
 
Odv oracle customer_demo
Odv oracle customer_demoOdv oracle customer_demo
Odv oracle customer_demoViaggio Italia
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014Connor McDonald
 
Hibernate Performance Tuning (JEEConf 2012)
Hibernate Performance Tuning (JEEConf 2012)Hibernate Performance Tuning (JEEConf 2012)
Hibernate Performance Tuning (JEEConf 2012)Sander Mak (@Sander_Mak)
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4Pranav Prakash
 
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) Ontico
 
Intro to goldilocks inmemory db - low latency
Intro to goldilocks inmemory db - low latencyIntro to goldilocks inmemory db - low latency
Intro to goldilocks inmemory db - low latencyDongpyo Lee
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helperMark Leith
 
Oracle Database features every developer should know about
Oracle Database features every developer should know aboutOracle Database features every developer should know about
Oracle Database features every developer should know aboutgvenzl
 
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Laura Hood
 
PostgreSQL: Welcome To Total Security
PostgreSQL: Welcome To Total SecurityPostgreSQL: Welcome To Total Security
PostgreSQL: Welcome To Total SecurityRobert Bernier
 
Enterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cEnterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cRakesh Gujjarlapudi
 
Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Mark Leith
 
Data guard & nologging new features in 18c
Data guard & nologging   new features in 18cData guard & nologging   new features in 18c
Data guard & nologging new features in 18cUwe Hesse
 

Similar a Instantly find the causes of DB2 deadlocks and timeouts (18)

How Oracle Single/Multitenant will change a DBA's life
How Oracle Single/Multitenant will change a DBA's lifeHow Oracle Single/Multitenant will change a DBA's life
How Oracle Single/Multitenant will change a DBA's life
 
SQL tips and techniques April 2014
SQL tips and techniques April 2014SQL tips and techniques April 2014
SQL tips and techniques April 2014
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
 
Odv oracle customer_demo
Odv oracle customer_demoOdv oracle customer_demo
Odv oracle customer_demo
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014
 
Hibernate Performance Tuning (JEEConf 2012)
Hibernate Performance Tuning (JEEConf 2012)Hibernate Performance Tuning (JEEConf 2012)
Hibernate Performance Tuning (JEEConf 2012)
 
Awr report error
Awr report errorAwr report error
Awr report error
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
 
Less04_Database_Instance.ppt
Less04_Database_Instance.pptLess04_Database_Instance.ppt
Less04_Database_Instance.ppt
 
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
 
Intro to goldilocks inmemory db - low latency
Intro to goldilocks inmemory db - low latencyIntro to goldilocks inmemory db - low latency
Intro to goldilocks inmemory db - low latency
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helper
 
Oracle Database features every developer should know about
Oracle Database features every developer should know aboutOracle Database features every developer should know about
Oracle Database features every developer should know about
 
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
 
PostgreSQL: Welcome To Total Security
PostgreSQL: Welcome To Total SecurityPostgreSQL: Welcome To Total Security
PostgreSQL: Welcome To Total Security
 
Enterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cEnterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12c
 
Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7Performance Schema and Sys Schema in MySQL 5.7
Performance Schema and Sys Schema in MySQL 5.7
 
Data guard & nologging new features in 18c
Data guard & nologging   new features in 18cData guard & nologging   new features in 18c
Data guard & nologging new features in 18c
 

Último

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Instantly find the causes of DB2 deadlocks and timeouts

  • 1. DB2 For z/OS Solutions
  • 2. SoftBase DeadLock Advisor Batch Healthcare Solution
  • 3. SoftBase DeadLock Advisor Business Challenges DB2 organizations experience deadlocks, timeouts, and resource unavailable situations.  Delay batch processing  Time consuming to troubleshoot  DB2 syslog message problems o Cryptic language o Not always available to programmers, i.e., more work for the DBA
  • 4. SoftBase DeadLock Advisor DeadLock Advisor Solution Every programmer and DBA involved can instantly see:  Which job was deadlocked (offended)  Which job caused the deadlock (offending)  A plain-English explanation of what happened
  • 5. SoftBase DeadLock Advisor Deadlock Situation HRMNTHLY HRDAILY Application Application EMP_PROJ EMPLOYEE Update Update Table Table EMP_PROJ EMPLOYEE Locked Locked Update by HRM by HRD EMPLOYEE Update EMP_PROJ Wait for HRDAILY Deadlock Code -911
  • 6. SoftBase DeadLock Advisor HRDAILY SBST375I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRDAILY. DB2 Subsystem DB8G. Plan HRDAILY is deadlocked by * * HRMNTHLY (BATCH). Deadlocking plan is HRMNTHLY. * * This job (HRDAILY)will receive a negative SQLCODE. * *********************************************************************** SBST501I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRDAILY. DB2 Subsystem DB8G. Tablespace Page * * DGFDB008.DGFTS081.X'00007A' is involved in a deadlock condition. * *********************************************************************** Deadlock
  • 7. SoftBase DeadLock Advisor HRMNTHLY SBST375I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRMNTHLY. DB2 Subsystem DB8G. Plan HRMNTHLY has deadlocked * * plan HRDAILY in HRDAILY (BATCH). This job (HRMNTHLY) is *NOT* * * affected, but has caused HRDAILY to receive a deadlock condition. * *********************************************************************** Deadlock
  • 8. SoftBase DeadLock Advisor Timeout HRMNTHLY HRDAILY Application Application EMP_PROJ Update Update Table EMP_PROJ EMP_PROJ Locked by HRM Wait for HRMNTHLY Timeout -911
  • 9. SoftBase DeadLock Advisor HRDAILY SBST376I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRDAILY. DB2 Subsystem DB8G. Plan HRDAILY is timed out due to * * HRMNTHLY (BATCH). Requested resource is being held by plan * * HRMNTHLY. This job (HRDAILY) will receive a negative SQLCODE. * *********************************************************************** SBST501I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRDAILY. DB2 Subsystem DB8G. A lock request for Tablespace * * Page DGFDB008.DGFTS081.X'00007A' could not be granted, and the * * request waited for a period longer than the maximum specified by * * the installation. * *********************************************************************** Timeout
  • 10. SoftBase DeadLock Advisor HRMNTHLY SBST376I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRMNTHLY. DB2 Subsystem DB8G. Plan HRMNTHLY has timed out plan * * HRDAILY in HRDAILY (BATCH). This job (HRMNTHLY) is *NOT* affected, * * but has caused HRDAILY to receive a timeout condition. * *********************************************************************** Timeout
  • 11. SoftBase DeadLock Advisor TSO Timeout HRDAILY TSO Application EMP_PROJ Update Update Table EMP_PROJ EMP_PROJ Locked by TSO Wait for TSO Timeout -911
  • 12. SoftBase DeadLock Advisor HRHOURLY SBST376I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRHOURLY. DB2 Subsystem DB8G. Plan HRHOURLY is timed out due * * to CSB4 (TSO). Requested resource is being held by plan DSNESPRR. * * This job (HRHOURLY) will receive a negative SQLCODE. * *********************************************************************** SBST501I SOFTBASE DeadLock Advisor 531 *********************************************************************** * Job: HRHOURLY. DB2 Subsystem DB8G. A lock request for DBID/OBID * * 00000279.00000010 could not be granted, and the request waited for * * a period longer than the maximum specified by the installation. * *********************************************************************** TSO Timeout
  • 13. SoftBase DeadLock Advisor Stopped Database HRDAILY Application EMP_PROJ Update Table EMP_PROJ -904
  • 14. SoftBase DeadLock Advisor HRDAILY SBST501I SOFTBASE DeadLock Advisor *********************************************************************** * Job: HRDAILY. DB2 Subsystem DB8G. An attempt was made to allocate * * Database DGFDB008, but it is stopped for all access. * * This job (HRDAILY) will receive a negative SQLCODE. * *********************************************************************** Stopped Database Stopped Database
  • 15. SoftBase DeadLock Advisor Batch Healthcare Solution
  • 16. 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

Notas del editor

  1. In an environment where DB2 has to work well, application developers and database administrators turn to a provider who can offer the right experience. SoftBase delivers more than 20 years of expertise in DB2 tools, and an unmatched customer experience. SoftBase: Proven Technology; Proven Tools; Proven Partner.
  2. Many DB2 organizations today experience deadlocks, timeouts and resource unavailable situations during batch processing. Determining the root cause of these batch-delaying problems is often a tedious task for DBAs. DeadLock Advisor makes the job of pinpointing these issues and which job caused them effortless by placing easy to understandmessages in the job log of both jobs involved in the deadlock, timeout, or resource unavailable condition. In this way, application developers can troubleshoot their jobs without the assistance of a DBA.DeadLock Advisor places a message in the job log of every batch job that experiences a deadlock timeout or resource unavailable condition. Further, for conditions involving two batch jobs, even though typically only one job receives a negative SQL code such as -911 (and neither job receives a message), DeadLock Advisor places a message in both job logs. The deadlock (or resource unavailable) condition is then instantly visible to any involved party. No other DB2 tool available pinpoints the source of deadlock timeouts in this manner.
  3. DeadLock Advisor expedites this by placing an easy to understand message in the joblog of each application involved. Application developers can troubleshoot their own jobs without a DBA’s assistance.For conditions involving two applications, DB2 will return a negative sequel code for only one job, and neither job will receive a message. In contrast, DeadLock Advisor will place a message in both joblogs. The problematic condition, as well as it's cause, is instantly made visible to anyone involved. DeadLock Advisor is the only DB2 tool available that identifies the source of deadlock timeouts in this manner.
  4. In this scenario, two applications have become deadlocked. The hr monthly application begins updating the project table, prior to updating the <rate speed="1"><pitch middle="-2">employee</pitch></rate> table, which is being updated by hr daily. When hr monthly attempts to update the <pitch middle="-2">employee</pitch> table, it must wait for hr daily to finish. While hr monthly waits, it keeps the project table locked.Hr daily then attempts to update the project table, which is of course still locked by hr monthly. The monthly application has deadlocked the daily application. Normally in this situation, only the daily application would receive a 911 sequel code, and <pitch middle="1">neither</pitch> application would receive a <pitch middle="-2">message</pitch>. To understand <pitch middle="2">why</pitch> this <pitch middle="-2">deadlock</pitch> <pitch middle="2">occurred</pitch>, a DBA would have to spend considerable time searching DB2 logs and other data sources. Deadlock advisor <pitch middle="1">saves</pitch> <pitch middle="-2">time</pitch> by placing an easy to <pitch middle="-2">understand</pitch>, <pitch middle="2">English</pitch> like <pitch middle="-2">message</pitch> in the <pitch middle="-1">joblog</pitch> of <pitch middle="1">both</pitch> <pitch middle="-1">applications</pitch>.
  5. The offended application, hr daily, receives a message identifying the offending application, or the application that caused the deadlock. In this case, the offending application is hr monthly.
  6. The offending application <pitch middle="1">also</pitch> receives a message, identifying the application that it deadlocked.
  7. Deadlock Advisor also reports details on <pitch middle="-1">timeouts</pitch>. In this scenario, hr monthly causes hr daily to timeout. Normally, only hr daily would receive a 911 sequel code, and neither application would receive a message.
  8. <pitch middle="1">Deadlock</pitch> advisor<pitch middle="-1"> places a message in hr daily's joblog, explaining that it was timed out due to hr <pitch middle="-2">monthly</pitch>.
  9. Hrmonthly receives a message stating that it caused hrdaily to time out.
  10. TS0 timeouts are reported to the offended application’s joblog. In this scenario, TS0 causes the hourly application to timeout.
  11. The hourly application receives a message stating that it was timed out due to TSO.
  12. If the database is stopped, an application will typically receive a 9 oh 4 sequel code. In this scenario, hr daily is attempting to update a table in a stopped database.
  13. Hrdaily receives a message indicating that the database is stopped for all access.