title: BatchUpdateException: the batch will not terminate
body: <p>I have an application which processes a very large file and sends data to an oracle database (using Java 6, oracle 9). </p>
  
  <p>In a loop, I use a <code>PreparedStatement ps</code> and create all SQL statements generated with <code>ps.addBatch()</code>.</p>
  
  <p>I have a situation where a <code>BatchUpdateException bue</code> is thrown somewhere during the <code>ps.executeBatch()</code>. At that point, the batch stops to be executed.</p>
  
  <p>I'd like the batch execution to continue, so that I can then check on failed updates in a method <code>processUpdateCounts(bue.getUpdateCounts())</code>.</p>
  
  <p>The javadoc about class BatchUpdateException says:</p>
  
  <blockquote>
    <p>After a command in a batch update
    fails to execute properly and a
    BatchUpdateException is thrown, <strong>the
    driver may or may not continue</strong> to
    process the remaining commands in the
    batch.</p>
  </blockquote>
  
  <p>Is there a way to enforce continuation or do I need to alter my program so that it will execute the statement individually?</p>