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
 

 

Batch job prevents bind - causes -904

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
dick scherrer

Site Director


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

PostPosted: Fri Jan 16, 2009 8:55 am    Post subject: Batch job prevents bind - causes -904
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    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Fri Jan 16, 2009 6:05 pm    Post subject:
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    Post subject:
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.

http://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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am


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