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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With