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 > Invalid operation: ResultSet holdability HOLD_CURSORS_OVER_COMMIT is not allowed on a

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-09, 08:32
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
Invalid operation: ResultSet holdability HOLD_CURSORS_OVER_COMMIT is not allowed on a

Hi

Iam getting following exception.

What could be the.. is there any work around.

Its bit urgent .. any info on this would be thankful

com.ibm.db2.jcc.b.SqlException
[jcc][t4][10434][12579][3.53.95] Invalid operation: ResultSet holdability HOLD_CURSORS_OVER_COMMIT is not allowed on an XA connection. ERRORCODE=-4476, SQLSTATE=null

Thanks a lot
Reply With Quote
  #2 (permalink)  
Old 10-16-09, 09:01
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you are using 2 phase commit and hold on cursor
as the message indicates
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 10-16-09, 12:12
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
Actually when i made a setResultsetHoldability value to 1 in WAS Admin i got the above problem..

if i made setResultsetHoldability value to 2 ... i am getting this error

( Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null )

And While creating the Data Source in WAS 7.0 . I used XA Data Source( Two phase commit ).

is there any work around for this. what could be the problem
Reply With Quote
  #4 (permalink)  
Old 10-19-09, 01:17
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
yes .. 2 phase commit and hold on cursor .

Is there something to change.

Please its bit urgent... Plz help
Reply With Quote
  #5 (permalink)  
Old 10-19-09, 07:54
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Don't use holdable cursors over XA connections.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 10-20-09, 02:08
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
if i remove holdable cursors over XA connection .. i am getting following exception.

( Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null )
Reply With Quote
  #7 (permalink)  
Old 10-20-09, 02:41
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
if i remove holdable cursors over XA connection .. i am getting following exception.

( Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null )
Reply With Quote
  #8 (permalink)  
Old 10-20-09, 04:55
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Then you should not commit the transaction while still working with the cursor.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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