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 > DB2 > Replication Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-21-05, 05:47
iblair iblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 16
Angry Replication Problem

Hi People,

I'm having a bit of a problem with websphere MQ peer-peer replication on a pair of DB2 servers I have. Replication works fine when the capture and apply queues are running on both servers and you add a row to the table, but if a row (or several million!) is added when one server is down, your restart replication and that data is not sent across to the other server. Any new data is. Does any one have any idea? I guess there's somekind of sync'ing command, but I can't find it!

Many thanks,
Ian
Reply With Quote
  #2 (permalink)  
Old 09-21-05, 07:19
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
replication

if capture is stopped normally it keeps the last handled log entry, and when restarted in warm mode, the capture continues reading the log from last stop point. apply does not need to run at all time, as captured records are held in mq queues waiting to be handled ...
full refresh can be forced, but will copy the complete table again....(not recommended)
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 09-21-05, 07:40
iblair iblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 16
Thanks Paul.

The situation I have is that one of my servers died overnight, so capture and apply died. I have rebooted this server and restarted the channel,capture,apply,etc, but there are 100000 rows missing from the database that was down overnight. I would have expected this server to catch up with all the old stuff when I brought it back up, but it does not. Any idea why?

Cheers,
Ian
Reply With Quote
  #4 (permalink)  
Old 09-21-05, 07:52
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
replication

should have done so.
if capture died, it would redo some updates already done
if apply died, it would have todo a redo as rows have not been flagged as executed
any errors in applytrail or other logs ?
seems not correct anyhow and needs investigation to avoid data loss
the best would be to force now a full refresh, to have target in synch with source.
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #5 (permalink)  
Old 09-21-05, 09:45
iblair iblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 16
I thought it was probably supposed to! I've had a look at the error messages, and it is showing 'The REINIT_SUB command is no valid for Q subscription "LOADTEST0002". The Q was not reinistialized.'

Last question (I hope!!), Do you know why this would be?

Thanks for all your help,
Ian
Reply With Quote
  #6 (permalink)  
Old 09-21-05, 09:49
iblair iblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 16
ARGHHH! Just found out that reinitialisation is only for unidirectional queues! Completely stuck again now!
Reply With Quote
  #7 (permalink)  
Old 09-21-05, 11:54
toniblair toniblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 5
I am experiencing a similar problem where somehow some changes where not applied and now my databases are no longer identical. since i noticed the difference, this has not happened again and all updates where captured and applied properly. but, i need them to be identical.

przytula mentioned that I can do a full-refresh. I have never before, How is it done?
Reply With Quote
  #8 (permalink)  
Old 09-22-05, 07:25
iblair iblair is offline
Registered User
 
Join Date: Sep 2005
Posts: 16
I've no idea, but I fixed my problem by setting up replication again. The details we were sent for setting up replication queue maps were slightly incorrect, but working great now. Just got to speed it up a bit now
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