title: JDBC connection failing with ORA-12516
body: <p>I have some unit tests that talk to Oracle-11g XE.  Running each test individually works fine, but when I run them all, the first few pass, and the rest fail with this error when trying to create the DB connection:</p>
  
  <pre><code>ORA-12516, TNS:listener could not find available handler with matching protocol stack
  </code></pre>
  
  <p>This happens no matter what order I run the tests in, so the problem seems to be that I'm using up some kind of resource on the DB server.</p>
  
  <p>I tried running the tests slowly, and checking the # of connections in use during the run with:</p>
  
  <pre><code>select count(*) from v$session;
  </code></pre>
  
  <p>The # of sessions always hovers between 26 and 28, and the limit is set to 49, so I'm not sure what the problem is.</p>
  
  <p>The problem also gets worse if I run the tests quickly.  When I run them without any added delays, 90% fail with this error.  I put a sleep in tearDown() to get a better idea of what's going on, and in that case only about 10% fail.</p>