title: SQLRecoverableException: I/O Exception: Connection reset
body: <p>Yesterday evening I left the office with a running Java program written by me. It should insert a lot of records into our company database (Oracle) using a JDBC connection. This morning when I came back to work I saw this error (caught by a try-catch):   </p>
  
  <pre><code>java.sql.SQLRecoverableException: I/O Exception: Connection reset
  </code></pre>
  
  <p>The program wrote almost all records before getting this problem, but what if it happens early (just minutes after I leave the office at evening)? I cannot understand what happened, I contacted my database admin and he said there was no particular issue on the database.</p>
  
  <p>Any idea on what happened and what can I do do to avoid it?</p>