Is it possible to specify connection/query timeout for the Oracle database queries? Either on Oracle side or in Oracle\'s JDBC driver (10.2.0.4)? So, that Java client just g
Have a look at Oracle profiles. This allows you to specify several limits at the database level. One of them is a maximum CPU time per query.
If you have queries running for more than 2 minutes on a regular basis you might want to do some tuning of your queries first.