Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 23rd, 2008, 10:07 AM   #1
Druid
Programmer
 
Join Date: Mar 2006
Posts: 40
Rep Power: 0 Druid is on a distinguished road
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?
Druid is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with sql connection ghg5 C# 1 May 19th, 2008 2:00 PM
Need to figure out the best way to confirm a VNC connection... diablo75 Visual Basic .NET 8 Nov 4th, 2007 10:27 PM
SMTPlib - Connection reset by peer Sane Python 2 Jun 20th, 2006 5:40 PM
Connection Pooling java_roshan Other Web Development Languages 2 Nov 28th, 2005 3:24 PM
connection reset by peer / bad file descriptor opcis Perl 0 Feb 10th, 2005 3:29 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:50 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC