简体   繁体   English

如何在谷歌云 sql 服务器中启用 CDC 以进行 AWS DMS 复制?

[英]how to enable CDC in google cloud sql server for AWS DMS replication?

I am trying to migrate data from GCP cloud sql server to AWS aurora MySQL using DMS CDC, for this I need to enable CDC on DMS source database which cloud SQL. As per the AWS documentation I need to enable CDC by executing "sp_cdc_enable_db" SP and for this I need sysadmin access but google cloud doesn't support sysadmin access.我正在尝试使用 DMS CDC 将数据从 GCP 云 sql 服务器迁移到 AWS aurora MySQL,为此我需要在云 SQL 的 DMS 源数据库上启用 CDC。根据 AWS 文档,我需要通过执行“sp_cdc_enable_db”SP 来启用 CDC为此,我需要系统管理员访问权限,但谷歌云不支持系统管理员访问权限。 So, in this scenario how to enable CDC?那么,这种场景下如何开启CDC呢?

在此处输入图像描述

As you know, Cloud SQL doesn't support sysadmin access, and CDC feature too.如您所知,云 SQL 不支持系统管理员访问权限,也不支持CDC 功能

So you have to use different method to the migration process.所以你必须对迁移过程使用不同的方法。

If you really want to use CDC, I recommend to use middle-man replication between GCP cloud sql and AWS aurora mysql.如果真的要用CDC,我推荐在GCP云sql和AWS aurora mysql之间使用中间人复制。

Just replicate your cloud sql to on-premise or somewhere else where you can execute cdc.只需将您的云 sql 复制到本地或您可以执行 cdc 的其他地方。

And then migrate the SQL server replication to AWS aurora using AWS DMS, But aurora will not be synced with source DB in cloud sql.然后使用 AWS DMS 将 SQL 服务器复制迁移到 AWS aurora,但是 aurora 不会与云 sql 中的源数据库同步。

Or if you just want to both DBs are in sync, Have you tried steps AWS document described in here ?或者,如果您只想让两个数据库同步,您是否尝试过此处描述的 AWS 文档中的步骤?

I think "Migrating existing data and replicating ongoing changes" section worked exactly you want.我认为“迁移现有数据并复制正在进行的更改”部分完全符合您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS DMS CDC 到 S3 目标 - AWS DMS CDC to S3 target 具有 AWS MSK(Kafka) CDC 事务更改的 AWS DMS - AWS DMS with AWS MSK(Kafka) CDC transactional changes AWS DMS 连续复制延迟问题 - AWS DMS continuous replication latency question AWS DMS - 处理复制任务的预期方式 - AWS DMS - intended way to work with replication tasks CDC 和副本使用 AWS DMS 从 oracle PeopleSoft 到 RDS postgreSQL - CDC and replica using AWS DMS from oracle PeopleSoft to RDS postgreSQL 如何在 Google Cloud SQL 中启用 Mysql 事件调度程序? - How to enable Mysql Event Scheduler in Google Cloud SQL? 有没有办法为 SQL Server 2014 标准版启用持续复制? - Is there a way to enable on going replication for SQL Server 2014 Standard edition? 在Google Cloud SQL Postgres上使用Terraform创建一个Replication Slot - Use Terraform on Google Cloud SQL Postgres to create a Replication Slot 如何在 Cloud Formation 模板中运行 SQL 查询以在 AWS RDS 中启用 Delayed_Durability - How to run a SQL query in Cloud Formation template to enable Delayed_Durability in AWS RDS Cloud SQL 来自 AWS RDS Postgres 的 Postgres 外部复制 - 源表示实例的问题 - Cloud SQL Postgres external replication from AWS RDS Postgres - problem with source representation instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM