Replicating with Temporal Tables
You can choose one of the following methods to replicate a system-period or a bitemporal temporal table as follows:
-
You can replicate a temporal table to another temporal table only; this is the default behavior. Oracle GoldenGate will not replicate the
SYSTEM_TIME
period and transaction id columns because these are automatically generated columns at the apply side. The database manager populates the columns in the target temporal table using the system clock time and with the default values. You can preserve the original values these columns then use any of the following:-
Add extra timestamp columns in the target temporal table and map the columns accordingly. The extra columns are automatically added to the associated history table.
-
Use a non-temporal table at the apply side and map the columns appropriately. In this scenario, you will not be able to maintain the history table.
-
In a non-oracle configuration where the source is DB2 LUW and the target is a different database, you can either ignore the automatically generated columns or use an appropriate column conversion function to convert the columns value in the format that target database supports and map them to target columns accordingly.
Or
-
-
You can replicate a temporal table, with the associated history table, to a temporal and history table respectively then you must specify the replicate parameter,
DBOPTIONS SUPPRESSTEMPORALUPDATES
. You must specify both the temporal table and history table to be captured in the Extract parameter file. Oracle GoldenGate replicates theSYSTEM_TIME
period and transactions id columns value. You must ensure that the database instance has the execute permission to run the stored procedure at the apply side.
Oracle GoldenGate cannot detect and resolve conflicts while using default replication as SYSTEM_TIME
period and transactionstart id
columns remains auto generated. These columns cannot be specified in set
and where
clause. If you use the SUPPRESSTEMPORALUPDATES
parameter, then Oracle GoldenGate supports CDR.