Thread: DB2

-911 in CICS during month-end - deadlock or timeout?

Started by Tom • user4 replies155 viewsLast activity 2 weeks ago
Post #1
1 votes
Tom
Reputation
263
Posts: 18
Joined: Mar 8, 2024, 10:10 PM
Posted: Jul 30, 2026, 9:17 AM

Night shift. Same transaction started throwing -911 around 01:30 during month-end batch. SQLERRM mentions deadlock or timeout. Victim is always the online update.

Batch team says their job "only reads." I do not buy that. Where do you look first to see who held the lock?

Post #2
0 votes
Elena
Reputation
391
Posts: 19
Joined: Apr 18, 2024, 9:30 AM
Posted: Jul 30, 2026, 10:17 AM

Check DB2 lock timeout vs deadlock in the detail. -911 can be either. DISPLAY DATABASE LOCKS or your monitor (OMEGAMON / Sysview / whatever you have) around the failure time.

Also "read only" batch with UR or bad isolation can still block if it scans hot pages. Get the batch plan name from the victim's IFCID if you capture them.

Post #3
0 votes
Sandra
Reputation
198
Posts: 17
Joined: Oct 15, 2024, 8:30 AM
Posted: Jul 30, 2026, 1:17 PM

We had a "report" that did SELECT FOR UPDATE by accident after a copy-paste. Worth grepping the batch source.

Post #4
1 votes
Tom
Reputation
263
Posts: 18
Joined: Mar 8, 2024, 10:10 PM
Posted: Jul 30, 2026, 6:17 PM

It was timeout, not deadlock. Batch held a tablespace lock longer than online could wait. They are splitting the job. Survived the night.

You must be signed in to reply to this thread