Home > Ask the Data Management Experts > Data governance and quality Questions & Answers > Troubleshooting: Performing an insert with DB2 z/OS
Ask The Data Management Expert: Questions & Answers
EMAIL THIS

Troubleshooting: Performing an insert with DB2 z/OS

Craig Mullins, Years 2005-2006 EXPERT RESPONSE FROM: Craig Mullins, Years 2005-2006

Pose a Question
Other Data Management Categories
Meet all Data Management Experts
Become an Expert for this site


Enterprise IT tips and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 01 February 2007
I want to perform a retry on an INSERT under DB2 Z/OS when I get a deadlock/timeout. -911 causes a rollback automatically. Is there a ZPARM or another method of turning this off? I am inserting millions of rows and do not want a rollback to the last commit point.

>
EXPERT RESPONSE

Well, first of all, let me recommend that you minimize the size of your unit of work. If you are inserting millions of rows without a COMMIT you are likely causing locking issues in your environment. The pages you have locked while you are waiting for your millions of inserts to finish are all unavailable to any other user of the table. That means any data on any page that you have locked cannot be read by anyone else until your unit of work is committed. Any other user running at the same time as you trying to get to any page you have modified would be getting -911 too.

That being said, you can control whether or not the work is rolled back automatically in CICS (on a thread basis) using an RCT or RDO parameter. The parameter is called ROLBE (RCT) or DROLLBACK (RDO). If it is set to YES a CICS SYNCPOINT ROLLBACK is issued and a -911 SQLCODE is returned to the program. If NO is coded, a CICS SYNCPOINT ROLLBACK is not issued and the SQLCODE is set to -913. You will have to programmatically either specify COMMIT or ROLLBACK for the unit of work.

I am not aware of a method of controlling this behavior for a batch program…

Good luck.


Sound Off! -   Be the first to post a message to Sound Off!


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
DBMS and data warehousing
Data warehousing, data mining and data querying: Terms and definitions
The difference between data definition language (DDL) and data manipulation language (DML)
What is an operational data store vs. a data warehouse?
Can a dimension table be a fact table for another data mart?
Top three database management system (DBMS) trends
Can I have two data warehouses?
Database administrator job roles: Organizing the DBAs
Data modeling for data warehouse projects
Data warehouse testing
Data warehouse development: Four strategic steps

Data governance and quality
What is high quality information?
Data quality management tools: Where to get unbiased information
Roles and salaries of data quality and governance analysts
The role of data governance in unstructured data
How to maintain data quality and provide high quality information management and analysis
Data quality management pitfalls: Three common mistakes to avoid
Data governance: Tips for techies and managers
Data cleansing: The business impact of dirty data
Data quality management begins with data governance
Data governance: How to maximize data stewardship

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts