返回首页

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

更新日期:2024年09月11日

BackUp end
备份完成后设置集群状态为normal:
$ gcadmin switchmode normal vc vc1

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
383
========== switch cluster mode...
switch pre mode:
[READONLY]
switch mode to
[NORMAL]
switch after mode:
[NORMAL]
$ gcadmin switchmode normal vc vc2
========== switch cluster mode...
switch pre mode:
[READONLY]
switch mode to
[NORMAL]
switch after mode:
[NORMAL]

整数类型。它的取值范围是-9223372036854775806 到9223372036854775806,
BIGINT 占用8 个字节。
示例
示例1:定义的列数据类型为BIGINT。
CREATE TABLE products(productnum BIGINT);
INSERT INTO products(productnum) VALUES(100);
gbase> SELECT productnum FROM products;
+------------+
| productnum |
+------------+

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
625
|
100 |
+------------+
1 row in set
gbase> DESC products;
+------------+------------+------+-----+---------+-------+
| Field
| Type
| Null | Key | Default | Extra |
+------------+------------+------+-----+---------+-------+
| productnum | bigint(20) | YES
|
| NULL
|
|
+------------+------------+------+-----+---------+-------+
1 row in set (Elapsed: 00:00:00.01)

加载结果信息通过information_schema 库内的LOAD_RESULT 和CLUSTER_LO
AD_RESULT 表进行查询,
图5- 7 所示
加载结果信息表定义与加载结果日志列定义一致。
图5- 8 所示
注意

支持select 查询形式,查询加载结果信息

只查询当前coordinator 节点,select 查询形式,查询加载信息,表名为:
LOAD_RESULT 例如:
select * from information_schema.load_result;

查询所有coordinator 节点,select 查询形式,查询加载信息,表名为:
CLUSTER_LOAD_RESULT
例如:

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1183
select * from information_schema.cluster_load_result;

加载结果信息查询功能实现用户权限控制,对于有PROCESS 权限用户可
以查询当前集群所有用户已经加载的信息,对于无该权限的用户只能查询
自己已经加载的加载结果信息。