Prepare Oracle GoldenGate for Db2 for i
Learn how to prepare Oracle GoldenGate to begin data replication from a source Db2 for i database and apply it to a supported target database.
Update the GLOBALS File
The GLOBALS parameter file contains parameters that affect all processes within an Oracle GoldenGate instance.
GGSCHEMA is a mandatory parameter for Oracle GoldenGate and defines the schema, which Oracle GoldenGate uses on the remote system for necessary Oracle GoldenGate database objects.
The GLOBALS parameter
NAMECCSID
is specific to Db2 for i and may be required, if the SQL
catalog contains object names that are referenced by a different CCSID than the system
CCSID. The SQL catalog is created in the system CCSID and does not indicate this difference
when queried. Oracle GoldenGate makes queries to the catalog and could retrieve the name
incorrectly unless NAMECCSID
is used to supply the correct CCSID value. For
more information, see Parameters and Functions Reference
for Oracle GoldenGate.
Specifying Object Names
Oracle GoldenGate commands and parameters support input in the form of SQL names, native names in the format of library_name/file_name(member_name)
, or a mix of the two. If a native file system name does not include the member name, all members are implicitly selected by the Oracle GoldenGate process. For a SQL name only the first member is used.
To support case sensitivity of double quoted object names, specify those names within double quotes in the Oracle GoldenGate parameter files. This is true of both SQL and native file system names.
When specifying a native table name in a MAP
statement on a platform other than DB2 for i, the name must be enclosed within double quotes so that Oracle GoldenGate correctly interprets it as a separator character.
For consistency of terminology in other administrative and reference Oracle GoldenGate documentation, the SQL terms "schema" and "table" are used to reference the containers for the DB2 for i data, as shown here.
Table 7-7 Native-SQL object name relationships
Native | SQL | Notes |
---|---|---|
Library (maximum length 10) |
Schema (maximum length 128) |
The operating system creates a corresponding native name for a SQL-created schema. |
File (maximum length 10) |
Table (maximum length 128) |
The operating system creates a corresponding native name for a SQL-created table. |
Member |
Not Applicable |
Contains the actual data. Only the first member of a |
Adjusting the System Clock
It is recommended that you set the system clock to UTC (Universal Time Coordinate) time and use the timezone offset in the DB2 for i system values to represent the correct local time. If this setup is done correctly, local daylight savings time adjustments can occur automatically with no disruption to replication.