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

**URL:** <https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313>\
**Category:** Databases\
**Tags:** migration, rds, s3\
**Created:** [July 27, 2022, 8:49am UTC](https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313 "2022-07-27T08:49:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calm-Conclusion9358](https://awshq.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@Calm-Conclusion9358](https://awshq.com/u/Calm-Conclusion9358)\
**Post date:** [July 27, 2022, 8:49am UTC](https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313/1 "2022-07-27T08:49:33Z")

</div>

The joys of Oracle and AWS playing together 🙂

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?

* * *

**Related discussions:**

- [Should I use AWS SCT to migrate from an Amazon RDS Postgresql to Amazon Aurora?](https://awshq.com/t/should-i-use-aws-sct-to-migrate-from-an-amazon-rds-postgresql-to-amazon-aurora/15091)
- [Best Workaround for Multi-Region Cognito Setup?](https://awshq.com/t/best-workaround-for-multi-region-cognito-setup/19384)
- [Migration, DR & Biz Continuity](https://awshq.com/t/migration-dr-biz-continuity/21866)
- [What is the best and cheapest database solution on aws](https://awshq.com/t/what-is-the-best-and-cheapest-database-solution-on-aws/18998)
- [AWS suspended our production account for “non-payment”. We paid the invoice in full, billing shows R$0.00 due, and AWS Health says our EKS control plane shuts down in two days.](https://awshq.com/t/aws-suspended-our-production-account-for-non-payment-we-paid-the-invoice-in-full-billing-shows-r-0-00-due-and-aws-health-says-our-eks-control-plane-shuts-down-in-two-days/21520)

---

<div class="post-metadata">

**Author:** ![r0b0\_sk2](https://awshq.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@r0b0\_sk2](https://awshq.com/u/r0b0_sk2)\
**Post date:** [July 27, 2022, 1:22pm UTC](https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313/2 "2022-07-27T13:22:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Calm-Conclusion9358](https://awshq.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@Calm-Conclusion9358](https://awshq.com/u/Calm-Conclusion9358)\
**Post date:** [July 27, 2022, 9:51pm UTC](https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313/3 "2022-07-27T21:51:33Z")

</div>

> [@r0b0\_sk2](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![agentblack000](https://awshq.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@agentblack000](https://awshq.com/u/agentblack000)\
**Post date:** [July 28, 2022, 2:43am UTC](https://awshq.com/t/using-aws-dms-to-replicate-changes-only-from-oracle-rds-source-to-s3-parquet-files-target/15313/4 "2022-07-28T02:43:58Z")

</div>

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.
