title: Oracle JDBC : invalid username/password (ora-01017)
body: <p>I have a strange problem with jdbc connection to an oracle database server.</p>
  
  <p>We've applications on a tomcat server running. These application use an oracle database. All applications use the same credentials. </p>
  
  <p>Applications running fine the whole day. At night there is no activity. In the morning we get a few (2 or 3) ORA-01017 (invalid username/password) errors when the applications trying to reconnect themselves to the database.</p>
  
  <p>Then reconnection works and the applications will operate normal.</p>
  
  <p>This works for some days (around 5 days) and then one or more of the application block! All reconnection attempts fail.</p>
  
  <p>We've traced network communication and found that if the connection fails with <code>ORA-01017 NO CREDENTIALS</code> where sent. </p>
  
  <p>Of course no one touches the system at night.</p>
  
  <p>One attempt for a workaround is that we restart the tomcat server every morning at 6 o'clock to clean up every connection cache or pool. It does not help.</p>
  
  <p>Whats wrong? Any ideas?</p>
  
  <p>The continued 5 day interval in the appearance of a total blockage (while restating every day) looks very strange to me.</p>
  
  <p><strong>Config</strong> :</p>
  
  <p>Database Oracle 10.2, JDBC Driver 11.2 thin, tomcat 6.0.24, JDK 6, OS is windows, some of the applications are Dialogs for the Avaya Voice Portal 5.0.</p>
  
  <p>Our own (non VP) applications use simple Connections (no pooling).</p>
  
  <hr>
  
  <p>The system was originally setup on a Windows 2003 server with a WAN between apserver and tomcat server.</p>
  
  <p>The system is now migrated to a linux (CentOS) server near the database server and works fine. No ORA-01017 anymore.</p>