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.
For this recipe we will use the following setup:
Create a modified version of the
EMPtable that is delivered in the
SCOTTdemo schema with Oracle binaries in the source and target databases. You can use the following DDL statement to create the
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));