my requirement:
- i extract db2 data into flat files and send to remote
- remote transforms and loads to oracle and confirms it
- on confirmation of replication, i set a flag on every record of my table that says replication was successful
my question:
after generating the flat files, there is one of 2 ways i am looking at handling the flag - i need suggestion on which is better:
#1. right at the time of extraction, mark flag for each record as 'processing', then wait for replication to complete successfully, then update all flags that are 'processing' to 'success'
#2. after extraction, dont do anything to the flag, wait for replication to complete successfully, then read my flat file for PK or record number and then set flags to 'success'.
---- i cannot simply change all records in table to 'success' becos during the process of sending my flat file and waiting for confirmation, new records could be added to the table which have not yet been replicated.-------
Dumb as the question seems, I am no expert. I do not know if the extra step in #1 that does an update on the table is expensive (we will have a few hundred thousand records each on some 10 tables). But #2 seems a round-about. Could people share their views.
Thanks a lot.
saltbits.
- i extract db2 data into flat files and send to remote
- remote transforms and loads to oracle and confirms it
- on confirmation of replication, i set a flag on every record of my table that says replication was successful
my question:
after generating the flat files, there is one of 2 ways i am looking at handling the flag - i need suggestion on which is better:
#1. right at the time of extraction, mark flag for each record as 'processing', then wait for replication to complete successfully, then update all flags that are 'processing' to 'success'
#2. after extraction, dont do anything to the flag, wait for replication to complete successfully, then read my flat file for PK or record number and then set flags to 'success'.
---- i cannot simply change all records in table to 'success' becos during the process of sending my flat file and waiting for confirmation, new records could be added to the table which have not yet been replicated.-------
Dumb as the question seems, I am no expert. I do not know if the extra step in #1 that does an update on the table is expensive (we will have a few hundred thousand records each on some 10 tables). But #2 seems a round-about. Could people share their views.
Thanks a lot.
saltbits.