返回首页

gbase数据、南大通用产品文档:GBase8s交互式 SQL

更新日期:2024年09月11日

要实施本书中的示例以尝试 SQL 和数据库设计,您需要一个允许您以交互方式执行 SQL
语句的程序。DB-Access 就是一个这样的程序。它帮助您编写 SQL 语句,然后将 SQL 语
句传递至数据库服务器以供执行,并向您显示结果。

功能说明
执行rebalance instance 命令,将数据重分布到使用freenode 新建的distribution 上。

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
308
注意

本次数据重分布将进行实际数据的重分布;

重分布的所需时间需要根据数据量、系统CPU、磁盘、网络等综合情况进
行评估。
操作步骤
步骤1:执行rebalance instance 命令,将数据重分布到新建的distribution
(Distribution=4)上。
$ gccli
GBase client 9.5.3.17.117651. Copyright (c) 2004-2020, GBase.
All Rights
Reserved.
gbase> use vc vc1;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)
gbase> rebalance instance;
Query OK, 3 rows affected (Elapsed: 00:00:01.20)
gbase> select * from gclusterdb.rebalancing_status;
+------------+---------+------------+----------+----------------------------+-------------------
---------+-----------+------------+----------+---------------+-----------------+
| index_name | db_name | table_name | tmptable | start_time
| end_time
| status
| percentage | priority | host
| distribution_id |
+------------+---------+------------+----------+----------------------------+-------------------
---------+-----------+------------+----------+---------------+-----------------+
| demo.t
| demo
| t
|
| 2020-07-29 18:31:39.332
000 | 2020-07-29 18:31:41.392000 | COMPLETED |
100 |
5
| 172.168.83.11 |
4 |
| demo.ttt
| demo
| ttt
|
| 2020-07-29 18:31:39.33600
0 | 2020-07-29 18:31:41.389000 | COMPLETED |
100 |
5 |

GBA-01BR-0085
错误码
错误标识
错误显示信息
GBA-01BR-0085

recover db %s tables Error
错误出现原因
恢复数据库中的表失败
分析与建议
查看具体错误码或日志,进一步定位错误