IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Batch job prevents bind - causes -904


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 16, 2009 8:55 am
Reply with quote

Hello,

Does anyone know of a situation where a batch job using some plan would "lock" that plan (or a table referenced by that plan/dbrm) causing a -904 in the bind step when a compile/link/bind was run?

One of the people from "down the hall" came in this afternoon and said that a long-running batch job was preventing them from binding programs that used tables that were in use by the batch job. When the job was canceled, they were able to bind. The job did no updates, only reads against 2 tables.

They were unable to get any satisfactory answer from the db2 support people and asked if i might be able to help find a resolution. Their concern is that as both compiling and testing is increasing, this may become a major problem if it is not resolved.

I can probably get more specifics if needed, but for starters, i was just looking to see if this is a situation anyone has had to resolve. Searching our forum and then the web did not find many reports of this (there are a few, but very few). My guess is that there is come kind of configuration problem. . .

Thanks for any light you can shine icon_wink.gif

d
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Jan 16, 2009 10:16 am
Reply with quote

You're the answer man Dick -- what're you doing asking a question? icon_smile.gif Seriously, I was involved in a project one time where many developers were compiling, linking, and binding DB2 programs all day long. It wasn't unusual for us to run across contention problems because of this. I think it was the SYSPLAN table that got hit often. We'd just resubmit our compiles and be on our way. Sorry I couldn't be of more help.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 16, 2009 6:05 pm
Reply with quote

Have no idea why - other than there is contention.

my experience is the opposite. batch jobs failing with -904 because of binds being performed.

sleep for 3 seconds, try again, success - go, failure - sleep, try again, until it works.

can't save a bind job from failing, but I could keep my batch jobs running.
Back to top
View user's profile Send private message
Suresh Ponnusamy

Active User


Joined: 22 Feb 2008
Posts: 107
Location: New York

PostPosted: Fri Jan 16, 2009 10:43 pm
Reply with quote

Just got it from the manual
Code:

Packages and plans are locked when you bind or run them.     


Probably need to look in to the BIND Options for the program which used in the job. What is the Isolation level used in the SQL.

The below given link might be useful.

publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.perf/db2z_planpackageoptionsdiffer.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Batch install term/printer CICS 2
No new posts File Aid Batch IBM Tools 7
Search our Forums:

Back to Top