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 > Distributed query...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-05, 11:33
JackBauer JackBauer is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Distributed query...

Hi
Ok, i have two DB server, i connect from each one to the other using the hostname@dbservername:table syntax.
When i open a transaction in server1 and connect to server2, and start to make insertions and updates from server1 to server2, and suddenly network connection breaks down, and in server1 commit transaction, server2 remains with locks?...... if so, although i rollback transaction, server2 will remains with locks too, right? (since there is no network comunication)....what should i do to avoid locks like this to happend?

Sorry my bad English...
Reply With Quote
  #2 (permalink)  
Old 02-14-05, 14:22
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Hi,

If both servers are Informix, then IDS will always use two pahase commit protocol. If one of the servers fails (or the connection drops) both instances will do a rollback. The time that the transaction will be open will depend on the transaction timeout you can set on the instance level (onconfig).

For more info you can read the admin huide and look for two pahse commit protocol.

Hope this helps,

Rob
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