title: java.sql.SQLException: Io exception: Socket read timed out vs Closed Connection
body: <p>I am trying to research this issue on the following two errors connecting to Oracle DBs:</p>
  
  <ol>
  <li>Closed Connection</li>
  <li><code>java.sql.SQLException</code>: Io exception: Socket read timed out</li>
  </ol>
  
  <p>My understanding:</p>
  
  <ol>
  <li>Closed Connection : Is occurring either because there was some sort of network disruption or the DB closed the session due to some sort "inactivity"</li>
  <li><code>java.sql.SQLException</code>: Io exception: Socket read timed out : This is a case where the connection was made successfully but for some reason the socket/data was empty and eventually it timed-out because no data was available.</li>
  </ol>
  
  <p>Is it possible to replicate the above errors in a local Oracle DB env ? What are the steps ?</p>
  
  <p>I appreciate you taking the time to respond.</p>
  
  <p>Thanks.</p>