Adding Tables to the Oracle GoldenGate Configuration
This procedure assumes that the Oracle GoldenGate DDL support feature is not in use, or is not supported for, your database.
Note: For Oracle and MySQL databases, you can enable the DDL support feature of Oracle GoldenGate to automatically capture and apply the DDL that adds new tables, instead of using this procedure. See the appropriate instructions for your database in this documentation.
Review these steps before starting. The process varies slightly, depending on whether or not the new tables satisfy wildcards in the TABLE parameter, and whether or not names or data definitions must be mapped on the target.
Prerequisites for Adding Tables to the Oracle GoldenGate Configuration
-
This procedure assumes that the source and target tables are either empty or contain identical (already synchronized) data.
-
You may be using the
DBLOGIN USERIDALIASandADD TRANDATAcommands. Before starting this procedure, see for the proper usage of these commands for your database.
To Add a Table to the Oracle GoldenGate Configuration
-
Stop user access to the new tables.
-
(If new tables do not satisfy a wildcard) If you are adding numerous tables that do not satisfy a wildcard, make a copy of the Extract and Replicat parameter files, and then add the new tables with
TABLEandMAPstatements. If you do not want to work with a copy, then edit the original parameter files after you are prompted to stop each process. -
(If new tables satisfy wildcards) In the Extract and Replicat parameter files, make certain the
WILDCARDRESOLVEparameter is not being used, unless it is set to the default ofDYNAMIC. -
(If new tables do not satisfy a wildcard) If the new tables do not satisfy a wildcard definition, stop Extract.
STOP EXTRACT *group* -
Add the new tables to the source and target databases.
-
If required for the source database, issue the
ADD TRANDATAcommand for the new tables. Before usingADD TRANDATA, issue theDBLOGIN USERIDALIAScommand. -
Depending on whether the source and target definitins are identical or different, use either
ASSUMETARGETDEFSorSOURCEDEFSin the Replicat parameter file. IfSOURCEDEFSis needed, you can specify the template with theDEFoption of theMAPparameter. -
To register the new source definitions or new
MAPstatements, stop and then start Replicat.STOP REPLICAT *group* START REPLICAT *group* -
Start Extract, if applicable.
START EXTRACT *group* -
Permit user access to the new tables.