简体   繁体   English

如何将数据从 Source Oracle DB 传输/迁移到 aws oracle rds

[英]how to transfer/migrate data from Source Oracle DB to aws oracle rds

I have a request to move Source Oracle DB into AWS Oracle RDS.我请求将 Source Oracle DB 移至 AWS Oracle RDS。 I research on AWS page to find out the solution, but AWS guide very complex such as upload dump file to S3, download file dump...I don't want to do on this way because it very take time.我在 AWS 页面上研究以找出解决方案,但 AWS 指南非常复杂,例如将转储文件上传到 S3、下载文件转储……我不想这样做,因为这很花时间。 Any one have any solution to move database to AWS Oracle RDS?有人有将数据库移动到 AWS Oracle RDS 的解决方案吗?

My updated: Source Oracle DB is not use any AWS service.我的更新:源 Oracle DB 未使用任何 AWS 服务。 It only installed on phycical server.它只安装在物理服务器上。

Please help share any solution/tools can use to migrate请帮助分享任何可用于迁移的解决方案/工具

You can use SQL Developer Tool to copy database from source to AWS Oracle RDS (I am using SQL Developer Tool version 19.2.1.247)您可以使用 SQL Developer Tool 将数据库从源复制到 AWS Oracle RDS(我使用的是 SQL Developer Tool 版本 19.2.1.247) 在此处输入图像描述

Before migrate you need the below things to prepare/configure on AWS Oracle RDS, to ensure the same with Source Oracle DB在迁移之前,您需要在 AWS Oracle RDS 上准备/配置以下内容,以确保与 Source Oracle DB 相同

  1. Create the same user who assigned to your schema/database创建分配给您的架构/数据库的同一用户
  2. If Source Oracle DB is using tablespace, you must be create the same tablespace如果源 Oracle 数据库正在使用表空间,则必须创建相同的表空间

After prepared, You will do the below steps on SQL Developer Tool准备好后,您将在 SQL Developer Tool 上执行以下步骤

  1. Using admin account to created a connect to Source Oracle DB server.使用管理员帐户创建到源 Oracle 数据库服务器的连接。

  2. Using admin account to created a connect to Oracle AWS server.使用管理员帐户创建到 Oracle AWS 服务器的连接。 在此处输入图像描述

  3. Go to Tools -> Database Copy...转到工具 - >数据库复制... 在此处输入图像描述

  4. On Dialog, choose source db and destination db在对话框中,选择源数据库和目标数据库在此处输入图像描述

    INFO:If you are using tablespace on source db, you must be choose [Tablespace Copy] like that:信息:如果您在源数据库上使用表空间,则必须像这样选择 [Tablespace Copy]:

    在此处输入图像描述

  5. Click Next to continue and waiting to transfer.单击“下一步”继续并等待传输。

You can use the AWS native Database Migration Service (AWS DMS).您可以使用 AWS 原生数据库迁移服务 (AWS DMS)。 Below is the link to the AWS DMS workshop.下面是 AWS DMS 研讨会的链接。

https://catalog.us-east-1.prod.workshops.aws/workshops/77bdff4f-2d9e-4d68-99ba-248ea95b3aca/en-US/oracle-oracle/data-migration https://catalog.us-east-1.prod.workshops.aws/workshops/77bdff4f-2d9e-4d68-99ba-248ea95b3aca/en-US/oracle-oracle/data-migration

In the link, source database is mentioned as AWS RDS, but you can connect to any source database at on-premises or other locations.在链接中,源数据库被称为 AWS RDS,但您可以连接到本地或其他位置的任何源数据库。 All you need is connectivity (between source Oracle and AWS target RDS Oracle) along with source database host IP, database port and db user credentials with necessary permissions to pull data from source.您所需要的只是连接(在源 Oracle 和 AWS 目标 RDS Oracle 之间)以及源数据库主机 IP、数据库端口和具有从源中提取数据所需权限的数据库用户凭据。 Usually for database migrations a direct connect is recommended to avoid data transfer related issues, but can also be done over VPN (can be slow for large migrations)通常对于数据库迁移,建议直接连接以避免数据传输相关问题,但也可以通过 VPN 完成(对于大型迁移可能会很慢)

Start with the pre-requisites (permissions, grants etc.) to prepare the source database for migration as mentioned in the link above.从先决条件(权限、授权等)开始,为上面的链接中提到的迁移准备源数据库。

Other tools to explore would be to use Database native tools, like for Oracle we get Data Pump (export/import), for which we will have to use S3 for dumping the source data and then importing into AWS RDS from S3.其他要探索的工具是使用数据库本机工具,例如对于 Oracle,我们得到数据泵(导出/导入),为此我们必须使用 S3 来转储源数据,然后从 S3 导入到 AWS RDS。 This may be ok for one time activity.这对于一次性活动来说可能没问题。 But for large number of migrations AWS DMS with a stable connectivity is the way to go.但对于大量迁移,具有稳定连接的 AWS DMS 是可行的方法。

Third option I can think of is use of AWS Snowball, if there is no reliable connectivity between source and AWS for large data transfer.我能想到的第三个选项是使用 AWS Snowball,如果在源和 AWS 之间没有可靠的连接进行大数据传输。 AWS Snowball edge storage can be requested to your db location and hooked up to the network.可以向您的数据库位置请求 AWS Snowball 边缘存储并连接到网络。 Dump the database export into the Snowball and ship it back to AWS.将数据库导出转储到 Snowball 中并将其运回 AWS。 They will copy the DB dump to a S3 bucket and from there we can import it into RDS.他们会将数据库转储复制到 S3 存储桶,我们可以从那里将其导入 RDS。

Hope that helps...希望有帮助...

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

相关问题 如何从 AWS Oracle RDS 到 Dyanmo DB 进行实时数据摄取 - How to do Real time Data Ingestion from AWS Oracle RDS to Dyanmo DB 如何连接到 Aws Oracle RDS 创建的 Oracle 服务器 - How to connect to Oracle server created by Aws Oracle RDS 如何创建批处理以将 Oracle 数据库数据上传到 AWS Data Exchange? - How to create batch process to upload Oracle DB data to AWS Data Exchange? AWS RDS。 如何在 aws 帐户之间复制/移动/迁移参数/选项组? - AWS RDS. How to copy/move/migrate Parameters/options groups vetween aws accounts? 将 AWS RDS postgres db 与可写 RDS postgres db 同步 - Sync AWS RDS postgres db with writable RDS postgres db Cloud SQL 来自 AWS RDS Postgres 的 Postgres 外部复制 - 源表示实例的问题 - Cloud SQL Postgres external replication from AWS RDS Postgres - problem with source representation instance 如何从 AWS Glue Python Shell 连接到 RDS 实例? - How to Connect to RDS Instance from AWS Glue Python Shell? 如何在 AWS-lambda 中使用 nodeJS 对 dynamo DB 中的数据进行排序 - How to sort data from dynamo DB using nodeJS in AWS-lambda 如何同步 2 个 AWS RDS 实例 - How to sync 2x AWS RDS instances 如何在 oracle 中部署 Wso2? - How deploy Wso2 in oracle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM