前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【云端起舞】在Oracle公有云上创建克隆数据库

【云端起舞】在Oracle公有云上创建克隆数据库

作者头像
数据和云
发布2018-03-07 11:32:27
1.4K0
发布2018-03-07 11:32:27
举报
文章被收录于专栏:数据和云

作者简介:

Joel Perez

Oracle ACE总监, Maximum Availability OCM,OTN 专家,全球第一批ACE称号获得者,致力于数据库高可用、灾难恢复、升级迁移和数据复制等方向设计和实现解决方案。

正文:

In this step by step article, we willcreate a clone database for the development or testing purposes.

这篇文章我们将会创建一个克隆数据库作为开发货真测试的环境。

Using Oracle Database Cloud service youdon’t need to configure and run DUPLICATE command of RMAN and create a clone of production database for developers team. All you need is to create a snapshotof your production database and clone it in a few minutes.

使用Oracle Database Cloud Service创建克隆数据库,不需要配置或者执行通过RMAN执行DUPLICATE,只需要对生产库做一次快照,然后进行克隆,这个过程很快就完成了。

So first of all, let’s create a newdatabase. Open cloud.oracle.com, login with your credentials and create a newdatabase service.

首先,我们先创建一个新的数据库。打开网址:cloud.oracle.com,登录之后先创建一个 数据库服务。

After successfully creating a new databaseopen it and select Administration section

创建成功以后,打开数据库,并切换到管理员页面。

Before creating a snapshot of thedatabase, login to the database and create a new table, insert one row and committhe transaction. We will check this table after cloning the snapshot。

在创建快照之前,首先登录到数据库创建一张表,插入一些数据并提交事务,这用于我们克隆完成之后进行数据验证。

Next, switch to the Snapshots tab, click“Create Storage Snapshot” button and provide the name of the snapshot. Don’tclick Create button

然后,在页面上切换到快照的选项,点击“Create Storage Snapshot”按钮,填写快照名。切记,此时还不能按创建的按钮。

When the snapshot of the database istaken, the database is placed into the backup mode. To test it, open SQLconnection, click on Create button to create a snapshot and switch to the SQLsession and run a command. The session will hang

当快照创建好以后,数据库此时处于备份模式。我们来验证一下,打开SQL命令行连接,点击创建按钮,然后切换到SQL会话并创建一张表,此时SQL会hang住,不能正常执行。

When the snapshot is created, click onthe menu icon on the right and choose Create Database Clone to create a clonedatabase from the snapshot

快照创建好以后,从页面右边 的菜单栏选择通过快照创建克隆数据库。

Next, provide the service name and thedatabase name for the clone database and create it.

然后,根据提示填写服务名和克隆数据库名进行创建。

After few minutes the clone database willbe created.

这个过程很快就会完成。

Now login to the clone database andcheck the table that was created before.

现在登录到克隆数据库,检查之前创建的那张表。

The first table was created before thesnapshot and thus it’s there. But the second table was create after creating asnapshot and is not available.

我们发现,在快照之前创建的那张表存在,但创建克隆数据库之后的那张表查不到。

As you see, it’s very easy to create aclone database using snapshots in Oracle Cloud. By having a trial account youare provided 500Gb of free space. Each database service consumes 150Gb space,so having 1 production db (150Gb), 1 snapshot (150Gb) and 1 clone database(150Gb) you can easily test the clone database creation with your trial account。

在Oracle Cloud 服务上创建克隆数据库是非常方便的,在每一个实验的账号上,会有500G的免费存储空间,假如每一个数据库服务分配150G,那么仅仅在实验账号上我们就可以创建一个生产数据库,一个快照数据库和一个克隆数据库。

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2017-02-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 数据和云 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
数据库
云数据库为企业提供了完善的关系型数据库、非关系型数据库、分析型数据库和数据库生态工具。您可以通过产品选择和组合搭建,轻松实现高可靠、高可用性、高性能等数据库需求。云数据库服务也可大幅减少您的运维工作量,更专注于业务发展,让企业一站式享受数据上云及分布式架构的技术红利!
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档