返回首页

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

更新日期:2024年09月11日

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

Recover Table MetaFile Error
错误出现原因
恢复表元数据文件失败
分析与建议
1,检查表备份数据中元数据的正确性
2,检查文件系统权限及状态

SQLGetConnectOption 返回当前连接选项的设置。
下表描述了 SQLGetConnectOption 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08003
-11017
Connection not open
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1010
-11067
Function-sequence error
S1092
-11073
Option type out of range
S1C00
-11092
Driver not capable

操作场景
多VC 模式,需要在每个VC 下创建distribution。
操作步骤
步骤1
编辑vc1 的创建distribution 的配置文件gcChangeInfo_vc1.xml。在指定VC 中创建
distribution 时,创建distribution 的配置文件gcChangeInfo_vc1.xml 中的node IP 与
创建VC 的配置文件中的node IP 一致。
示例:编辑在vc1 上创建distribution 的配置文件gcChangeInfo_vc1.xml 内容如下:
$cd gcinstall
$cp gcChangeInfo.xml gcChangeInfo_vc1.xml
$vi /opt/gcinstall/gcChangeInfo_vc1.xml











步骤2
在安装目录下,执行创建distribution 命令。
gcadmin distribution

[d num] [pattern 1|2]
表3- 10 参数说明
参数名称


gcChangeInfo.xml
指定生成distribution 规则的配置文件。
p number
每个数据节点存放的分片数量,最小值为1。
d number
每个分片的备份数量,取值为0,1 或2。若不输入参数d,
默认值为1。

GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
81
参数名称


pattern number
生成distribution 所使用模式,
取值为1 或2,pattern 1 为负载
均衡模式,
pattern 2 为高可用模式。
若不输入参数pattern,

认使用pattern 1 生成distribution。
vc vcname
要创建distribution 的vc 名称。
说明

gcadmin distribution 是gcadmin 的子命令,详细说明请参考4.3.1 gcadmin
章节。
执行结果如下:
$cd /opt/gcinstall
$ gcadmin distribution gcChangeInfo_vc1.xml p 1 d 1 vc vc1
gcadmin generate distribution ...
NOTE: node [192.168.146.21] is coordinator node, it shall be data node too
NOTE: node [192.168.146.20] is coordinator node, it shall be data node too
gcadmin generate distribution successful
说明

在某个VC 上创建distribution 时,gcChangeInfo_vc1.xml 文件中的node ip
要与创建VC 时配置文件中的node ip 一致;

创建distribution 时必须指定vc name,当集群只有一个vc 时,默认在该vc
上生成distribution 可以不指定vcname。