If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Repeatedly losing Informix ODBC connection

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-09, 00:03
MargaretH MargaretH is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Red face Repeatedly losing Informix ODBC connection

Have an application (access 97 front end) that has been happily interacting with a much larger database via Informix ODBC for several years from multiple PCs.
So Have been using informix ODBC for years and have had the "pleasure" of using the INformix Setnet as well. Happily sending Pass Through queries that do simple selects or that write to certain tables and also displaying data from certain tables via linked tables in our Access front end.

All continues to work fine (on 20 odd PCs) except on ONE PC - if you do not use the ODBC for a certain length of time say 10 minutes then the connection is lost and the only way to reconnect is to shut access down and restart.
i have compared the set net on one PC that is working with the one that isnt
no obvious setting that would make a difference but the About Setnet 32 says 3.50.TC3 on the one with problem but says 2.90. 2.90.TCS on the one without the problem.
I do not have rights to install / setup the ODBC - my next step is going to be requesting a re install of the ODBC drivers - any ideas much appreciated.
MargaretH
Reply With Quote
  #2 (permalink)  
Old 06-28-09, 00:25
MargaretH MargaretH is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
IFX_NODBPROC might be the answer

On looking further i see there is an enviroment option called
IFX_NODBPROC

according to what i have found
The IFX_NODBPROC environment variable lets you prevent the database server from running the sysdbopen( ) or sysdbclose( ) procedure. These procedures cannot be run if this environment variable is set to any value.

i will have to put a setting in there (or ask someone else do it if i can't save it )
and see what happens
Reply With Quote
  #3 (permalink)  
Old 07-01-09, 18:17
bigcalm bigcalm is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
If it's only the one PC, I'd suspect something else, like perhaps the network card. Try running a constant ping to the database server from a command window and see if you're getting packet loss at any time, particularly when the connection drops.

Otherwise, re-install the informix odbc drivers - I doubt IFX_NODBPROC will do a great deal.
Reply With Quote
  #4 (permalink)  
Old 07-01-09, 20:01
MargaretH MargaretH is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Smile

You were right about IFX_NODBPROC not doing much. I thought sysdbclose( ) procedure that was mentioned might cause the connection to close but what it does is the IFX_NODBPROC can cause the sysdbclose() procedure to run on close.
ANYWAY many thanks for your suggestion re the pinging will try this
if I have this problem again - this time a re install of ODBC drivers and careful setting up of the enverioment variable options did the trick (i do not have admin rights so have to wait for someone else to do it and then if it doesnt work get back to them - frustrating) and the original setup of the ODBC looked quite OK

thanks once again for the reply - appreciate it
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On