Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oracle.net.READ_TIMEOUT vs. oracle.jdbc.ReadTimeout

Tags:

jdbc

oracle11g

I tried setting oracle.net.READ_TIMEOUT as connection properties but it seems like it is not working, however setting oracle.jdbc.ReadTimeout works. Any idea why? I am using 11g JDBC Drivers. And the DB server version is 11g.

like image 521
Utkarsh Srivastava Avatar asked Aug 29 '13 12:08

Utkarsh Srivastava


1 Answers

According to http://www.javamonamour.org/2012/09/oraclenetconnecttimeout.html

oracle.net.READ_TIMEOUT for jdbc versions < 10.1.0.5 oracle.jdbc.ReadTimeout for jdbc versions >=10.1.0.5

So if you are using a JDBC driver version 10.1.0.5 or higher, then oracle.jdbc.ReadTimeout is the correct property.

like image 168
Mark Rotteveel Avatar answered Oct 29 '22 23:10

Mark Rotteveel