当前位置:网站首页>金仓数据库KingbaseES中的sys_checksums坏块检测功能
金仓数据库KingbaseES中的sys_checksums坏块检测功能
2022-06-11 10:23:00 【沉舟侧畔千帆过_】
关键字:
KingbaseES ,checksum,坏块检测
1. sys_checksums简介
sys_checksums用于检测kingbase存储在磁盘上的数据坏块情况,也可以用于启动数据校验和以及关闭数据校验和。
开启checksum后,kingbase将数据从shared buffer写到磁盘,此时会计算checksum;从磁盘读取block到shared buffer里,同样会计算block的checksum,对比存在page头的checksum是否一致。在shared buffer里面的block,读取、更新时均不需要计算checksum。
2. sys_checksums实操
2.1)./sys_ctl –D ./data stop停止数据库,检查数据库是否开启checksum
./sys_checksums –c ./data

2.2)启用checksum
./sys_checksums -e ./data

2.3)./sys_ctl -D ./data start启动数据库,ksql连接数据库,创建表

2.4)执行select * from sys_relation_filepath('t1');查询表t1对应的物理文件

2.5)停止数据库
2.6)使用vim -b ./data/base/16078/16396打开物理文件 ,然后命令模式下输入:%!xxd,修改块内容,修改后,命令行模式输入:%!xxd -r 恢复二进制格式,保存退出(下图修改7400为7300)

2.7)使用./sys_checksums -c ./data检测坏块

边栏推荐
- [high concurrency] the interviewer of ant financial asked me about thread pool!!
- Q1营收超预期,满帮为何赢得逆风增长?
- Database design and paradigm explanation
- Reprint: linearlayout+fragment to achieve the lower navigation bar effect
- 图片规则翻页
- Detailed explanation of Lora module wireless transceiver communication technology
- Function and function of wandfluh proportional valve
- Tree topology networking structure of ZigBee module communication protocol
- MySQL comparison
- Ugui mouse click diffusion UI effect
猜你喜欢

What are the functions and functions of the EMG actuator

转载:LinearLayout+Fragment实现下导航栏效果

How much do you know about software compatibility testing? How to select a software compatibility testing organization?

Ugui picture wall

安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”

EMG执行器的作用和功能有哪些

MySQL基础篇常用约束总结上篇

ZigBee模块无线传输星形拓扑组网结构简介

DataGrip 2022,DataGrip 功能

动态渲染数据和轮播图
随机推荐
Mysql--索引
What are the functions and functions of the EMG actuator
電子設備輻射EMC整改案例
MD5 learning
【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode
With determination to forge ahead, JASMINER continues to deepen its brand strength
[machine learning theory] true positive, true negative, false positive, false negative concept
转载:LinearLayout+Fragment实现下导航栏效果
用真金做的电路板——金手指
Introduction to steamvr
Dimension types for different CV tasks
DataGrip 2022,DataGrip 功能
puppeteer入门之 Puppeteer 类
Handwritten code call, apply, bind
手写代码call,apply,bind
DENISON液压泵用什么液压油?有哪些要求
rpc的正确打开方式|读懂Go原生net/rpc包
Habitable planet
[audio and video] Introduction to SEI
What are the differences between Parker pilot solenoid valve and direct acting solenoid valve?