NewsCrawler.org

Migrating an RDS for Oracle database with AWS DMS: problems hit and how they were fixed

止められないDBをAWS DMSで移行してハマったこと(RDS for Oracle)
Image: zenn.dev

The author describes moving an RDS for Oracle database of about 150 GB from an old AWS environment to a new one with AWS DMS, using a full load[1] followed by CDC[2]. The downtime was about 10 minutes. The old database kept receiving writes from another system, so the two databases had to stay in sync until the migration was complete.

The first problem was that CDC did not replicate changes after the full load. The cause was that the source RDS did not have supplemental logging[3] enabled or archive log retention configured. The author set both with rdsadmin procedures, keeping archive logs for 24 hours, and added 20 GB of storage.

The second problem was the error ORA-12545 in the endpoint connection test. Connecting by IP address worked, so the author concluded the issue was name resolution, and the cause turned out to be a typo in the host name. In production, CDC kept running after the application was switched to the new database through DNS. To prevent such problems, the author recommends a pre-migration checklist, monitoring of FreeStorageSpace with alerts, and not typing endpoint addresses by hand.

Product AWS Database Migration Service aws.amazon.com

AWS managed cloud service that migrates databases to AWS and keeps data synchronized during the move, with minimal downtime.

Read the original zenn.dev

Sources

  • Zenn JA

    止められないDBをAWS DMSで移行してハマったこと(RDS for Oracle)

    5 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page