当前位置:网站首页>Sys in kingbasees_ Checksums bad block detection function
Sys in kingbasees_ Checksums bad block detection function
2022-06-11 10:25:00 【Thousands of sails pass by the side of the sunken boat_】
keyword :
KingbaseES ,checksum, Bad block detection
1. sys_checksums brief introduction
sys_checksums Used to detect kingbase Bad block condition of data stored on disk , It can also be used to start data checksum and close data checksum .
Turn on checksum after ,kingbase Take data from shared buffer Write to disk , The checksum; Read from disk block To shared buffer in , It will also be calculated block Of checksum, Contrast exists page The head of the checksum Is it consistent . stay shared buffer Inside block, Read 、 There is no need to calculate when updating checksum.
2. sys_checksums Practice
2.1)./sys_ctl –D ./data stop Stop database , Check whether the database is enabled checksum
./sys_checksums –c ./data

2.2) Enable checksum
./sys_checksums -e ./data

2.3)./sys_ctl -D ./data start Start database ,ksql Connect to database , Create table

2.4) perform select * from sys_relation_filepath('t1'); Query table t1 Corresponding physical file

2.5) Stop database
2.6) Use vim -b ./data/base/16078/16396 Open physical file , Then enter... In command mode :%!xxd, Modify block content , After modification , Command line mode input :%!xxd -r Restore binary format , Save and exit ( The following figure is modified 7400 by 7300)

2.7) Use ./sys_checksums -c ./data Detect bad block

边栏推荐
- Handwritten code call, apply, bind
- Explain the physical layer consistency test of 2.5g/5g/10g Base-T Ethernet interface in detail!
- Browser class for getting started with puppeter
- 【机器学习理论】True Positive, True Negative, False Positive, False Negative概念
- Common techniques for handling dates
- 面试复习手写题--函数截流与抖动
- MySQL comparison
- How much do you know about software compatibility testing? How to select a software compatibility testing organization?
- MySQL基础篇常用约束总结上篇
- Wechat applet ordering system with source code
猜你喜欢

【机器学习理论】True Positive, True Negative, False Positive, False Negative概念

Mysql--事务

选择DC-DC开关电源控制器的实战过程

Wuenda machine learning course - week 7

Xilinx pin constraint file xdc

iPhone 15 被迫用上 Type-C 接口

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

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

微信小程序之点餐系统附源码

Tiktok encounters cultural conflict in the UK, and many employees leave in a short time
随机推荐
用真金做的电路板——金手指
ZigBee模块通信协议的树形拓扑组网结构
Pyramidtnt: TNT with characteristic pyramid structure
Beginning simple blog emlog theme template V3
MySQL permission management and backup
Cisp-pte XSS Foundation
【K-Means】K-Means学习实例
NGUI,背包拖拽,以及随机克隆图片知识点
Review handwritten questions in interview -- function interception and jitter
MD5 learning
Correct opening method of RPC | understand go native net/rpc package
本人书签常存的地址
安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”
What hydraulic oil is used for Denison hydraulic pump? What are the requirements
Finite cyclic group
ugui图片墙
Start jar
puppeteer入门之 Puppeteer 类
【MYSQL】存储过程的使用
Cas de rectification du CEM rayonné par des équipements électroniques