Loading data using trail files to the Replicat process method
In this recipe we will look into the detailed steps of instantiating a target database from a source database using the GoldenGate trail files to the replicat method. For this, we will instantiate the EMP
table with 1 million rows to the target database while it gets updated with various transactions. We will also verify at the end of the initial load that all of these changes have been applied to the target as well.
Getting ready
For this recipe we will use the following setup:
Create a modified version of the
EMP
table that is delivered in theSCOTT
demo schema with Oracle binaries in the source and target databases. You can use the following DDL statement to create theEMP
table:CREATE TABLE EMP ( EMPNO NUMBER(10) PRIMARY KEY, ENAME VARCHAR2(25), JOB VARCHAR2(25), MGR NUMBER(10), HIREDATE DATE, SAL NUMBER(20,2), COMM NUMBER(20,2), DEPTNO NUMBER(10), CITY VARCHAR2(25));
Use the following script to load 1 million rows into this...