Configuring the Replicat Parameter File
These steps configure the Replicat process. This process applies replicated data to a DB2 LUW target database.
- In GGSCI on the target system, create the Replicat parameter file.
EDIT PARAMSnameWhere:
nameis the name of the Replicat group. - Enter the Replicat parameters in the order shown, starting a new line for each
parameter statement.
Basic parameters for the Replicat group:
REPLICAT financer TARGETDB mytarget, USERIDALIAS myalias ASSUMETARGETDEFS MAP hr.*, TARGET hr2.*;
Parameter Description REPLICATgroupgroupis the name of the Replicat group.TARGETDB
database, USERIDALIASaliasSpecifies the real name of the target DB2 LUW database (not an alias), plus the alias of the database login credential of the user that is assigned to Replicat. This credential must exist in the Oracle GoldenGate credential store. For more information, see Database User for Oracle GoldenGate Processes.
ASSUMETARGETDEFS
Specifies how to interpret data definitions.
ASSUMETARGETDEFSassumes the source and target tables have identical definitions. (This procedure assume identical definitions.)Use the alternative
SOURCEDEFSif the source and target tables have different definitions, and create a source data-definitions file with theDEFGENutility.MAP
schema.object, TARGETschema.object;Specifies the relationship between a source table or multiple objects, and the corresponding target object or objects.
-
MAPspecifies the source portion of theMAPstatement and is a required keyword. Specify the source objects in this clause. -
TARGETspecifies the target portion of theMAPstatement and is a required keyword. Specify the target objects to which you are mapping the source objects. -
schemais the schema name or a wildcarded set of schemas. -
objectis the name of a table or a wildcarded set of objects.
Terminate this parameter statement with a semi-colon.
Note that only the asterisk (*) wildcard is supported for DB2 LUW. The question mark (?) wildcard is not supported for this database. To exclude objects from a wildcard specification, use the
MAPEXCLUDEparameter. -
- Enter any optional Replicat parameters that are recommended for your configuration. You can edit this file at any point before starting processing by using the
EDIT PARAMScommand in GGSCI. - Save and close the file.