To perform a consistency check, use the cdr check replicate or cdr check replicateset command. Use the –repair option to repair the inconsistent rows. A 4consistency report is displayed for your review.
4You can perform a consistency check and synchronization on a single replicate 4or a replicate set. When you synchronize a replicate set, Enterprise Replication 4synchronizes tables in an order that preserves referential integrity constraints 4(for example, child tables are synchronized after parent tables).
4 4The following restrictions apply to performing consistency checking:
4If synchronization during a consistency check cannot repair a row, the 4inconsistent row is recorded in an ATS or RIS file. For more information, 4see Repairing Failed Transactions with ATS and RIS Files.
4 4Before you can use the cdr check replicate command, 4you must prepare the Enterprise Replication checksum support functions.
4Inconsistencies listed in the consistency report do not necessarily indicate 4a failure of replication. Data on different database servers is inconsistent 4while replicated transactions are in progress. For example, the following 4consistency report indicates that two rows are missing on the server g_serv2:
4------ Statistics for repl1 ------ 4Node Rows Extra Missing Mismatch Processed 4---------------- --------- --------- --------- --------- --------- 4g_serv1 67 0 0 0 0 4g_serv2 65 0 2 0 0 4 4WARNING: replicate is not in sync
The missing rows could be in the process of being replicated from g_serv1 to g_serv2.
4If you choose to repair inconsistent rows during a consistency check, the 4report shows the condition of the replicate at the time of the check, plus 4the actions taken to make the replicate consistent. For example, the following 4report shows two missing rows on g_serv2 and that two 4rows were replicated from g_serv1 to correct this inconsistency:
4------ Statistics for repl1 ------ 4Node Rows Extra Missing Mismatch Processed 4---------------- --------- --------- --------- --------- --------- 4g_serv1 67 0 0 0 2 4g_serv2 65 0 2 0 0 4 4WARNING: replicate is not in sync
The warning indicates that inconsistencies were discovered. The report 4does not indicate whether the replicate became consistent after the repair 4process.
4The verbose form of the consistency report also displays the primary key 4for each inconsistent row.
4For more information about the contents of the consistency report, see cdr check replicate.
4 Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]