diff --git a/src/.vuepress/sidebar_timecho/V1.3.x/en.ts b/src/.vuepress/sidebar_timecho/V1.3.x/en.ts index 44de79af9..1034998ac 100644 --- a/src/.vuepress/sidebar_timecho/V1.3.x/en.ts +++ b/src/.vuepress/sidebar_timecho/V1.3.x/en.ts @@ -169,7 +169,7 @@ export const enSidebar = { children: [ { text: 'Query Performance Analysis', link: 'Query-Performance-Analysis' }, { text: 'Load Balance', link: 'Load-Balance' }, - { text: 'Maintenance statement', link: 'Maintenance-commands_timecho' }, + { text: 'Maintenance statement', link: 'Maintenance-commands' }, ], }, ], diff --git a/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts b/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts index 8b725e949..6ef9d8221 100644 --- a/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts +++ b/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts @@ -151,7 +151,7 @@ export const zhSidebar = { children: [ { text: '查询性能分析', link: 'Query-Performance-Analysis' }, { text: '负载均衡', link: 'Load-Balance' }, - { text: '运维语句', link: 'Maintenance-statement_timecho' }, + { text: '运维语句', link: 'Maintenance-statement' }, ], }, ], diff --git a/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md b/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md index 8b975d660..7b27761cc 100644 --- a/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md +++ b/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md @@ -255,6 +255,66 @@ IoTDB> SHOW AVAILABLE URLS +----------+-------+ ``` +### 1.10 View Service Information + +> Supported since V2.0.8.2 + +**Syntax**: + +```sql +showServicesStatement + : SHOW SERVICES + ; +``` + +**Example**: + +```sql +IoTDB> SHOW SERVICES +IoTDB> SHOW SERVICES ON 1 +``` + +**Result**: + +```sql ++--------------+-------------+---------+ +| Service Name | DataNode ID | State | ++--------------+-------------+---------+ +| MQTT | 1 | STOPPED | +| REST | 1 | RUNNING | ++--------------+-------------+---------+ +``` + +### 1.11 View Cluster Activation Status + +**Syntax**: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +**Result**: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` ## 2. Status Configuration @@ -373,32 +433,6 @@ localOrClusterMode IoTDB> FLUSH test_db TRUE ON LOCAL; ``` -### 3.2 Clear DataNode Cache - -**Syntax:** - -```SQL -clearCacheStatement - : CLEAR clearCacheOptions? CACHE localOrClusterMode? - ; - -clearCacheOptions - : ATTRIBUTE - | QUERY - | ALL - ; - -localOrClusterMode - : (ON (LOCAL | CLUSTER)) - ; -``` - -**Example:** - -```SQL -IoTDB> CLEAR ALL CACHE ON LOCAL; -``` - ## 4. Data Repair ### 4.1 Start Background TsFile Repair diff --git a/src/UserGuide/Master/Table/User-Manual/Maintenance-commands_timecho.md b/src/UserGuide/Master/Table/User-Manual/Maintenance-commands_timecho.md index e82d0885e..bbe7d33d5 100644 --- a/src/UserGuide/Master/Table/User-Manual/Maintenance-commands_timecho.md +++ b/src/UserGuide/Master/Table/User-Manual/Maintenance-commands_timecho.md @@ -396,12 +396,46 @@ Execution result: +--------------+-------------+---------+ ``` +### 1.12 View Cluster Activation Status + +**Description**:Returns the activation status of the current cluster. + +#### Syntax: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### Examples: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +Execution result: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ### 1.13 View Node Configuration + **Description**: By default, returns the effective configuration items from the configuration file of the specified node (identified by `node_id`). If `node_id` is not specified, returns the configuration of the directly connected DataNode. Adding the `all` parameter returns all configuration items (the `value` of unconfigured items is `null`). Adding the `with desc` parameter returns configuration items with descriptions. -> Supported since version 2.0.9 +> Supported since version 2.0.9.1 #### Syntax: ```SQL @@ -419,6 +453,7 @@ showConfigurationStatement | description | string | Configuration description (optional) | #### Examples: + 1. View configuration of the directly connected DataNode ```SQL SHOW CONFIGURATION; diff --git a/src/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md b/src/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md index 0844f03d1..04818825f 100644 --- a/src/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md +++ b/src/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md @@ -842,7 +842,7 @@ select * into ::(backup_${4}) from root.sg.** align by device; select s1, s2 into root.sg_copy.d1(t1, t2), aligned root.sg_copy.d2(t1, t2) from root.sg.d1, root.sg.d2 align by device; ``` -## 7. Maintennance +## 7. Maintenance Generate the corresponding query plan: ```sql explain select s1,s2 from root.sg.d1; @@ -851,6 +851,9 @@ Execute the corresponding SQL, analyze the execution and output: ```sql explain analyze select s1,s2 from root.sg.d1 order by s1; ``` + +For more Maintenance commands, please refer to[Maintenance commands](../User-Manual/Maintenance-commands_timecho.md) + ## 8. OPERATOR For more details, see document [Operator-and-Expression](./Operator-and-Expression.md). diff --git a/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands_timecho.md b/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands_timecho.md index 268ff96c2..b87e3a854 100644 --- a/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands_timecho.md +++ b/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands_timecho.md @@ -302,12 +302,46 @@ Execution result: +--------------+-------------+---------+ ``` -### 1.9 View Disk Space Usage +### 1.9 View Cluster Activation Status + +**Description**:Returns the activation status of the current cluster. + +#### Syntax: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### Examples: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +Execution result: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + +### 1.10 View Disk Space Usage + **Description**: Returns the disk space usage of the specified `pattern`, including the size of ChunkGroups and the size of Metadata. **Note**: Statistics are based on the actual size of data in TsFiles; therefore, deletions made via `mods` are not considered. -> Supported since version 2.0.9 +> Supported since version 2.0.9.1 #### Syntax: ```sql @@ -325,6 +359,7 @@ pathPattern **Explanation**: The `pattern` is used to match devices, must start with `ROOT`, and intermediate nodes in the path support `*` or `**`. #### Result Set + | Column Name | Column Type | Description | |---------------|-------------|----------------------------------| | Database | string | Database name | diff --git a/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md b/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md index 8b975d660..7b27761cc 100644 --- a/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md +++ b/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md @@ -255,6 +255,66 @@ IoTDB> SHOW AVAILABLE URLS +----------+-------+ ``` +### 1.10 View Service Information + +> Supported since V2.0.8.2 + +**Syntax**: + +```sql +showServicesStatement + : SHOW SERVICES + ; +``` + +**Example**: + +```sql +IoTDB> SHOW SERVICES +IoTDB> SHOW SERVICES ON 1 +``` + +**Result**: + +```sql ++--------------+-------------+---------+ +| Service Name | DataNode ID | State | ++--------------+-------------+---------+ +| MQTT | 1 | STOPPED | +| REST | 1 | RUNNING | ++--------------+-------------+---------+ +``` + +### 1.11 View Cluster Activation Status + +**Syntax**: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +**Result**: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` ## 2. Status Configuration @@ -373,32 +433,6 @@ localOrClusterMode IoTDB> FLUSH test_db TRUE ON LOCAL; ``` -### 3.2 Clear DataNode Cache - -**Syntax:** - -```SQL -clearCacheStatement - : CLEAR clearCacheOptions? CACHE localOrClusterMode? - ; - -clearCacheOptions - : ATTRIBUTE - | QUERY - | ALL - ; - -localOrClusterMode - : (ON (LOCAL | CLUSTER)) - ; -``` - -**Example:** - -```SQL -IoTDB> CLEAR ALL CACHE ON LOCAL; -``` - ## 4. Data Repair ### 4.1 Start Background TsFile Repair diff --git a/src/UserGuide/latest-Table/User-Manual/Maintenance-commands_timecho.md b/src/UserGuide/latest-Table/User-Manual/Maintenance-commands_timecho.md index e82d0885e..c91ec35f8 100644 --- a/src/UserGuide/latest-Table/User-Manual/Maintenance-commands_timecho.md +++ b/src/UserGuide/latest-Table/User-Manual/Maintenance-commands_timecho.md @@ -396,12 +396,45 @@ Execution result: +--------------+-------------+---------+ ``` +### 1.12 View Cluster Activation Status + +**Description**:Returns the activation status of the current cluster. + +#### Syntax: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### Examples: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +Execution result: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ### 1.13 View Node Configuration **Description**: By default, returns the effective configuration items from the configuration file of the specified node (identified by `node_id`). If `node_id` is not specified, returns the configuration of the directly connected DataNode. Adding the `all` parameter returns all configuration items (the `value` of unconfigured items is `null`). Adding the `with desc` parameter returns configuration items with descriptions. -> Supported since version 2.0.9 +> Supported since version 2.0.9.1 #### Syntax: ```SQL diff --git a/src/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md b/src/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md index 0844f03d1..04818825f 100644 --- a/src/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md +++ b/src/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md @@ -842,7 +842,7 @@ select * into ::(backup_${4}) from root.sg.** align by device; select s1, s2 into root.sg_copy.d1(t1, t2), aligned root.sg_copy.d2(t1, t2) from root.sg.d1, root.sg.d2 align by device; ``` -## 7. Maintennance +## 7. Maintenance Generate the corresponding query plan: ```sql explain select s1,s2 from root.sg.d1; @@ -851,6 +851,9 @@ Execute the corresponding SQL, analyze the execution and output: ```sql explain analyze select s1,s2 from root.sg.d1 order by s1; ``` + +For more Maintenance commands, please refer to[Maintenance commands](../User-Manual/Maintenance-commands_timecho.md) + ## 8. OPERATOR For more details, see document [Operator-and-Expression](./Operator-and-Expression.md). diff --git a/src/UserGuide/latest/User-Manual/Maintenance-commands_timecho.md b/src/UserGuide/latest/User-Manual/Maintenance-commands_timecho.md index 268ff96c2..a60cb2534 100644 --- a/src/UserGuide/latest/User-Manual/Maintenance-commands_timecho.md +++ b/src/UserGuide/latest/User-Manual/Maintenance-commands_timecho.md @@ -302,12 +302,46 @@ Execution result: +--------------+-------------+---------+ ``` -### 1.9 View Disk Space Usage + +### 1.9 View Cluster Activation Status + +**Description**:Returns the activation status of the current cluster. + +#### Syntax: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### Examples: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +Execution result: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + +### 1.10 View Disk Space Usage **Description**: Returns the disk space usage of the specified `pattern`, including the size of ChunkGroups and the size of Metadata. **Note**: Statistics are based on the actual size of data in TsFiles; therefore, deletions made via `mods` are not considered. -> Supported since version 2.0.9 +> Supported since version 2.0.9.1 #### Syntax: ```sql diff --git a/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md b/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md index 4793ddd1f..cd2206af9 100644 --- a/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md +++ b/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md @@ -196,9 +196,7 @@ IoTDB> SHOW CURRENT_TIMESTAMP ### 1.8 查看分区信息 -**含义**:返回当前集群的分区信息。 - -#### 语法: +**语法:** ```SQL showRegionsStatement @@ -206,15 +204,10 @@ showRegionsStatement ; ``` -#### 示例: +**示例:** ```SQL IoTDB> SHOW REGIONS -``` - -执行结果如下: - -```SQL +--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ |RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| +--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ @@ -226,11 +219,9 @@ IoTDB> SHOW REGIONS ### 1.9 查看可用节点 -**含义**:返回当前集群所有可用的 DataNode 的 RPC 地址和端口。注意:这里对于“可用”的定义为:处于非 REMOVING 状态的 DN 节点。 - > V2.0.8 起支持该功能 -#### 语法: +**语法:** ```SQL showAvailableUrlsStatement @@ -238,15 +229,10 @@ showAvailableUrlsStatement ; ``` -#### 示例: +**示例:** ```SQL IoTDB> SHOW AVAILABLE URLS -``` - -执行结果如下: - -```SQL +----------+-------+ |RpcAddress|RpcPort| +----------+-------+ @@ -254,6 +240,57 @@ IoTDB> SHOW AVAILABLE URLS +----------+-------+ ``` +### 1.10 查看服务信息 + +> V2.0.8.2 起支持该功能 + +**语法:** + +```SQL +showServicesStatement + : SHOW SERVICES + ; +``` + +**示例:** + +```SQL +IoTDB> SHOW SERVICES +IoTDB> SHOW SERVICES ON 1 ++------------+-----------+-------+ +|service_name|datanode_id| state| ++------------+-----------+-------+ +| MQTT| 1|STOPPED| +| REST| 1|RUNNING| ++------------+-----------+-------+ +``` + +### 1.11 查看集群激活状态 + +**语法:** + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +**示例:** + +```SQL +IoTDB> SHOW ACTIVATION ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ## 2. 状态设置 @@ -372,31 +409,6 @@ localOrClusterMode IoTDB> FLUSH test_db TRUE ON LOCAL; ``` -### 3.2 清除 DataNode 上的缓存 - -**语法:** - -```SQL -clearCacheStatement - : CLEAR clearCacheOptions? CACHE localOrClusterMode? - ; - -clearCacheOptions - : ATTRIBUTE - | QUERY - | ALL - ; - -localOrClusterMode - : (ON (LOCAL | CLUSTER)) - ; -``` - -**示例:** - -```SQL -IoTDB> CLEAR ALL CACHE ON LOCAL; -``` ## 4. 数据修复 diff --git a/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement_timecho.md b/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement_timecho.md index 2535ca945..96a987133 100644 --- a/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement_timecho.md +++ b/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement_timecho.md @@ -398,11 +398,45 @@ IoTDB> SHOW SERVICES ON 1 +------------+-----------+-------+ ``` + +### 1.12 查看集群激活状态 + +**含义**:返回当前集群的激活状态。 + +#### 语法: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +执行结果如下: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ### 1.13 查看节点配置信息 **含义**:默认返回指定节点(通过 `node_id` 指定)的配置文件中已生效的配置项;若未指定 `node_id`,则返回客户端直连的 DataNode 配置。 添加 `all` 参数返回所有配置项(未配置项的 `value` 为 `null`);添加 `with desc` 参数返回配置项含描述信息。 -> V2.0.9 起支持该功能 +> V2.0.9.1 起支持该功能 #### 语法: diff --git a/src/zh/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md b/src/zh/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md index 8a7cfb0d3..0c70a2dba 100644 --- a/src/zh/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md +++ b/src/zh/UserGuide/Master/Tree/SQL-Manual/SQL-Manual_timecho.md @@ -867,6 +867,9 @@ explain select s1,s2 from root.sg.d1; ```sql explain analyze select s1,s2 from root.sg.d1 order by s1; ``` + +更多运维语句可查看[运维语句](../User-Manual/Maintenance-statement_timecho.md) + ## 6. 运算符 更多见文档[Operator-and-Expression](./Operator-and-Expression.md) diff --git a/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement_timecho.md b/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement_timecho.md index 5171b33c7..a809b9a69 100644 --- a/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement_timecho.md +++ b/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement_timecho.md @@ -307,7 +307,41 @@ IoTDB> SHOW SERVICES ON 1 ``` -### 1.9 查看磁盘空间占用情况 +### 1.9 查看集群激活状态 + +**含义**:返回当前集群的激活状态。 + +#### 语法: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +执行结果如下: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + + +### 1.10 查看磁盘空间占用情况 含义:返回指定 pattern 的磁盘空间占用情况,包括 ChunkGroup 的大小和 Metadata 大小。 @@ -358,7 +392,6 @@ SHOW DISK_USAGE FROM root.ln.**; ``` - ## 2. 状态设置 ### 2.1 设置连接的模型 diff --git a/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md b/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md index 4793ddd1f..cd2206af9 100644 --- a/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md +++ b/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements_timecho.md @@ -196,9 +196,7 @@ IoTDB> SHOW CURRENT_TIMESTAMP ### 1.8 查看分区信息 -**含义**:返回当前集群的分区信息。 - -#### 语法: +**语法:** ```SQL showRegionsStatement @@ -206,15 +204,10 @@ showRegionsStatement ; ``` -#### 示例: +**示例:** ```SQL IoTDB> SHOW REGIONS -``` - -执行结果如下: - -```SQL +--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ |RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| +--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ @@ -226,11 +219,9 @@ IoTDB> SHOW REGIONS ### 1.9 查看可用节点 -**含义**:返回当前集群所有可用的 DataNode 的 RPC 地址和端口。注意:这里对于“可用”的定义为:处于非 REMOVING 状态的 DN 节点。 - > V2.0.8 起支持该功能 -#### 语法: +**语法:** ```SQL showAvailableUrlsStatement @@ -238,15 +229,10 @@ showAvailableUrlsStatement ; ``` -#### 示例: +**示例:** ```SQL IoTDB> SHOW AVAILABLE URLS -``` - -执行结果如下: - -```SQL +----------+-------+ |RpcAddress|RpcPort| +----------+-------+ @@ -254,6 +240,57 @@ IoTDB> SHOW AVAILABLE URLS +----------+-------+ ``` +### 1.10 查看服务信息 + +> V2.0.8.2 起支持该功能 + +**语法:** + +```SQL +showServicesStatement + : SHOW SERVICES + ; +``` + +**示例:** + +```SQL +IoTDB> SHOW SERVICES +IoTDB> SHOW SERVICES ON 1 ++------------+-----------+-------+ +|service_name|datanode_id| state| ++------------+-----------+-------+ +| MQTT| 1|STOPPED| +| REST| 1|RUNNING| ++------------+-----------+-------+ +``` + +### 1.11 查看集群激活状态 + +**语法:** + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +**示例:** + +```SQL +IoTDB> SHOW ACTIVATION ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ## 2. 状态设置 @@ -372,31 +409,6 @@ localOrClusterMode IoTDB> FLUSH test_db TRUE ON LOCAL; ``` -### 3.2 清除 DataNode 上的缓存 - -**语法:** - -```SQL -clearCacheStatement - : CLEAR clearCacheOptions? CACHE localOrClusterMode? - ; - -clearCacheOptions - : ATTRIBUTE - | QUERY - | ALL - ; - -localOrClusterMode - : (ON (LOCAL | CLUSTER)) - ; -``` - -**示例:** - -```SQL -IoTDB> CLEAR ALL CACHE ON LOCAL; -``` ## 4. 数据修复 diff --git a/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement_timecho.md b/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement_timecho.md index 2535ca945..f1d6536d0 100644 --- a/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement_timecho.md +++ b/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement_timecho.md @@ -398,11 +398,45 @@ IoTDB> SHOW SERVICES ON 1 +------------+-----------+-------+ ``` + +### 1.12 查看集群激活状态 + +**含义**:返回当前集群的激活状态。 + +#### 语法: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +执行结果如下: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + ### 1.13 查看节点配置信息 **含义**:默认返回指定节点(通过 `node_id` 指定)的配置文件中已生效的配置项;若未指定 `node_id`,则返回客户端直连的 DataNode 配置。 添加 `all` 参数返回所有配置项(未配置项的 `value` 为 `null`);添加 `with desc` 参数返回配置项含描述信息。 -> V2.0.9 起支持该功能 +> V2.0.9.1 起支持该功能 #### 语法: @@ -591,7 +625,6 @@ It costs 0.010s ``` - ## 2. 状态设置 ### 2.1 设置连接的模型 diff --git a/src/zh/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md b/src/zh/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md index 8a7cfb0d3..0c70a2dba 100644 --- a/src/zh/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md +++ b/src/zh/UserGuide/latest/SQL-Manual/SQL-Manual_timecho.md @@ -867,6 +867,9 @@ explain select s1,s2 from root.sg.d1; ```sql explain analyze select s1,s2 from root.sg.d1 order by s1; ``` + +更多运维语句可查看[运维语句](../User-Manual/Maintenance-statement_timecho.md) + ## 6. 运算符 更多见文档[Operator-and-Expression](./Operator-and-Expression.md) diff --git a/src/zh/UserGuide/latest/User-Manual/Maintenance-statement_timecho.md b/src/zh/UserGuide/latest/User-Manual/Maintenance-statement_timecho.md index 5171b33c7..966295629 100644 --- a/src/zh/UserGuide/latest/User-Manual/Maintenance-statement_timecho.md +++ b/src/zh/UserGuide/latest/User-Manual/Maintenance-statement_timecho.md @@ -306,14 +306,47 @@ IoTDB> SHOW SERVICES ON 1 +------------+-----------+-------+ ``` +### 1.9 查看集群激活状态 -### 1.9 查看磁盘空间占用情况 +**含义**:返回当前集群的激活状态。 + +#### 语法: + +```SQL +showActivationStatement + : SHOW ACTIVATION + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW ACTIVATION +``` + +执行结果如下: + +```SQL ++---------------+---------+-----------------------------+ +| LicenseInfo| Usage| Limit| ++---------------+---------+-----------------------------+ +| Status|ACTIVATED| -| +| ExpiredTime| -|2026-04-30T00:00:00.000+08:00| +| DataNodeLimit| 1| Unlimited| +| CpuLimit| 16| Unlimited| +| DeviceLimit| 30| Unlimited| +|TimeSeriesLimit| 72| 1,000,000,000| ++---------------+---------+-----------------------------+ +``` + + +### 1.10 查看磁盘空间占用情况 含义:返回指定 pattern 的磁盘空间占用情况,包括 ChunkGroup 的大小和 Metadata 大小。 注意:统计基于 TsFile 中数据的真实大小,因此不会考虑 mods 删除的情况。 -> V2.0.9 起支持该功能 +> V2.0.9.1 起支持该功能 #### 语法: @@ -358,7 +391,6 @@ SHOW DISK_USAGE FROM root.ln.**; ``` - ## 2. 状态设置 ### 2.1 设置连接的模型