If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > -911 on open cursor statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-06, 11:17
Thann Thann is offline
Registered User
 
Join Date: Feb 2006
Posts: 1
-911 on open cursor statement

Will a program retrun a -911 return code on an open cursor statement?
Thanks for any resopnses
Reply With Quote
  #2 (permalink)  
Old 02-04-06, 13:43
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Thann
Will a program retrun a -911 return code on an open cursor statement?
Sometimes.
Reply With Quote
  #3 (permalink)  
Old 02-05-06, 07:28
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
SQLCODE -911 indicates a timeout or deadlock.
A materialised cursor reads all matching rows at OPEN time, so indeed in that case the presence of a lock may indeed cause a timeout.
Unless something else is going on, it should be sufficient to retry to open the cursor in such cases.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On