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 > exception during insert query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-09, 03:16
MeeraJoy MeeraJoy is offline
Registered User
 
Join Date: Apr 2009
Posts: 16
exception during insert query

After executing a series of insert statements, one insert statement will fail
giving the following exception: Operation not allowed for reason code "1" on table <table_name>

Can anyone suggest reasons what might cause this?
Reply With Quote
  #2 (permalink)  
Old 07-24-09, 03:41
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What's the complete error message, including the DB2 message code?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-24-09, 03:43
MeeraJoy MeeraJoy is offline
Registered User
 
Join Date: Apr 2009
Posts: 16
com.ibm.db2.jcc.c.hh: Non-atomic batch failure. The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.



com.ibm.db2.jcc.c.SqlException: Error for batch element #0: Operation not allowed for reason code "1" on table <table_name>
at com.ibm.db2.jcc.c.ig.d(ig.java(Compiled Code))
at com.ibm.db2.jcc.a.kb.l(kb.java(Compiled Code))
at com.ibm.db2.jcc.a.kb.a(kb.java(Compiled Code))
at com.ibm.db2.jcc.a.w.a(w.java(Inlined Compiled Code))
at com.ibm.db2.jcc.a.ec.b(ec.java(Compiled Code))
at com.ibm.db2.jcc.c.jg.db(jg.java(Inlined Compiled Code))
at com.ibm.db2.jcc.c.jg.b(jg.java(Compiled Code))
at com.ibm.db2.jcc.c.jg.a(jg.java:2818)
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