Ask a Question related to Coldfusion Database Access, Design and Development.
-
paulchow #1
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
-
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... -
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... -
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,... -
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... -
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... -
MikerRoo #2
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
-
paulchow #3
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
-
MikerRoo #4
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
-
paulchow #5
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
-
Sameer #6
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
-
MikerRoo #7
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
-
MikerRoo #8
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



Reply With Quote

