Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > High Data Replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-07, 07:12
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Posts: 146
Thumbs down High Data Replication

Hi

I have a replica with a primary server and secundary server, I am executing a select in primary server but this server fail or is down, I need this select connect to secundary server automatically. ¿What to do for this activity? ¿You can give me an example, please?

Thank you for you help.
Reply With Quote
  #2 (permalink)  
Old 11-30-07, 09:59
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 88
What kind of situation do you think?
1. the primary server is already down when you execute query
2. the primary server goes down in time of executing the query
Reply With Quote
  #3 (permalink)  
Old 11-30-07, 17:33
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
Cool

The processes of redirection over HDR enviroment work this way:
- If the primary server is down, the client will lost the connection and the current transaction will abort, the program must be prepared to handle with this situation. When it try reconnect to server again will be automatic redirect to secondary server...

To work this way you must set your SQLHOSTS (server and client) some like this:
Code:
ids_master group - - c=0 ids_primary onsoctcp hostA portX ids_secondary onsoctcp hostB portX

On client environment:
- You must set the INFORMIXSERVER = ids_master
- Set INFORMIXCONTIME and INFORMIXCONRETRY proper (this variables config the timeout and how many time try to connect).

When your client try to conect , will follow the order of the servers, if the first is off line, it just jump to next...
The parameter c=0 is not necessary because is the default option.... but i like to specify...

If you have more instances listed on the same SQLHOSTS, add the options e= or g= .
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
Reply With Quote
  #4 (permalink)  
Old 12-02-07, 04:40
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Posts: 146
Thumbs down

the primary server goes down in time of executing the query
Reply With Quote
  #5 (permalink)  
Old 12-02-07, 11:12
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
then, the conection will be broken and transaction will abort...

if you really need user query keep running... start to think in a HARDWARE cluster....
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
Reply With Quote
  #6 (permalink)  
Old 12-03-07, 05:30
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Posts: 146
Thumbs down

I need an example for this.

Directing Clients Automatically with DBPATH

Thank you for you help.
Reply With Quote
  #7 (permalink)  
Old 12-03-07, 06:41
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
I already tried use DBPATH with a 4GL program to do this redirection... unfortunately doesn't work and I don't know why...

If work with you.. please.. post here how you do...
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On