Unix Technical Forum

Re: Replication - Apply

This is a discussion on Re: Replication - Apply within the DB2 forums, part of the Database Server Software category; --> 1) With your first question there is more going on then stated. For most scenarios the target is read ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:45 PM
Ray Houle
 
Posts: n/a
Default Re: Replication - Apply

1) With your first question there is more going on then stated. For most
scenarios the target is read only (except for Apply) tables (no RI) should
not be locked, so when Apply runs it will take the entire block of work from
the source for the entire SET and "apply" it as a single transaction, with
the idea that upon completion all work at the source (which was at a
consistent point) will be reflected at the target (now also at a consistent
point). BTW, you can use data blocking to break up very large volumes of
work into smaller UOWs.

If however your target is a REPLICA (itself a source), you must define all
RI from the source on the targets, all tables involved in your RI tree need
to be in the same SET, you must run Apply with COMMIT(x). By running with
COMMIT(x), Apply is now transactional and the order and sequence of source
transactions are rebuilt as they occured.

2) If continuous timing you mean SleepMinutes = 0, you should not see Apply
use it's 5 minute sleep. This 5 minute sleep, is an Apply behavior where
after completing it's work, Apply looks at what is next, (either based on
SleepMinutes or Event) Apply decides I have nothing to do for a long time...
however every 5 minutes it opens an eye to check if something has changed.

Hope this helps,

Ray
"soundharya_s" <member8272@dbforums.com> wrote in message
news:2734242.1049587712@dbforums.com...
>
> 1) How do the transactions get applied at the target ... for example,
> when there are two transactions at the source server and the
> transaction 1 updated tables t1 and t2, transaction 2 updates t3 and
> t4 ... And all these tables belong to the same replication
> subscription ... Assume, for some reason t3 is locked, will
> transaction 1 be applied and committed on the target and transaction
> 2 fail at the target as one of the tables is locked ?
>
> 2) What is the continuous timing in Apply config ? Even if I say
> continuous, the changes do not get appled immediately ... The apply
> trace shows it sleeps for 300 seconds
>
> Thanks in Advance for your comments ....
>
>
> Soundh
>
> --
> Posted via http://dbforums.com



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com