返回首页

gbase数据、南大通用产品文档:GBase8c注意事项

更新日期:2024年09月11日

目前dblink 仅支持GBase 8c 数据库访问另一个GBase 8c 数据库,不支持GBase 8c 数
据库访问PostgreSQL 数据库。
22 物化视图
物化视图是一种特殊的物理表,物化视图是相对普通视图而言的。普通视图是虚拟表,
应用的局限性较大,任何对视图的查询实际上都是转换为对SQL 语句的查询,性能并没有
实际上提高。物化视图实际上就是存储SQL 执行语句的结果,起到缓存的效果。
目前Ustore 引擎不支持创建、使用物化视图。

_t_gcluster_dblink_generate_interim_table_policy
_t_gcluster_dblink_generate_interim_table_policy 控制dblink 在拉表过程中,
生成目标临时表的方式,其作用域为global、session 级。

GBase 8a MPP Cluster 最佳实践
4 参数调优
文档版本(2022-02-11)
南大通用数据技术股份有限公司
38
取值范围:0、1
默认值:1
针对集群计划dblink 拉表步骤,目标临时表的结构生成方式:
0:使用自动评估方式,由投影表达式结果的数据类型确定;
1:请求网关使用create...select ...limit 0 方式获取临时表的结构。
相对自动评估方式,临时表的列的数据类型评估更准确。

export GBASE_INSTANCES_BASE=/opt
export
GBASE_INSTANCES=/opt/192.168.146.22/gb
ase_profile
export
GBASE_HOME=/opt/192.168.146.22/gnode/s
erver
PATH=$GBASE_HOME/bin:$PATH
单实例
安装目录
Gcluster
Gcware
Gnode
安装目录
IP 1 文件
Gcluster
Gcware
Gnode
IP 2 文件
IP 3 文件
Gnode
Gnode
多实例





南大通用数据技术股份有限公司
36/44
export
GBASE_INSTANCES=/opt/192.168.146.20/gb
ase_profile:$GBASE_INSTANCES
export
GBASE_HOME=/opt/192.168.146.20/gnode/s
erver
PATH=$GBASE_HOME/bin:$PATH

if
[
-f
/opt/192.168.146.20/gbase_profile
];
then
. /opt/192.168.146.20/gbase_profile
fi

if
[
-f
/opt/192.168.146.20/gcware_profile ];
then
. /opt/192.168.146.20/gcware_profile
fi








if
[
-f
/opt/192.168.146.22/gbase_profile
];
then
. /opt/192.168.146.22/gbase_profile
fi

if
[
-f
/opt/192.168.146.22/gcware_profile ];
then
. /opt/192.168.146.22/gcware_profile
fi
多实例server 中复合节点与纯gnode 节点环境变量文件对比:
(一个多实例服务器,最多只能有一个节点是带有gcluster 和gcware 的复
合节点)