当前位置:网站首页>Kingbasees database administrator's Guide -- 11 manage data files and temporary files
Kingbasees database administrator's Guide -- 11 manage data files and temporary files
2022-07-26 23:13:00 【Thousands of sails passed by the side of the sunken boat_】
stay KingbaseES in , Creation of data file 、 Naming and deletion are managed internally by the database , These operations are transparent to users . However, you can still manage data files and temporary files according to the following suggestions .
Be careful
Temporary file is a special data file , Data used to store temporary relationships . The tablespace to which the temporary file belongs is determined by the parameter temp_tablespaces control .
A guide to managing data files for your reference , Contains some suggestions and precautions for managing data files .
11.1. Guidelines for the management of data files
Suggestions and guidelines for managing data files for your reference .
Data files are physical files on a series of file systems , Used to store logical data in the database . stay KingbaseES Data files in do not need to be explicitly created , Instead, it is automatically created and maintained with the operation of objects such as tables and indexes .
The location of the data file depends on the tablespace it belongs to . By specifying the appropriate table space for each table, you can choose the appropriate physical location for the data file , Make rational use of hardware resources .
Data files and redo log files should not be stored on the same disk drive . If the data file and redo log file are on the same disk drive , When the disk drive fails , We will not be able to recover to the correct data through log redo .
Parent theme : Manage data files and temporary files
11.1.1. About data files
A data file is a physical file that stores logical data in a database .KingbaseES For each database object , As shown in the table 、 Index or view , Generate at least one data file to store the data in it . For ordinary relationships , These files will be in the form of tables or indexes filenode Name No . For temporary relationships , The form of the file name is tBBB_FFF, among BBB Is the background of the background session that created the file ID,FFF Is the file node number . In addition, the data in the relationship exceeds 1GB after , The relationship will be divided into 1G The size of the segment , Each segment is a separate data file , The file name of the first segment is the same as the file node ; The following paragraph is named filenode.1、filenode.2 wait .
Please refer to : Storage structure
Parent theme : Guidelines for the management of data files
11.1.2. Choose the appropriate file location
The location of the data file depends on the tablespace it belongs to . For ordinary relationships , The data file will be stored in the table space to which the relationship belongs . For temporary relationships , Temporary files will be stored in temp_tablespaces In the specified table space . By specifying the appropriate table space for each table, you can choose the appropriate physical location for the data file , Make rational use of hardware resources . for example , If there are multiple disk drives available for storing data , Different table spaces are created on each disk drive , Please consider putting the data files that may be accessed in conflict on different disks , So when the user executes the query , Two disk drives can work at the same time , Retrieve data at the same time .
Parent theme : Guidelines for the management of data files
11.1.3. Store data files and redo log files separately
Data files and redo log files should not be stored on the same disk drive . If the data file and redo log file are on the same disk drive , When the disk drive fails , We will not be able to recover to the correct data through log redo , It can only be restored by backing up files . If our redo log file has multiple copies , Then the probability of losing all copies is very low , In this case, we can put the redo log file and data file on the same disk drive .
Parent theme : Guidelines for the management of data files
边栏推荐
- Customer case | student education relies on observation cloud to create a new ecosystem of observable Smart Education
- P5469 [NOI2019] 机器人(拉格朗日插值、区间dp)
- Page file system based on C language
- [hcip] OSPF relationship establishment
- Day07 MySql知识点再总结与多表查询
- New thrust of Moore's law, detailed explanation of Intel Advanced Packaging Technology!
- 测试开发是开发吗?
- [hcip] OSPF route calculation
- HCIA-R&S自用笔记(21)STP技术背景、STP基础和数据包结构、STP选举规则及案例
- 【MySQL】CentOS 7.9安装、使用MySQL-5.7.39二进制版
猜你喜欢

面试:你印象最深的BUG,举个例子

kalibr标定realsenseD435i --多相机标定

Arduino experiment I: two color lamp experiment

程序员成长第二十九篇:如何激励员工?

ESMFold: AlphaFold2之后蛋白质结构预测的新突破

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

Apifox--比 Postman 还好用的 API 测试工具

华裔科学家Ashe教授对涉嫌造假的Nature论文的正面回应

Cheaper than seals, with a large space for shape explosion. Is there really no match for 200000 or so? Chang'an's new "King fried" is cost-effective

gateway基本使用
随机推荐
New employees of black maredge takeout
Is test development development development?
Hcia-r & s self use notes (18) campus network architecture foundation, switch working principle, VLAN principle
中兴通讯:5G基站在全球发货已超过5万个!
由若干QWidget实现日历文档
Counter attack dark horse: devdbops training, give you the best courses!
What if redis memory is full? This is the right way to deal with it
Xu Li, CEO of Shangtang Technology: the company's valuation has exceeded $7billion, so we are not in a hurry to go public
Reinforcement learning weekly 55: lb-sgd, msp-drl & robust reinforcement learning against
沟通中经常用到的几个库存术语
New thrust of Moore's law, detailed explanation of Intel Advanced Packaging Technology!
每周招聘|PostgreSQL数据库研发工程师,年薪60+,名企高薪,挑战自我!
Esmfold: a new breakthrough in protein structure prediction after alphafold2
面试:你印象最深的BUG,举个例子
【HCIP】OSPF 关系建立
SQL multi table query exercise
Arduino experiment I: two color lamp experiment
【MySQL】CentOS 7.9安装、使用MySQL-5.7.39二进制版
Cloud native microservices Chapter 1 server environment description
How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged