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

简介:

编辑手记:云端起舞也要脚踏实地,Oracle全面向云,将会演绎怎样的精彩,海外专家伴你踏上云端之旅。


系列文章回顾

1、Configure and Practice Backup and Recovery in Cloud

     在Oracle公有云上备份与恢复的配置和实践

2、Create a Primary and Standby Database in the Cloud

     在Oracle公有云上创建standby数据库       


作者简介:

640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy

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


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

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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。


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

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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”按钮,填写快照名。切记,此时还不能按创建的按钮。

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

 

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住,不能正常执行。

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=
640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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


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

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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


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

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

After few minutes the clone database willbe created.


这个过程很快就会完成。

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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


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

640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=

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,那么仅仅在实验账号上我们就可以创建一个生产数据库,一个快照数据库和一个克隆数据库。

640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy


脚踏实地,开启云端之旅。更多精彩请加入云和恩墨大讲堂,与专家面对面交流。


文章转自数据和云公众号,原文链接

相关文章
|
8天前
|
SQL Oracle 关系型数据库
【Oracle】玩转Oracle数据库(一):装上去,飞起来!
【Oracle】玩转Oracle数据库(一):装上去,飞起来!
45 7
|
25天前
|
Oracle 关系型数据库 数据库
Oracle数据库基本概念理解(3)
Oracle数据库基本概念理解(3)
18 2
|
8天前
|
SQL Oracle 关系型数据库
【Oracle】玩转Oracle数据库(七):RMAN恢复管理器
【Oracle】玩转Oracle数据库(七):RMAN恢复管理器
35 5
|
25天前
|
Oracle 关系型数据库 数据库
Oracle数据库基本概念理解(2)
Oracle数据库基本概念理解(2)
13 1
|
8天前
|
存储 SQL Oracle
【Oracle】玩转Oracle数据库(二):体系结构、存储结构与各类参数
【Oracle】玩转Oracle数据库(二):体系结构、存储结构与各类参数
32 7
|
16天前
|
SQL 数据可视化 关系型数据库
轻松入门MySQL:深入探究MySQL的ER模型,数据库设计的利器与挑战(22)
轻松入门MySQL:深入探究MySQL的ER模型,数据库设计的利器与挑战(22)
|
16天前
|
存储 关系型数据库 MySQL
轻松入门MySQL:数据库设计之范式规范,优化企业管理系统效率(21)
轻松入门MySQL:数据库设计之范式规范,优化企业管理系统效率(21)
|
16天前
|
关系型数据库 MySQL 数据库
轻松入门MySQL:精准查询,巧用WHERE与HAVING,数据库查询如虎添翼(7)
轻松入门MySQL:精准查询,巧用WHERE与HAVING,数据库查询如虎添翼(7)
|
18天前
|
存储 关系型数据库 MySQL
数据库字符编码MySQL中使用UTF-8还是UTFB4
数据库字符编码MySQL中使用UTF-8还是UTFB4
20 0
|
21天前
|
SQL 关系型数据库 MySQL
【MySQL技术专题】「问题实战系列」深入探索和分析MySQL数据库的数据备份和恢复实战开发指南(8.0版本升级篇)
【MySQL技术专题】「问题实战系列」深入探索和分析MySQL数据库的数据备份和恢复实战开发指南(8.0版本升级篇)
94 0