I think this is a JDBC Driver problem:
The following code functions in 9i but not in 10g
Code:
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@reia.sjes.gov.br:1521:jfes2","INTRANET","");
PreparedStatement stmt = con.prepareStatement("select DTHRMOV from apoloes.movimentotexto movimentot0_ " +
"where movimentot0_.CODSECAO=:codsecao " +
"and movimentot0_.CODDOC=:coddoc " +
"and movimentot0_.DTHRMOV=:data");
stmt.setInt(1,50);
stmt.setInt(2,502914);
Timestamp t = new Timestamp(106,04,16,17,24,0,0);
stmt.setTimestamp(3,t);
ResultSet r = stmt.executeQuery();
while(r.next()){
System.out.println(r.getTimestamp(1));
}
con.close();