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 > Error in ASP whilst trying to connect to Informix DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-03, 06:04
macca macca is offline
Registered User
 
Join Date: Apr 2003
Posts: 54
Error in ASP whilst trying to connect to Informix DB

I'm having a sporadic problem connecting to our DB server through and ASP. The error message is simply "Cannot connect to database server (our db server)". Let me tell you a little about our setup.

The dbms is Informix 7.20 running on SCO Unix.
The ASP is hosted on our Windows 2000 box. The connection is via a DSN on the windows box and I'm using the latest Informix ODBC driver.

I've tried looking at the processes running on the DB server whilst this problem is happening and there is nothing obviously preventing the connection. The trouble is that the problem is sporadic and usually only lasts 10 mins or so, so I'm having difficulty tracking it down. I would be most grateful if any of you have any ideas about things I can try.
Reply With Quote
  #2 (permalink)  
Old 10-31-03, 07:35
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Error in ASP whilst trying to connect to Informix DB

Quote:
Originally posted by macca
I'm having a sporadic problem connecting to our DB server through and ASP. The error message is simply "Cannot connect to database server (our db server)". Let me tell you a little about our setup.

The dbms is Informix 7.20 running on SCO Unix.
The ASP is hosted on our Windows 2000 box. The connection is via a DSN on the windows box and I'm using the latest Informix ODBC driver.

I've tried looking at the processes running on the DB server whilst this problem is happening and there is nothing obviously preventing the connection. The trouble is that the problem is sporadic and usually only lasts 10 mins or so, so I'm having difficulty tracking it down. I would be most grateful if any of you have any ideas about things I can try.
Hi,

On Windows 2000, Have You installed product Client-SDK of Informix ?

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 10-31-03, 07:37
macca macca is offline
Registered User
 
Join Date: Apr 2003
Posts: 54
Yep, the SDK is installed, and with it the correct INFORMIX driver for ODBC. As I say, the connection works most of the time but, occasionally, it doesn't.
Reply With Quote
  #4 (permalink)  
Old 10-31-03, 07:52
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Quote:
Originally posted by macca
Yep, the SDK is installed, and with it the correct INFORMIX driver for ODBC. As I say, the connection works most of the time but, occasionally, it doesn't.
Ok,
The problem is in the connect or one you see connected.
If in the connect, set environment variable INFORMIXCONTIME and INFORMIXCONRETRY.
Or test the value of time-out of TCP/IP.

Gustavo.
Reply With Quote
  #5 (permalink)  
Old 10-31-03, 09:00
macca macca is offline
Registered User
 
Join Date: Apr 2003
Posts: 54
On Setnet32 there is no INFORMIXCONTIME variable to set. Is there another name for it?

There is a CONRETRY, it was blank so I have set it to 2 seconds.

Sorry to keep bothering you with this but this is a new area for me.
Reply With Quote
  #6 (permalink)  
Old 10-31-03, 10:50
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Quote:
Originally posted by macca
On Setnet32 there is no INFORMIXCONTIME variable to set. Is there another name for it?

There is a CONRETRY, it was blank so I have set it to 2 seconds.

Sorry to keep bothering you with this but this is a new area for me.
Hi,

There are same, increment this value and test the connection.

Gustavo.
Reply With Quote
  #7 (permalink)  
Old 10-31-03, 11:11
macca macca is offline
Registered User
 
Join Date: Apr 2003
Posts: 54
Thanks Gustavo, I've made the changes you suggested and I will let you know if I get the same error again in the coming weeks.

I appreciate your help.

Tim
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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