返回首页

gbase数据、南大通用产品文档:GBase8a创建新的distribution

更新日期:2024年09月11日

操作步骤

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
236
步骤1:修改安装目录下的gcChangeInfo.xml 文件,增加待扩容的节点IP,即将扩
容后的所有节点IP 都写入gcChangeInfo.xml 文件。
修改后的gcChangeInfo.xml 文件参考如下:
$ cat gcChangeInfo.xml








步骤2:执行创建distribution 的命令。
$ gcadmin distribution gcChangeInfo.xml p 1 d 1 db_user user_name db_pwd password vc vc1
gcadmin generate distribution ...
copy system table to 172.168.83.15
gcadmin generate distribution successful
完成后的集群信息如下:
$ gcadmin showdistribution vc vc1
Distribution ID: 3 | State: new | Total segment num: 3
Primary Segment Node IP
Segment ID
Duplicate Segment node IP
=========================================================================
|

ifx_lo_specset_extsz() 函数为智能大对象设置分配 extent 大小。

语法
mint ifx_lo_specset_extsz(LO_spec, extsz)
ifx_lo_create_spec_t *LO_spec;
mint extsz;
LO_spec
指向将 extent 大小保存在其中的 LO-specification 结构的指针。
extsz
代表智能大对象的分配 extent 的大小的整数值。

用法
当数据库服务器写超出当前 extent 的末尾时,extsz 值指定要为智能大
对象分配的分配 extent 的大小。对于 extent 要为多大,该值覆盖 GBase 8s
生成的估计。要获取关于分配 extent 的更多信息,请参阅 表 1。

当您创建智能大对象时,如果未指定 extsz 值,则 GBase 8s 尝试基于对该智能大对
象的过去的操作,以及从存储特征的继承层级取得的其他存储特征(诸如最大字节),来
优化该 extent 大小。

请不要更改此系统值,
除非您知道该智能大对象的分配 extent 大小。
仅遇到严重的存
储分片的应用程序应总是设置分配 extent 大小。对于这样的应用程序,请确保您知道该智
能大对象要扩展的确切字节数。

返回代码
0
函数成功。
-1
函数不成功。

Contains 方法 (String)
获得一个值,指明是否有指定参数的GBaseParameter 存在于集合中。

语法
[Visual Basic]
Public Overrides Function Contains ( _

parameterName As String _
) As Boolean



GBase 8a 程序员手册ADO.NET 篇
南大通用数据技术股份有限公司

- 309 -
[C#]
public override bool Contains(

string parameterName
)

参数
1) name :要找得GBaseParameter 对象的名字 。

返回值
如果集合包含 GBaseParameter 对象为真否则为假。

实现
IDataParameterCollection.Contains(String)