Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CICS transaction ends with Deadlock

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
rohanatl

New User


Joined: 21 Oct 2005
Posts: 22

PostPosted: Mon Mar 12, 2012 7:19 pm    Post subject: CICS transaction ends with Deadlock
Reply with quote

HI All,

One of our CICS transcaction has failed with dead lock, On analysis we could see that one of the batch program which run every 5 mins is causing the transcation to end in Deadlock

Both the transcaction and batch is using the same db2table to update.

Code:
THREAD-INFO=XXXX:*:*:*
IS DEADLOCKED WITH PLAN=PPPPPXXX WITH
CORRELATION-ID=PPPPPPPP
CONNECTION-ID=BATCH
Please suggest how we can avoid this deadlock.

Thanks
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Mar 12, 2012 7:30 pm    Post subject:
Reply with quote

how about explaining what the batch job does.

and explain what the transaction does.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Mar 18, 2012 8:49 am    Post subject:
Reply with quote

Hello,

Is this resolved?

The problem is a design issue. One of the processes locks resource A and then tries to lock resource B. At the same time, another process locks resource B and then tries to lock resource A. It may not be trivial to change/correct, but the transactions should lock resources in the same order.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us