Precise Instantiation for MySQL GTID-based Capture
To use the gtid
set for precise instantion, make sure that the
gtid_mode
is enabled in the database server and
_DISABLEGTIDRECOVERY true
is not specified in the Extract
parameter file. The gtid-based positioning does not work on non-gtid-based capture.
The following steps describe how to set up precise instantiation for gtid-based
capture:
-
Read the field value of
gtidExecuted
from the@.json
file and use it as an initial position in theadd extract tranlog gtid set gtid_set
command. -
Use this position in Oracle GoldenGate Microservices Admin Client and web interface, as shown in the following example:
OGG (https://databasede3phx.oraclevcn.com:9011/ GTIDMAIN) 2> ADD EXTRACT longgtid, tranlog gtidset "1174b383-3441-11e8-b90a-c80aa9429920:1-9,\n1174b383-3441-11e8-b90a-c80aa9429921:1-9" 3
-
Start the Extract.
-
Verify in the Extract report file for INFO messages for the
Initial GTID set
andPosition of first record processed
. TheInitial GTID set
andPosition of first record processed
should contain the samegtid
set that is used for the initial positioning. -
Perform the DML operations and verify that there are no duplicate or missing transactions on the target side.