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 > High Data Replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-07, 06:12
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
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, 08:59
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
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, 16:33
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
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
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #4 (permalink)  
Old 12-02-07, 03:40
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Thumbs down

the primary server goes down in time of executing the query
Reply With Quote
  #5 (permalink)  
Old 12-02-07, 10:12
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
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
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #6 (permalink)  
Old 12-03-07, 04:30
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
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, 05:41
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
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
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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