<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t" -->

---
title: Migrate Oracle Materialized Views with AWS DMS and Fast...
description: A technical walkthrough shows how to configure Oracle Materialized Views with the Fast Refresh option and materialized view logs so that AWS DMS can perform...
canonical: https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Migrate Oracle Materialized Views with AWS DMS and Fast Refresh | daily.dev
og:description: A technical walkthrough shows how to configure Oracle Materialized Views with the Fast Refresh option and materialized view logs so that AWS DMS can perform...
og:url: https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t
og:image: https://api.daily.dev/og/posts/jQTwqaL7t.png
og:image:alt: Migrate Oracle Materialized Views with AWS DMS and Fast Refresh
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate Oracle Materialized Views with AWS DMS and Fast Refresh

**[AWS Database Blog](https://daily.dev/sources/aws-database-blog)** · 8 min read · 0 upvotes · 0 comments

## Summary

A technical walkthrough shows how to configure Oracle Materialized Views with the Fast Refresh option and materialized view logs so that AWS DMS can perform incremental CDC replication instead of costly full reloads. The guide covers base table setup, MV log creation with WITH ROWID INCLUDING NEW VALUES, DBMS_SCHEDULER-based refresh scheduling, DMS task configuration (Full Load + CDC), and CDC validation. It also lists three performance optimizations: indexing ROWID columns, locking MV log statistics, and setting the _mv_refresh_use_stats parameter. Testing on a 20-million-row dataset reportedly reduced MV refresh replication time by over 90% and cut CDC latency from minutes to seconds.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://aws.amazon.com/blogs/database/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh>

## Questions this post answers

### Why does AWS DMS perform a full delete and insert of all rows when replicating an Oracle materialized view with CDC?

Standard Oracle materialized views lack incremental change tracking, so AWS DMS treats every refresh as a complete reload rather than capturing only changed rows, deleting all existing rows and reinserting them. This is resource-intensive for views with 20 million or more rows, causing high overhead and replication lag. Using Oracle's Fast Refresh with materialized view logs lets DMS capture only delta changes instead.

_Teams debugging DMS replication overhead can track migration patterns like this on daily.dev._

### What are the requirements for using Oracle materialized view Fast Refresh with AWS DMS CDC replication?

The Oracle COMPATIBLE parameter must be 9.2.0 or higher, the materialized view must be created with REFRESH FAST, materialized view logs must exist on all base tables using WITH ROWID INCLUDING NEW VALUES, a DBMS_SCHEDULER job must trigger incremental refreshes, and the MV's SELECT statement must use traditional Oracle join syntax rather than ANSI joins, which cause Fast Refresh to fail.

_Engineers planning an Oracle-to-AWS migration can follow database migration guidance like this on daily.dev._

### How much can Fast Refresh with materialized view logs improve AWS DMS CDC replication performance for large Oracle datasets?

In testing with a 20-million-row dataset, combining Oracle Fast Refresh with materialized view logs and AWS DMS CDC reduced materialized view refresh replication time by over 90% and cut CDC latency from minutes to seconds, while eliminating full-reload overhead on the DMS replication instance and keeping full load rows at zero during CDC.

_Anyone benchmarking large-scale database replication approaches can dig into results like this on daily.dev._

## Similar posts on daily.dev

- [Databend Incremental Materialized Views - Change Tracking, Incremental Refresh, and Consistent Reads](https://daily.dev/posts/databend-incremental-materialized-views---change-tracking-incremental-refresh-and-consistent-reads-nomqfsr5i) · Databend Blog · 0 upvotes · 0 comments
- [Manage long-running transactions for AWS DMS performance](https://daily.dev/posts/manage-long-running-transactions-for-aws-dms-performance-bdgogkizz) · AWS Database Blog · 0 upvotes · 0 comments
- [ClickHouse Materialized Views: How They Work and Where They Break](https://daily.dev/posts/clickhouse-materialized-views-how-they-work-and-where-they-break-nsi75zjaa) · BigData Boutique blog · 1 upvotes · 0 comments
- [Overcoming Oracle CDC Replication Lag Through Collaboration](https://daily.dev/posts/overcoming-oracle-cdc-replication-lag-through-collaboration-hscqvjtch) · Debezium · 4 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#oracle](https://daily.dev/tags/oracle), [#change-data-capture](https://daily.dev/tags/change-data-capture)

[View this post on daily.dev](https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Migrate Oracle Materialized Views with AWS DMS and Fast Refresh","url":"https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t"},"datePublished":"2026-08-18T16:41:20.572Z","dateModified":"2026-08-18T19:20:00.564Z","description":"A technical walkthrough shows how to configure Oracle Materialized Views with the Fast Refresh option and materialized view logs so that AWS DMS can perform...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b801fa39425932aabccbc9bd8ff3977?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b801fa39425932aabccbc9bd8ff3977?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"AWS Database Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"AWS Database Blog","logo":"https://media.daily.dev/image/upload/s--En-avd2a--/f_auto,q_auto/v1780213446/logos/aws-database-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/aws-database-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,oracle,change-data-capture","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AWS Database Blog","item":"https://daily.dev/sources/aws-database-blog"},{"@type":"ListItem","position":3,"name":"Migrate Oracle Materialized Views with AWS DMS and Fast Refresh"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/migrate-oracle-materialized-views-with-aws-dms-and-fast-refresh-jqtwqal7t#faq","mainEntity":[{"@type":"Question","name":"Why does AWS DMS perform a full delete and insert of all rows when replicating an Oracle materialized view with CDC?","acceptedAnswer":{"@type":"Answer","text":"Standard Oracle materialized views lack incremental change tracking, so AWS DMS treats every refresh as a complete reload rather than capturing only changed rows, deleting all existing rows and reinserting them. This is resource-intensive for views with 20 million or more rows, causing high overhead and replication lag. Using Oracle's Fast Refresh with materialized view logs lets DMS capture only delta changes instead. Teams debugging DMS replication overhead can track migration patterns like this on daily.dev."}},{"@type":"Question","name":"What are the requirements for using Oracle materialized view Fast Refresh with AWS DMS CDC replication?","acceptedAnswer":{"@type":"Answer","text":"The Oracle COMPATIBLE parameter must be 9.2.0 or higher, the materialized view must be created with REFRESH FAST, materialized view logs must exist on all base tables using WITH ROWID INCLUDING NEW VALUES, a DBMS_SCHEDULER job must trigger incremental refreshes, and the MV's SELECT statement must use traditional Oracle join syntax rather than ANSI joins, which cause Fast Refresh to fail. Engineers planning an Oracle-to-AWS migration can follow database migration guidance like this on daily.dev."}},{"@type":"Question","name":"How much can Fast Refresh with materialized view logs improve AWS DMS CDC replication performance for large Oracle datasets?","acceptedAnswer":{"@type":"Answer","text":"In testing with a 20-million-row dataset, combining Oracle Fast Refresh with materialized view logs and AWS DMS CDC reduced materialized view refresh replication time by over 90% and cut CDC latency from minutes to seconds, while eliminating full-reload overhead on the DMS replication instance and keeping full load rows at zero during CDC. Anyone benchmarking large-scale database replication approaches can dig into results like this on daily.dev."}}]}
```

