![]() |
setLoginTimeout for Oracle connection
I'm trying to write a program that will check the online/offline status of several hundred databses. The problem is, when one of them happens to be offline he hangs the process when attempting to login to that particular offline database.
What I need is a timer that will specify a certain interval to attempt the login and if it doesn't connect in say, 10 seconds, I need it to flag the database as offline and continue down the list. I had thought inserting DriverManager.setLoginTimeout(10); would work... but apparently the setLoginTimeout() is not even supported by Oracle. Do you guys any suggestions for a work around? |
| All times are GMT -5. The time now is 4:07 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC