返回首页

gbase数据、南大通用产品文档:GBase8sSQLSpecialColumns(仅限一级)

更新日期:2024年09月11日

SQLSpecialColumns 检索有关列的信息。
SQLSpecialColumns 检索有关指定表的以下信息:

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

唯一标识表中的一行的最佳列集

通过事务更新行中的值时,自动更新的列
下表描述了 SQLSpecialColumns 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08S01
-11020
Communication-link failure
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1090
-11071
Invalid string or buffer length
S1097
-11078
Column type out of range
S1098
-11079
Scope type out of range
S1099
-11080
Nullable type out of range
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
S1C00
-11300
SQL_DEFAULT_PARAM not supported
08S01
-11301
A protocol error has been detected. Current connection is
closed.
S1000
-11310
Create and Drop must be executed within a ServerOnly
Connection
S1000
-11320
Syntax error
S1000
-11323
The statement contained an escape clause not supported by
this database driver

功能

枚举型变量,用于指定HDFS 传输协议。
http:HTTP 传输协议;
https:HTTPS 传输协议;
rpc:RPC 传输协议。

与其它枚举型变量相同,参数值支持大写、小写及大小混合形式,比如以下
方式为合法的参数值:
http, Http, HTTP, https, Https, HTTPS,rpc,Rpc,RPC

当指定不同的HDFS 传输协议时,应根据实际配置指定HDFS 文件URL 中
的端口号,与传输协议匹配。
Hadoop 默认配置各协议端口如下:
HTTP 协议端口:50070;
HTTPS 协议端口:50470;

GBase 8a MPP Cluster 产品手册
6 附录
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1590
RPC 协议端口:9000。
表6- 81 参数值范围说明表
默认值
最小值
最大值
HTTP


需要额外配置以下参数:
1.
配置HDFS 访问协议为RPC 和正确的端口号,需要同时在gcluster 和gnode
的配置文件的[gbased]段中添加以下参数。
gbase_hdfs_protocol=RPC;
gbase_hdfs_port=8020;
-- 其中8020 为实际的HDFS 的RPC 端口号。
2.
如果HDFS 环境支持NameNode 高可用,还需要同时在gcluster 和gnode 的
配置文件的[gbased]段中添加以下参数。
gbase_hdfs_namenodes='hdfs_nn1:8020,hdfs_nn2:8020' -- 其中hdfs_nn1 和hdfs_nn2 为实际的
HDFS 的两个NameNode 节点的主机名。
3.
如果HDFS 环境要求使用Kerberos 认证,还需要同时在gcluster 和gnode 的
配置文件的[gbased]段中添加以下参数。
gbase_hdfs_auth_mode=KERBEROS;
gbase_hdfs_principal='principal' -- 其中‘principal’为有效的Kerberos 主体名。
gbase_hdfs_keytab='keytab' --
其中‘keytab’为与Kerberos 主体名相对应的密钥文件名。

PGXC_CLASS
PGXC_CLASS 系统表存储每张表的复制或分布信息。PGXC_CLASS 系统表仅在分布
式场景下有具体含义,GBase 8c 只能查询表定义。
名称
类型
描述
pcrelid
oid
表的OID。
pclocatortype
“char”
定位器类型。
H:hash
G:Range
L:List
M:Modulo
N:Round Robin
R:Replication
pchashalgorithm
smallint
使用哈希算法分布元组。
pchashbuckets
smallint
哈希容器的值。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
824
名称
类型
描述
pgroup
name
节点群的名称。
redistributed
“char”
表已经完成重分布。
redis_order
integer
重分布的顺序。该值等于0 的表在本轮重分布过程
中不进行重分布。
pcattnum
int2vector
用作分布键的列标号。
nodeoids
oidvector_ext
end
表分布的节点OID 列表。
options
text
系统内部保留字段,存储扩展状态信息。