当前位置:网站首页>GBASE 8s 数据库的恢复
GBASE 8s 数据库的恢复
2022-07-29 21:18:00 【八珍豆腐】
GBase 8s 的基本恢复过程如下:
(1)首先恢复元数据。
(2)备份描述控制页面列表列出了用户页面将要被恢复的去向。这些列表的物理地址和 extent 大小将被记录在内存表中。
(3)恢复客户端将从磁盘上读取 smart-large-object 页面,并由服务器将其写入控制页
所指定的位置。
其过程如图所示:
另外,在 GBase 8s 进行恢复时,需要用到以下的配置文件。
n 配置参数文件。
n Sqlhosts 文件。
n Oncfg 文件和 emergency boot 文件(针对于 onbar)。`
恢复过程分为物理恢复和逻辑恢复两个部分。物理恢复是通过恢复零级备份、一级备份或二级备份来恢复 dbspace 和 blobspace 的过程。逻辑恢复是指在物理恢复之后,通过磁盘上的逻辑日志备份重做或撤销相关事务,将数据库恢复到故障前状态的过程 如图所示。
恢复又可以分为冷恢复和热恢复。冷恢复是指系统恢复时服务器要处于离线状态,直到那些关键的 dbspace 恢复成功之后,数据库才可以被访问。一般在以下场景中需要对数据做冷恢复。
n 数据库服务器不能使用,不能切换到在线模式。
n 关键的 dbspace,如 root dbspace 或者逻辑日志所在的 dbspace 不能使用。
热恢复是指系统恢复时服务器处于在线状态,在恢复期间数据库仍可以继续被访问。 当非关键的 dbspace 及其镜像的 dbspace 不能使用时,我们可以使用热恢复进行数据库的 恢复。
冷恢复和热恢复同时使用被称为混合恢复。当用户希望尽快恢复系统,并且不需要所 有的 dbspace 都恢复使用时,可以使用混合恢复。混合恢复首先使用冷恢复进行 root dbspace、物理日志和逻辑日志所在的 dbspace 的恢复。当这些 dbspace 都恢复成功后,用 户就可以开始访问数据库了。剩余的 dbspace 可以通过热恢复来进行恢复。
边栏推荐
- OneNote 教程,如何在 OneNote 中做笔记?
- 官宣!苏州吴江开发区上线电子劳动合同平台
- Analysis of Crypto in Pi 2
- 数字孪生万物可视 | 联接现实世界与数字空间
- 方法的传递
- MySQL Data Query - Union Query
- qt中qstring合并字符串
- GBASE 8s 自动删除正在被使用的数据库
- MySQL - Design game user information table
- The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar
猜你喜欢
5V升压充电8.4V芯片
【无标题】
网络通信编程基础,BIO,NIO
1. Promise usage in JS, 2. The concept and usage of closures, 3. The difference between the four methods and areas of object creation, 4. How to declare a class
The demand for VR live broadcast marketing is increasing, and the data module is paving the way for us
惠普服务器硬盘指示灯不亮或显示蓝色
高通WLAN框架学习(31)-- Power save
4. Implementation Guide for GET_ENTITYSET Method of SAP ABAP OData Service Data Provider Class
5 V booster charge 8.4 V chip
Qualcomm WLAN framework learning (31) -- Power save
随机推荐
关于 golang 错误处理的一些优化想法
容器网络硬核技术内幕 (小结-中)
结合布林线理解现货白银走势图的方法
惠普服务器硬盘指示灯不亮或显示蓝色
WeChat Mini Program 31 Subcontracting Mechanism
相亲信息
【593. Valid Square】
Panorama Tutorial丨How to shoot sunrise and sunset scenes in VR panoramic shooting?
golang文件行号探索
GBASE 8s 通过临时表提升排序性能
LeetCode 593 Valid Squares [Math] HERODING's Road to LeetCode
什么是数据安全性?
数组和List互转
How to implement your personal knowledge base?
【AD】【持续更新ing】关于AD设计过程中一些小细节
银河麒麟V10 SP2 x86编译安装 PHP7.4
In 2022, you still can't "low code"?Data science can also play with Low-Code!
Add a logo to the upper left corner of the picture, add time and address to the lower left corner, and wrap the line when the address reaches the specified length
The cornerstone of distributed: reliability - What a tangled web we weave
SwiftUI Apple App Store 发布App的初学者完整指南