加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-12 13:39:12 所属栏目:百科 来源:网络整理
导读:编辑手记: 云端起舞也要脚踏实地 ,Oracle全面向云,将会演绎怎样的精彩,海外专家伴你踏上云端之旅。 系列文章回顾 : 1、Configure and Practice Backup and Recovery in Cloud ? ? ?在Oracle公有云上备份与恢复的配置和实践 2、Create a Primary and Sta

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


系列文章回顾

1、Configure and Practice Backup and Recovery in Cloud

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

2、Create a Primary and Standby Database in the Cloud

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


作者简介:

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


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

如何加入"云和恩墨大讲堂"微信群

搜索 盖国强(Eygle)微信号:eyygle,或者扫描下面二维码,备注:云和恩墨大讲堂,即可入群。每周与千人共享免费技术分享,与讲师在线讨论。


精彩回顾

性能篇

SQL性能? ? ?IO性能? ??B树索引? ??子查询??

等待事件? ?RAC性能? ?执行计划? ??AWR

新特性篇

多租户权限???在线分区表???12.2ADG

BigData? ? ?高可用? ? ?In-Memory

Sharding? ?RAC?

MySQL篇

GR基础???GR运维? ??高可用与分区

MySQL优化????实例迁移? ??Row格式

热点事件

闰秒事件? ??GitLab事件? ?Google SRE

比特币? ??SQL Server下一版本

云端起舞

公有云备份与恢复? ??GDS? ? ?云上备库

数据库云化? ? ? ?Saas时代的SQL审核

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读