Using AWS DMS to replicate changes only from Oracle RDS source to S3 parquet files target

The joys of Oracle and AWS playing together :slight_smile:

Currently we are using BinaryReader mode with DMS for the replication (to minimise the impact on the source RDS instance).

As part of the supplemental log data commands that we execute initially against the tables that we want to replicate from Oracle we using the following format:

ALTER TABLE TABLENAME1 ADD SUPPLMENTAL LOG DATA (PRIMARY KEY) COLUMNS;

Note - all of the tables in scope will always have a primary key.

Now my question, for any UPDATEs against a table, where we specify a subset of fields in the UPDATE statement ->the parquet file generated in the S3 target will ONLY have the fields that were updated populated, but all other fields are blank/null.

If we then issue an UPDATE against a column on the table to set the column legitimately to null - how do we determine what column has just been set to NULL - if we are now trying to process the transaction in the parquet file?

As the outputted parquet file looks the same - with blank/null.

Wondering how is this typically handled?

Typically, this would be handled outside the rdbms. Your architecture is missing a “backend” or “app server” layer where things like this would be handled.

Thank you, so we propose to have Azure Data Factory using the S3 connector to consume the raw cdc parquet files produced, so you are saying that this determination of set to NULL or not set (as part of the change to a column - is worked out at this point using the data ingestion pipeline software then?

Null means nothing so makes sense before a value is ever set. If you are performing an update to remove an existing value maybe update it to a value of “removed” or “null” or some value meaning the files was cleaned instead of just making it blank. You can easily handle both true null and this clean value in your downstream processing.