Create and run a
job that contains an Oracle
CDC transformation. The
source table contains changed data from an Oracle database. A control table is used to prevent
the updates of
target rows that were updated in a previous run.
The steps in the following Tasks section assume that the Oracle base table was previously
loaded into the dimension table in a separate job. The example job in the task section
also assumes that a third job loads the CDC target table into the
dimension table using the SCD Type 2 Loader. The SCD Type 2 Loader was not included in this
example job as a matter of simplicity. To see an example that uses the SCD Type 2
Loader, refer to
Loading a Dimension Table with Type 1 and 2 Updates.
The source changed data table from Oracle contains all of the inserts, updates, and
deletes
that have occurred since the last time the dimension table was loaded.
To accommodate database deletes, the Oracle CDC transformation calculates new end
dates for the corresponding rows in the dimension table. (The dimension table retains
a history of data changes by closing-out records, rather than deleting
them.)
The sample job includes the following tasks: