Results 1 to 14 of 14

Thread: Runtime 3709 appearing after years

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    14

    Runtime 3709 appearing after years

    I have an application in VB6 which has been running on the same machine for years. The database shuts down over night and comes back on after an hour or two.

    The application goes to sleep way before the database shut down and wakes up after the restart.

    This past Monday, we came in to see the runtime 3709 error. No code was modified, no updates to the Oracle database.

    Any idea what might be causing this? Thanks!

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    14

    Re: Runtime 3709 appearing after years

    3709 - The connection cannot be used to perform this operation. It is either closed or invalid in this context.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    273

    Re: Runtime 3709 appearing after years

    JudyKamber,

    Exactly 10 years ago I used ASP (v2.0?) and wrote up a few ASP postings in the then freevbcode.com. My postings are still there, but I've not been able to find anything directly related. However, a quick web search shows up something which might be of relevance to your case, would you like to take a look (if you haven't)?

    xxxx://bytes.com/topic/visual-basic-net/answers/626558-3709-error-ado-when-using-persistant-conenction

    [Edit: I shouldn't have provided a full outside link, please change the first 4 letters]
    Last edited by petersen; Aug 11th, 2010 at 09:35 PM.

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Runtime 3709 appearing after years

    Quote Originally Posted by JudyKamber View Post
    3709 - The connection cannot be used to perform this operation. It is either closed or invalid in this context.
    Depending on how database back is done (hot or cold) all live connection may need to be killed so...
    Check connection state and reconnect if necessary - that's pretty standard (and simple too) task.

  6. #6
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Runtime 3709 appearing after years

    Did the computer install system updates that day?

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    14

    Re: Runtime 3709 appearing after years

    Thanks all for your input. I tried setting a few instances to nothing which should have been done anyway to free up resources but that didn't help. I checked with the DBAs to see if Oracle was upgraded and it wasn't. Now I'll check with the HelpDesk staff to see if any updates were applied on that machine. They always so no but I'll see if I can persuade someone to really check!
    Keep those ideas coming; they're appreciated.

  8. #8
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Runtime 3709 appearing after years

    If you restart it and it does not hapeen again for 10 years forget about it .

  9. #9

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    14

    Re: Runtime 3709 appearing after years

    Funny. Unfortunately, it's happened every morning this week so restarting didn't help.

  10. #10
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Runtime 3709 appearing after years

    As RhinoBull suggested in #5 above. Check for closed connection and reconnect as needed. You can build a sub/function that tests the connection state & reconnects. In your routines that query the DB, add error handling, that will call that new function when an error occurs.

    Out of curiosity, is this happening in the AM when the app is suppose to reconnect to Oracle, after it has already been connected, or sometime before the app goes to sleep?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  11. #11

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    14

    Re: Runtime 3709 appearing after years

    Thanks, LaVolpe. We do have checks for connection and attempts to reconnect. And all the other background applications running on that machine have the same connect/reconnect logic and are fine. Very strange.
    I'm going to have to put some debugging messages into the application to know when it's failing. I only know it's fine during the day when we're here and I'm not willing to stay overnight and wait for it to fail!

  12. #12
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Runtime 3709 appearing after years

    Quote Originally Posted by JudyKamber View Post
    ...I only know it's fine during the day when we're here and I'm not willing to stay overnight and wait for it to fail!
    Don't blame you. That's where error trapping and logging to file comes in play. Hopefully, it will provide insight right away.

    Edited: Don't forget to add date/time to your log entries!
    Last edited by LaVolpe; Aug 13th, 2010 at 08:58 AM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  13. #13
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    273

    Re: Runtime 3709 appearing after years

    While DAO was marginally acceptable to me, ADO is just rubbish - all kinds of bugs and instability, and the worse is so many drastical changes over the years.

    How bad is ADO? if I have a choice, I am willing to pay $10 for something like the then Ashton Tetes' dBase, rather than to spend $1 on MS's ADO.

    Am I qualified to say something about database? I guess I am (designatory letters after my name used to include "FCMA" of UK, Fellow of Chartered .....).
    Last edited by petersen; Aug 14th, 2010 at 08:10 PM. Reason: Just to correct a typo in punctuation mark.

  14. #14
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Runtime 3709 appearing after years

    I used DAO for many years, and ADO for many years after that - and I have never thought that ADO had as many bugs as DAO, nor that it is less stable, nor that it has had any drastic changes over the years.

    I don't know what experiences you have had, but you have come to a very different conclusion to the usual impressions I get from people.
    Am I qualified to say something about database, I guess I am (designatory letters after my name used to include "FCMA" of UK, Fellow of Chartered .....).
    ... Accountants?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width