返回首页

gbase数据、南大通用产品文档:GBase8a删除旧的distribution

更新日期:2024年09月11日

功能说明
确保所有数据rebalance 完成后,可以将旧的distribution 删掉,将被替换节点从虚
拟集群中移除。
操作步骤
步骤1:将旧的distribution(Distribution ID 3)删掉,将被替换节点从虚拟集群中
移除。
$ gcadmin rmdistribution 3 vc vc1
cluster distribution ID [3]
it will be removed now
please ensure this is ok, input [Y,y] or [N,n]: y
select count(*) from gbase.nodedatamap where data_distribution_id=3 result is
not 0
refreshnodedatamap drop 3 success
gcadmin remove distribution [3] success
完成后的集群信息如下:
$ gcadmin
CLUSTER STATE:
ACTIVE
===========================================================
=====
|
GBASE COORDINATOR CLUSTER INFORMATION

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
324
|
===========================================================
=====
|
NodeName
|
IpAddress
| gcware | gcluster | DataState |
----------------------------------------------------------------
| coordinator1 | 172.168.83.11 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
| coordinator2 | 172.168.83.12 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
| coordinator3 | 172.168.83.13 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
=======================================================
|
GBASE VIRTUAL CLUSTER INFORMATION
|
=======================================================
|
VcName
| DistributionId |
comment
|
-------------------------------------------------------
|
vc1
|
4
| comment message vc1 |
-------------------------------------------------------
|
vc2
|
2
| comment message vc2 |
-------------------------------------------------------
2 virtual cluster: vc1, vc2
3 coordinator node
0 free data node
$ gcadmin showdistribution vc vc1
Distribution ID: 4 | State: new | Total segment num: 3
Primary Segment Node IP
Segment ID
Duplicate Segment node IP
===========================================================
=======
|

删除存储过程
使用“删除存储过程”功能,您可以删除您所选择的存储过程。
在“对象资源管理器”中,右键单击数据库节点下的存储过程节点中已经
创建好的存储过程,选择菜单中的“删除”菜单项,如下图所示:

图 7-61 删除存储过程菜单项
选择“删除”菜单项后,管理器会弹出“删除确认”对话框,如下图所
示:

图 7-62 删除存储过程确认对话框
单击“确定”按钮后,管理器会完成删除存储过程操作



GBase 8a MPP Cluster 管理工具手册
南大通用数据技术股份有限公司

- 81 -

Oracle 指定Owner
......................................
22