Lost ODBC connection during peak periods

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Lost ODBC connection during peak periods

    For the past few days, we have experience a few case where Coldfusion loses
    connection to Oracle after heavy traffic. I found that but using Coldfusion
    Administrator and verify the connection will re-establish the connection again.
    I want to know whether it is possible to verify the connection from the command
    line. This way I can use a batch file and automate this.

    Thanks.


    paulchow Guest

  2. Similar Questions and Discussions

    1. Lost Connection
      I have a user that has lost connection to one or two site and can not reconnect. She is set up correct in publishing services. It seems like it is...
    2. Lost Connection Key
      I created a web site for a friend. When I decided to get out of the web site design business she took over the maintenance with Contribute (I was...
    3. CF MX 7, Queries timing out, ODBC connectionstemporarily lost
      We have recently updated our test server to CF MX 7. It is a Pentium 2.8 GHz with 1 gig of ram running Windows server 2003. Here is the problem,...
    4. ODBC Connection
      I created dynamicxls in system DSN to connect to another server J: it showed J:/weekly/suspenselist.xls then I created Data source in...
    5. Network Connection Lost
      Sorry, I forgot some information. This computer is running XP Home. I have also tried to ping websites and the other computer on the network, no...
  3. #2

    Default Re: Lost ODBC connection during peak periods

    You should be able to automate this by using cfschedule. Or by scheduling a
    task in the CF administrator. The task just needs to browse to the same URL
    that CF administrator uses (and supply the necessary logins as requested).
    Here is how I can check the connection to 'FlakyDB' on my server. My task
    browses to
    'https://DevelopmentDMZ/cfide/administrator/datasources/index.cfm?verifydsn=Flak
    yDB' -- MikeR

    MikerRoo Guest

  4. #3

    Default Re: Lost ODBC connection during peak periods

    Thanks Mike,
    Can you also tell me how to add the login details to the URL ?

    Thanks.
    paulchow Guest

  5. #4

    Default Re: Lost ODBC connection during peak periods

    I don't know if you can add the login to the URL but usually you don't need to.
    Also, this would be a security problem. Set up the task using CF
    administrator. Use 127.0.0.1 as the server name. I.E:
    'https://127.0.0.1/cfide/administrator/datasources/index.cfm?verifydsn=FlakyDB'
    In my case, a user name and password are only required because the directories
    are secured via SSL. I provide those credentials to the CF scheduler. CF
    administrator (and cfschedule) have parameters whereby you can specify the
    username and password. I haven't had to specify the CF admin password itself.
    But I haven't tested the exact scenario you have. let me know how it works
    out.

    MikerRoo Guest

  6. #5

    Default Re: Lost ODBC connection during peak periods

    I tried using the scheduler inside CF administrator. I did say it completed
    succesfully on the screen right away. I also specified an output file. Inside
    the output file it said 'HTTP 401.2 - Unauthorized: Logon failed due to server
    configuration'. I did specified the admin username and password inside
    scheduler. Now I am stuck.

    paulchow Guest

  7. #6

    Default Re: Lost ODBC connection during peak periods

    Mike,

    Is there a way to "Release all cached Data Source connections" programmatically first before verifying ?

    Thanks,

    Sameer.
    Sameer Guest

  8. #7

    Default Re: Lost ODBC connection during peak periods

    paulchow, I'm sorry. It appears that you cannot use cfscheduler to automate
    this task. Probably because it resides in the admin app. There are other
    automated ways to call a web page that you can find and use, though. Also, it
    may be possible to use the same java calls that CF admin does but that is for
    someone else to help you with. -- MR Sameer, My guess is that this is
    possible, via java calls, but it is beyond my expertise and time budget to
    provide details. (Also, we have never seen these kinds of issues, with data
    sources, at my shop.) Good luck, -- MikeR

    MikerRoo Guest

  9. #8

    Default Re: Lost ODBC connection during peak periods

    Actually there is a way.... Check out the Admin API
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&fi le=part_adm.htm. The
    datasource component has the methods that will allow you to verify datasources.
    So, you would write a page that verifies the DSN using the admin API. That
    page would then be called by the scheduler. Happy coding! -- MikeR

    MikerRoo Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139