返回首页

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

更新日期:2024年09月11日

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 的复
合节点)

取值:[1,4000000]
默认值:100000
说明:给transaction 类型的consumer 使用,一次提交dml 操作的数量。
允许用户把此参数配置到单独的consumer 中,这样consumer 启动时会优先采用,
自动忽略全局配置的同名参数。配置方法是手动修改gclusterdb.kafka_consumers:
update
gclusterdb.kafka_consumers
set
common_options=

gcluster_kafka_batch_commit_dml_count=10000’ where `name`=’consumer_1’,
然后重启consumer_1。如果要为单个consumer 设置多个参数,那么多个参数之间









common_options=

gcluster_kafka_batch_commit_dml_count=10000,
gcluster_kafka_user_allowed_max_latency=1000’
修改方式:
可使用set 语句修改值也可在配置文件中修改值。
适用于session、
global
范围均可。

GBase 8a MPP Cluster 参数手册
文档版本2022-06-07
南大通用数据技术股份有限公司
24
5 SQL 优化参数

ifx_int8copy() 函数将一个 int8 结构复制至另一个。

GBase 8s ESQL/C 编程指南
南大通用数据技术股份有限公司
- 720 -
语法
void ifx_int8copy(source, target)
ifx_int8_t *source;
ifx_int8_t *target;
source
指向包含要复制的源 int8 值的 int8 结构的指针。
target
指向目标 int8 结构的指针。
ifx_int8copy() 函数不返回状态值。要确定该复制操作是否成功,请查看 target 参数
指向的 int8 结构的内容。

示例
demo 目录中的文件 int8copy.ec 包含下列样例程序。
/*
* ifx_int8copy.ec *

The following program copies one INT8 number to another.
*/

#include

EXEC SQL include "int8.h";

char string1[] = "-12,888,999,555,333";
char result[41];

main()
{
mint x;
ifx_int8_t num1, num2;

printf("IFX_INT8COPY Sample ESQL Program running.\n\n");


GBase 8s ESQL/C 编程指南
南大通用数据技术股份有限公司
- 721 -
printf("String = %s\n", string1);
if (x = ifx_int8cvasc(string1, strlen(string1), &num1))
{
printf("Error %d in converting string1 to INT8\n", x);
exit(1);
}
printf("Executing: ifx_int8copy(&num1, &num2)\n");
ifx_int8copy(&num1, &num2);
if (x = ifx_int8soasc(&num2, result, sizeof(result)))
{
printf("Error %d in converting num2 to string\n", x);
exit(1);
}
result[40] = '\0';
printf("Destination = %s\n", result);

printf("\nIFX_INT8COPY Sample Program over.\n\n");
exit(0);
}

输出
IFX_INT8COPY Sample ESQL Program running.

String = -12,888,999,555,333
Executing: ifx_int8copy(&num1, &num2)
Destination = -12888999555333
IFX_INT8COPY Sample Program over.