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 > Error on positioned delete of multiple fetch

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-09, 02:07
kalaikala kalaikala is offline
Registered User
 
Join Date: Mar 2009
Posts: 1
Question Error on positioned delete of multiple fetch

I am using cursor as below
“Declare cursor C1
rowset positioning
with hold for
Select columns-list from table-name
for update .. ”

“ DELETE FROM table-name
WHERE CURRENT OF C1 FOR ROW :IDX OF ROWSET“
I am getting error on positioned delete of multiple fetch. The SQLCODE=-904 ie unavailable resource (showing table space name). I am fetching 100 rows at a time and I am getting error after processing few rows. What could be the reason to this?.
Reply With Quote
  #2 (permalink)  
Old 03-26-09, 21:55
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
I suspect tablespace became unavailable for reason other than your cursor processing. Either that or there has to be more in the SQLCA that describes the error.
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