Informix

Informix

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
Expand all | Collapse all

Enterprise Replication: not sure which options for cdr define replicate

  • 1.  Enterprise Replication: not sure which options for cdr define replicate

    Posted Tue January 09, 2024 11:07 AM

    Hi Folks,

    first of all, a Happy New year to all the ones I didn't say personnally in our beautiful community.

    Back to business: here is my case

    I am in charge of a migration from an old 11.50 Windows 32 bit instance which is a nightmare of performance and stability etc., to a linux Debian with 14.10 FC5 or similar.

    The main tables are quite big ( like 300 million rows with BLOB) and the customer is really taking time to take the decision to switch to the new server.

    Considering that I have 5 databases, where each one is the exact schema image of the other ones, and each database has only 20ish tables, I thought that using ER could bring many advantages to perform this migration.

    I have read again a lot of material about ER, but I am not sure about the options I should take for my replicates, considering the following conditions:
    - The windows server is global the source, the linux server is globally the target
    - during the last 4 months, I have moved 'manually' the history of the main data table from windows to linux (starting in year 2000) to save time on D day (which is not defined yet), but also to alliviate the windows server from millions of rows. So I have a situation consisting in most of the history on the linux side (more than 300 million rows), and on the other side the windows system keeps being fed constantly by new data (making millions in a month though...)

    My idea is to define a replicate being windows and linux, so that the new rows can be transported to linux, something like 'always add on the linux side, and never delete on linux if the row does not exist on windows', some sort of one way copy from windows to linux.

    I had seen an option --extratargetrows=keep but it only works with cdr repair and not with cdr define.

    I hope I am clear in my description, so what options should I use in my replicate definition?

    Thanks, as always

    Eric



    ------------------------------
    [eric] [Vercelletto] []
    [Founder]
    [kandooerp.org]
    [Pont l'Abbé] [France]
    [+33 626 52 50 68]

    Disclaimer: My own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.
    ------------------------------


  • 2.  RE: Enterprise Replication: not sure which options for cdr define replicate

    Posted Wed January 10, 2024 02:24 AM

    Hello Eric,

    when you define a replicate, you have the option how to handle conflicts.
    ExtraRows are never deleted during normal replication.

    Your choice is:
    -C ignore             # This prevents errors if a row should be updated or deleted, but does not exist on Target ... not what you want
    -C always             # Here all replicated data is handled to get a target row as it is on the source. I think that is what you want
                                     - When a row that should be updated does not exist, it will be inserted.
                                     - When a row that should be deleted does not exist, it's just OK without error
                                    - When a row should be inserted, but exists, it will be updated to the values of the source row.

    Hope this helps.

     

    Mit freundlichen Grüßen - Kind regards

     

    Gerd Kaluzinski

     

    Consultant Software Services

    IBM Expert Labs DACH, Data & AI

    Phone:  +49 175 228 1983

    EMail:  gerd.kaluzinski@de.ibm.com

     

    IBM Deutschland GmbH

    Vorsitzender des Aufsichtsrats: Sebastian Krause

    Geschäftsführung: Gregor Pillen (Vorsitzender), Nicole Reimer, Gabriele Schwarenthorer, Christine Rupp, Frank Theisen

    Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940

     






  • 3.  RE: Enterprise Replication: not sure which options for cdr define replicate

    Posted Wed January 10, 2024 07:30 AM

    Eric:

    What you want is the  --ignoredel=y  option to ignore delete operations on the source system and not apply them on the target.

    Art



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------