title: SQLException: Protocol violation. Oracle JDBC Driver issue
body: <p>I'm getting the following excpetion:</p>
  
  <pre><code>java.sql.SQLException: Protocol violation
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
  at oracle.jdbc.driver.T4C80all.receive(T4C80all.java:766)
  at oracle.jdbc.driver.T4CPreparedStatement.do0all8(T4CPreparedStatement.java:216)
  at oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:1225)
  at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:373)
  at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:284)
  </code></pre>
  
  <p>The Oracle system is running 10.2.0.3.0 on Solaris 5.10. The jdbc driver is running on JDK 1.6.0_21 (if it's import the java is running on a Solaris 5.10 machine as well). I've tried several different oracle thin drivers including the latest and the one that appears to exactly match the oracle version.</p>
  
  <p>The query I'm running is fairly simple: "select * from some_table order by key1, key2, key3" Then iterating through the result set and writing to a file. The table has around 12 million rows, so I expect the process is running long, but it seems to die within 5-15 mins into it. Each time I run it, it blows up on a different row, so I don't think the problem is with the data.</p>
  
  <p>I found the oracle alert log but I couldn't tell that anything in there was related to my process. Still, I'm no oracle expert and perhaps there's an oracle setting I need to look at. Strangely enough, I'm running about five of these type of queries (a couple are a bit more complicated) on different connections and only two simplest ones ever get this problem.</p>
  
  <p>Any help or ideas on what to look at to narrow down the problem would be appreciated.</p>