ADD CHECKPOINTTABLE
Not valid for Replicat for Java, Oracle GoldenGate Applications Adapter, or Oracle GoldenGate for Big Data.
Use ADD CHECKPOINTTABLE
to create a
checkpoint table in the target database. Replicat uses the table to maintain a
record of its read position in the trail for recovery purposes.
The use of a checkpoint table is strongly recommended, because it causes checkpoints to be part of the Replicat transaction. This allows Replicat to recover more easily in certain circumstances than when a checkpoint file alone is used. Parallel and coordinated Replicats require checkpoint tables.
One table can serve as the default checkpoint table for all Replicat
groups in an Oracle GoldenGate instance if you specify it with the
CHECKPOINTTABLE
parameter in a GLOBALS
file.
More than one instance of Oracle GoldenGate (multiple installations) can use the
same checkpoint table. Oracle GoldenGate keeps track of the checkpoints even when
the same Replicat group name exists in different instances.
Use the DBLOGIN
command to establish a database
connection before using this command. Do not change the names or attributes of the
columns in this table. You may, however, change table storage attributes.
See About Checkpoints.
GGSCI Syntax
ADD CHECKPOINTTABLE [[container. | catalog.]owner.table]
-
container.
|
catalog
. -
The Oracle pluggable database, if applicable. If this option is omitted, the pluggable database defaults to the one that is associated with the
SOURCEDB
,USERID
, orUSERIDALIAS
portion of theDBLOGIN
command (depending on the database). -
owner.table
-
The owner and name of the checkpoint table to be created. The name cannot contain any special characters, such as quotes, backslash, dollar sign, and percent symbol.
The name of a MySQL checkpoint table can contain no more than 30 characters.
The owner and name can be omitted if you are using this table as the default checkpoint table and it is listed with
CHECKPOINTTABLE
in theGLOBALS
file.It is recommended, but not required, that the table be created in a schema dedicated to Oracle GoldenGate. If an owner and name are not specified, a default table is created based on the
CHECKPOINTTABLE
parameter in theGLOBALS
parameter file.Record the name of the table, because you will need it to view statistics or delete the table if needed.
Record the name of the checkpoint table as that will be used when you add a Replicat, or delete a Replicat and need to drop the checkpoint table using the
DELETE CHECKPOINTTABLE
command.