返回首页

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

更新日期:2024年09月11日

示例
如下是为root 用户建立互信的示例。仅支持交互式输入密码。
用户密码相同情况下,交互式模式使用以下命令建立互信。
gs_sshexkey -f /opt/software/hostfile
Please enter password for current user[root].
Password:
Checking network information.
All nodes in the network are Normal.
Successfully checked network information.
Creating SSH trust.
Creating the local key file.
Appending local ID to authorized_keys.
Successfully appended local ID to authorized_keys.
Updating the known_hosts file.
Successfully updated the known_hosts file.
Appending authorized_key on the remote node.
Successfully appended authorized_key on all remote node.
Checking common authentication file content.
Successfully checked common authentication content.

GBase 8c 工具参考手册
南大通用数据技术股份有限公司
241
Distributing SSH trust file to all node.
Successfully distributed SSH trust file to all node.
Verifying SSH trust on all hosts.
Successfully verified SSH trust on all hosts.
Successfully created SSH trust.

功能
该命令用来显示当前集群中表的分片完整恢复信息。
注意
若系统中有DML storage event 时不能升级。
语法
gcadmin showdmlstorageevent [table_ID segname nodeip] | ]
[f] [vc vc_name]
表4- 29 参数说明
参数名称
说明
table_ID
表的编号。可以通过系统表information_schema.tables 表查
询获取。
segname
表分片的名字(通过showdistribution 查看分片名),例如
建立一张表名为t 的分布表,在第一个节点上的表分片名称
就是n1,在第二个节点上的表分片名称就是n2,…,命名
以此类推。
nodeip
节点机器的IP。
max_fevent_num
gcadmin 工具根据用户设定的最大条数返回
dmlstorageevent log 信息,如果设定的最大条数大于已有
的信息总量,则返回全部信息,否则返回指定数量的信息。

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
200
参数名称
说明
如不指定最大条数,则默认返回16 条,后续
dmlstorageevent log 将不显示。
f
按照xml 格式显示集群节点信息。
vc vcname
指定要查看dmlstorageevent 信息的虚拟集群名字。
示例
$ gcadmin showdmlstorageevent
Event count:2
Event ID:
5
ObjectName: test.t1
TableID: 26
Fail Data Copy:
------------------------------------------------------
SegName: n2 NodeIP: 192.168.153.129 FAILURE
Event ID:
6
ObjectName: test.t2
TableID: 32
Fail Data Copy:
------------------------------------------------------
SegName: n2 NodeIP: 192.168.153.129 FAILURE

固定型缓冲区和不固定型缓冲区之间存在一些差异。
下表描述了固定型缓冲区和不固定型缓冲区之间的差异。

GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 135 -

缓冲区
描述
固定型
当调用 ifx_rc_create() 创建行或集合缓冲区时,为缓冲区指定下列数
据类型:
l
缓冲区数据类型(行或一种集合类型)
l
行或集合中的元素的数据类型
当检索行或集合时,数据库服务器比较源和目标数据类型并将数据从
GBase 8s SQL 数据类型转换为其它必需的数据类型。
在将数据检索到缓冲区中之前可以修改行或集合。
不固定型
当调用 ifx_rc_create()创建行或集合缓冲区时,
您只能指定缓冲区数据
类型(行或集合),而不能指定元素类型。
当检索行或集合时,数据库服务器不会比较源和目标数据类型,因为
未指定目标数据类型。
相反,
行或集合缓冲区采用源数据的数据类型。

在修改行或集合缓冲区后,您必须初始化它们。要初始化缓冲区,将
行或集合检索到其中。
即使包含数据,缓冲区类型也不会保留。