当前位置:网站首页>[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
2022-06-29 03:32:00 【Database master】
10. changeid
This command is used to modify... In the specified engine file AppID、ZoneID、Table_Name、ShardID, The command format is ./tcapsvrmgr changeid -f engfile -A app_id -Z zone_id -T table_name -S shard_id,engfile Represents an engine file .
Example :./tcapsvrmgr changeid -f test_table_1.txh -A 1 -Z 1 -T test -S 2, have access to listmeta Command to see if the changes take effect .
11. deletebykey
This command is used from the running TcaplusDB Delete specified record in , The command format is ./tcapsvrmgr deletebykey configfile,configfile by deletebykey The configuration file for the command .
Example :./tcapsvrmgr deletebykey tcapsvrmgr_deletebykey_cfg.xml
stay tcapsvrmgr_deletebykey_cfg.xml in , It specifies DirServerAddr、PassWord、AppID、ZoneID、Table_Name And what to delete key File path name and other information .
Used to record the record to be deleted key The file needs to follow a fixed format :(1) The first line of the file is each key Name of field , Start from the second line for each record to be deleted key Value of field ;(2) The fields are separated by spaces .
For example, there are two in a data table key Field key1、key2, They are integer and floating point respectively . If you want to delete key1=10 key2=6.8 This record , be key The first line of the file should read “key1 key2”, The second line should read “10 6.8”
deletebykey Command configuration file template and description Expand the source code
12. import
This command is used to import some or all of the records in the engine file into the running TcaplusDB in , The command format is ./tcapsvrmgr import configfile,configfile by import The configuration file for the command .
Example :./tcapsvrmgr import tcapsvrmgr_import_cfg.xml
stay tcapsvrmgr_import_cfg.xml in , It specifies DirServerAddr、PassWord And the engine file to be imported AppID、ZoneID、Table_Name、ShardID Etc ; If only some records in the engine file are imported , You also need to specify the of the records to be imported key File pathname ,key The format requirements of the document are the same as deletebykey The same command .
import Command configuration file template and description ( Import all records ) Expand the source code
import Command configuration file template and description ( Import some records ) Expand the source code
13. getrecord
This command is used to get the specified record from the specified engine file , The command format is ./tcapsvrmgr getrecord configfile,configfile by getrecord The configuration file for the command .
Example :./tcapsvrmgr getrecord tcapsvrmgr_getrecord_cfg.xml
stay tcapsvrmgr_getrecord_cfg.xml in , Specifies the of the engine file used to get records AppID、ZoneID、Table_Name、ShardID And the number of records to be obtained 、 Corresponding key Fields, etc .
getrecord Command configuration file template and description Expand the source code
14. partkeyrestore
This command is used for some key Retreated , About to specify a section in the engine file key Record the... Imported into the running TcaplusDB in , The command format is ./tcapsvrmgr partkeyrestore configfile,configfile by partkeyrestore The configuration file for the command .
Example :./tcapsvrmgr partkeyrestore tcapsvrmgr_partkeyrestore_cfg.xml
stay tcapsvrmgr_partkeyrestore_cfg.xml in , It specifies DirServerAddr、PassWord、 Of the engine file to import AppID、ZoneID、Table_Name、ShardID And the part to be shifted back key Etc . Be careful : the partkey Must be indexed in the database .
partkeyrestore Command configuration file template and description Expand the source code
15. changelocalsequence
This command is used to modify... In the specified engine file CheckPoint Information , The command format is ./tcapsvrmgr changelocalsequence -f engfile -p x, among ,engfile For engine files ,x For the CheckPoint Value .
Example :./tcapsvrmgr changelocalsequence -f test_table_1.txh -p 12, have access to listmeta Command to see if the changes take effect .
16. changesuccsyncsequence
This command is used to modify... In the specified engine file SuccSyncSequence Information , The command format is ./tcapsvrmgr changesuccsyncsequence -f engfile -s x, among ,engfile For engine files ,x For the SuccSyncSequence Value .
Example :./tcapsvrmgr changesuccsyncsequence -f test_table_1.txh -s 91, have access to listmeta Command to see if the changes take effect .
17. overwritesuccsyncseqwithlocalseq
This command uses... In the specified engine file CheckPoint The value of the field overrides SuccSyncSequence Value of field , The command format is ./tcapsvrmgr overwritesuccsyncseqwithlocalseq -f engfile, among ,engfile For engine files .
Example :./tcapsvrmgr overwritesuccsyncseqwithlocalseq -f test_table_1.txh, have access to listmeta Command to see if the changes take effect .
18. checklistindexelement
This command is used to find... In the specified engine file index crash Of key and element crash Of key, So-called index crash, Refer to list In the table index Point to the element Can't find ; So-called element crash, Refers to certain element The corresponding... Cannot be found index.
The command format is ./tcapsvrmgr checklistindexelement engfile index_crash_key_file element_crash_key_file, The specific meanings of the three parameters are as follows :
engfile Indicates what to check list Engine files for tables
index_crash_key_file Used to hold index crash Of key The file of , Text form
element_crash_key_file Used to hold element crash Of key The file of , Text form
Example :./tcapsvrmgr checklistindexelement /txh/AppID_2_ZoneID_3/table_traverser_list_2.txh index_crash.txt element_crash.txt
19. listindexusage
This command is used to query list Index usage of the table , The command format is ./tcapsvrmgr listindexusage engfile, among ,engfile by list Engine files for tables .
Example :./tcapsvrmgr listindexusage table_list_2.txh
For more information, please pay attention to TcaplusDB WeChat official account , In the wind and rain , We've been waiting for you !

TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .
边栏推荐
- seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset
- 2022-2028 global bubble CPAP system industry survey and trend analysis report
- MySQL Varcahr to int
- 87.(cesium篇)cesium热力图(贴地形)
- [dynamic planning] change exchange
- Wechat applet development Basics
- Problem - ADB shellerror: insufficient permissions for device: verify udev rules
- Ugui slider minimum control
- Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
- Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database
猜你喜欢

迅为i.MX8M开发板yocto系统使用Gstarwmr视频转换

FPGA (VIII) RTL code IV (basic circuit design 1)

Counter analysis of the parameter anti content in the backstage of the # yyds dry goods inventory # knife fight shop
![[tcapulusdb knowledge base] Introduction to tcapulusdb data import](/img/8f/3a265c41385a22577200e704ceb6aa.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb data import

FPGA(八)RTL代码之四(基本电路设计1)
![Synchronous real-time data of Jerry's watch [chapter]](/img/6f/719aa14fb376aba45472783886dbff.jpg)
Synchronous real-time data of Jerry's watch [chapter]
![[flutter topic] 66 diagram basic constraints box (I) yyds dry goods inventory](/img/8b/55a43383e1cb6b37231dba980c7b11.jpg)
[flutter topic] 66 diagram basic constraints box (I) yyds dry goods inventory
![Jerry's watch obtains alarm mode settings [chapter]](/img/43/987d864ec6038b10138ce50bcbdf12.jpg)
Jerry's watch obtains alarm mode settings [chapter]
![[test theory] quality analysis ability](/img/4b/d011e16c7b2be52fe12c123214779e.jpg)
[test theory] quality analysis ability

【TcaplusDB知识库】查看tcapdir目录服务器
随机推荐
[leetcode daily question] number of schemes to reconstruct a tree
Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
FPGA (VII) RTL code III (complex circuit design 2)
leetcode:560. 和为 K 的子数组
Synchronous movement state of Jerry's watch [chapter]
Grafana入门教程
Etcd教程 — 第七章 Etcd之事务API
Solid state and memory module purchase
How to keep source code secret in embedded development
Jerry's watch obtains alarm mode settings [chapter]
Want to be an equipment manager? If you meet these three conditions, you can
Same tree [from part to whole]
不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
问题——adb shellerror: insufficient permissions for device: verify udev rules.
Farrowtech's wireless sensor adopts the nanobeacon Bluetooth beacon technology of orange group Microelectronics
Modstart rewrite rule
【Ubuntu】【Mysql】ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
Grafana Getting Started tutorial
88.(cesium篇)cesium聚合图
SSH无密码登陆