返回首页

gbase数据、南大通用产品文档:GBase8a关闭

更新日期:2024年09月11日

语法
DEACTIVE RESOURCE PLAN ON VC ;
示例
DEACTIVE RESOURCE PLAN ON VC vc1;

操作步骤
步骤1:将安装目录下的gcChangeInfo.xml 复制到gcS_vc1.xml 文件,然后去掉待
缩容的节点IP。
修改后的gcS_vc1.xml 文件参考如下:
$cp gcChangeInfo.xml gcS_vc1.xml
$cat gcS_vc1.xml







步骤2:执行创建distribution 的命令。
$ gcadmin distribution gcS_vc1.xml p 1 d 1 vc vc1
gcadmin generate distribution ...
gcadmin generate distribution successful
完成后的集群信息如下:

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
278
$ gcadmin distribution gcS_vc1.xml p 1 d 1 vc vc1
gcadmin generate distribution ...
gcadmin generate distribution successful
$ gcadmin
CLUSTER STATE:
ACTIVE
================================================================
|
GBASE COORDINATOR CLUSTER INFORMATION
|
================================================================
|
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
|
----------------------------------------------------------------
| coordinator4 | 172.168.83.15 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
=============================================
|
GBASE VIRTUAL CLUSTER INFORMATION
|
=============================================
|
VcName
| DistributionId |
comment
|
---------------------------------------------
|
vc1
|
4,5
|
|
---------------------------------------------
|
vc2
|
2
|
|
---------------------------------------------
2 virtual cluster: vc1, vc2
4 coordinator node
0 free data node
$ gcadmin showdistribution vc vc1
Distribution ID: 5 | State: new | Total segment num: 2
Primary Segment Node IP
Segment ID
uplicate Segment node IP
===================================================================
|

ifx_lo_specset_def_open_flags() 函数为智能大对象设置缺省的打开标志。

语法
mint ifx_lo_specset_def_open_flags(LO_spec, flags)

ifx_lo_create_spec_t *LO_spec;

mint flags;
LO_spec
指向在其中设置缺省的打开标志的 LO-specification 结构的指针。
flags
表示智能大对象的缺省的打开标志的 mint 值。

用法
此函数的最常用用法是,
是指定总是通过使用未缓冲的 I/O 来打开智能大对象。
此函
数还可用于为智能大对象提供任何所需要的缺省的打开标志。在后来任何时刻打开该智能
大对象时,都可使用所提供的标志,除非在打开时刻显式地重新了。
返回代码
0
函数成功。
-1
函数不成功。

GBase 8s ESQL/C 编程指南
南大通用数据技术股份有限公司
- 794 -

示例
/* use unbuffered I/O on all opens for this LO */

ret = ifx_lo_specset_def_open_flags(lospec, LO_NOBUFFER);