Example of an external data experiment (2) Verify the synchronization between two nodes in Table BONUS and table SALGRADE

Source: Internet
Author: User
Example of an external data experiment (2) Verify the synchronization between the BONUS table and the SALGRADE table in the previous articles: 1. One-way replication configuration address of GoldenGate configuration (1: click Open link 2, GoldenGate configuration (2), two-way replication configuration address: click open link 3, GoldenGate configuration (3), DDL replication configuration address: Click

Example of an external data experiment (2) Verify the synchronization between the BONUS table and the SALGRADE table in the previous articles: 1. One-way replication configuration address of GoldenGate configuration (1: click Open link 2, GoldenGate configuration (2), two-way replication configuration address: click open link 3, GoldenGate configuration (3), DDL replication configuration address: Click

Example of an external data experiment (2) Verify the synchronization between two nodes in Table BONUS and table SALGRADE

The following articles are continued:

1. One-way replication configuration address for GoldenGate configuration (1): Click the open link

2. Configure GoldenGate (2) bidirectional replication configuration address: Click the open link.

3. DDL replication configuration address of GoldenGate configuration (3): Click to open the link.

4. Configure GoldenGate (4) configure the ingress data address: Click the open link.

5. Example of an external data experiment (1) Verify the synchronization between TCUSTMER and TCUSTORD. Address: Click to open the link.

1. Execute job verification Synchronization

View the result. It is displayed that BONUS and SALGRADE cannot be synchronized at two nodes, for example:

2. Check the report and find the following:

Table has no keys defined.-- Pre-prediction error because the primary key constraint is missing

Comparison terminated with errors.

3. Add a primary key for BONUS and SALGRADE

SQL>Select CONSTRAINT_NAME, INDEX_NAME, TABLE_NAME fromuser_constraints;

-- Check constraints. No primary key information is added for BONUS and SALGRADE.

CONSTRAINT_NAME INDEX_NAME TABLE_NAME

-------------------------------------------------------------------------------

FK_DEPTNO EMP

PK_DEPT DEPT

PK_EMP EMP

SYS_C002941 SYS_C002941 TCUSTMER

SYS_C002942 SYS_C002942 TCUSTORD

SQL>Alter table BONUS add constraint PK_ename primarykey (ename); -- add a primary key for BONUS

Table altered.

SQL>Alter table SALGRADE add constraint PK_GRADE primarykey (grade); -- add a primary key for SALGRADE

Table altered.

4. Execute job verification Synchronization

As shown in, the synchronization check is successful:

****************** ********

Statement:
Original works, from "Deep Blue blog" blog, allow reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ).

The author has the right to pursue legal liability for copyright issues.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.