We will configure initial load along with change sync inside Oracle Golden Gate.
Here is the full article link: https://www.support.dbagenesis.com/post/configure-golden-gate-initial-load-and-change-sync
2. What is initial load?
Initial load is a process of extracting data records from the
source database and loading those records onto the target
database. Initial load is a data migration process that is
performed only once.
4. On the target, just create the EMP table without any data
into it. Generate the FOX.EMP table DDL command
In the above output, change FOX to TOM and execute the
output of above command on target ggdev.
5. Configure Change Sync
First we will have to configure change sync for FOX.EMP table.
Connect to database via Golden Gate:
6. Add table level supplemental logging via Golden Gate:
Create GG Extract Process:
7. Create local trail file for extract process
Create parameter file for extract process:
15. Add initial load Replicat on target
Edit parameter file for initial load replicat
16. Start Initial Load
& Change Sync
First start the change sync
extract and data pump on
source. This will start
capturing changes while
we perform the initial load.
Do not start replicat at this
point
17. Now start the initial load extract. Remember, this will
automatically start the initial load replicat on target
18. Verify on target if all the 14 records have been loaded on
target table or not
20. Note: At this stage, you can delete the initial load extract and
replicat process as they are no longer needed.
If you get below error while starting the initial load extract:
Add below line to ggdev mgr
GGSCI> refresh mgr
22. Let us create DEPT table from SCOTT.DEPT for FOX user
23. On the target, just create the DEPT table without any data
into it. Generate the FOX.DEPT table DDL command
In the above output, change FOX to TOM and execute the
output of above command on target ggdev.
37. Start Initial Load & Change Sync
First start the change sync extract and data pump on source. This will
start capturing changes while we perform the initial load. Do not start
replicat at this point
38. At this stage capture the database SCN number. We will start the
replicate on target from this SCN onwards
39. Let us make an update into DEPT table. This update will
be captured by both Initial load and also change
capture. Later we will analyze how GG handles
conflicts
40. Now start the initial load extract. Remember, this will
automatically start the initial load replicat on target
41. Verify on target if all the 4 records have been loaded
on target table or not
42. Let us make some changes to DEPT table and if
everything goes well, we must see this change after
starting replicat
43. Now start the change sync replicat
Note: At this stage, you can delete the initial load extract and
replicat process as they are no longer needed.