返回首页

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

更新日期:2024年09月11日

执行场景检查结果:
[gbase@gbase8c ~]$ gs_check -e inspect
Parsing the check items config file successfully
The below items require root privileges to execute:[CheckBlockdev
CheckIOrequestqueue CheckIOConfigure CheckMTU CheckRXTX CheckMultiQueue
CheckFirewall CheckSshdService CheckSshdConfig CheckCrondService
CheckMaxProcMemory CheckBootItems CheckFilehandle CheckNICModel
CheckDropCache]
Please enter root privileges user[root]:root
Please enter password for user[root]:
Check root password connection successfully
Distribute the context file to remote hosts successfully
Start to health check for the cluster. Total Items:57 Nodes:1
Checking...
[=========================] 57/57
Start to analysis the check result
CheckClusterState...........................OK
The item run on 1 nodes.
success: 1
CheckDBParams...............................OK
The item run on 1 nodes.
success: 1

GBase 8c 管理员指南
南大通用数据技术股份有限公司
20
CheckDebugSwitch............................OK
The item run on 1 nodes.
success: 1
CheckDirPermissions.........................NG
The item run on 1 nodes.
ng: 1
The ng[gbase8c_5_124] value:
AppPath directory(/home/gbase/gbase_db/app) permissions 700
: Normal
Tmp directory(/home/gbase/gbase_db/tmp) permissions 700
: Normal
Log directory(/home/gbase/gbase_db/log) permissions 700
: Normal
ToolPath directory(/home/gbase/gbase_db/om) permissions 775
:
Abnormal reason: Directory permission can not exceed 750.
DN directory(/home/gbase/data/dn1/dn1_1) permissions 700
: Normal
DN Xlog directory(/home/gbase/data/dn1/dn1_1/pg_xlog) permissions 700 : Normal
CheckReadonlyMode...........................OK
The item run on 1 nodes.
success: 1
CheckEnvProfile.............................OK
The item run on 1 nodes.
success: 1
(consistent)
The success on all nodes value:
GAUSSHOME
/home/gbase/gbase_db/app
LD_LIBRARY_PATH
/home/gbase/gbase_db/app/lib
PATH
/home/gbase/gbase_db/app/bin
CheckBlockdev...............................OK
The item run on 1 nodes.
success: 1
CheckCurConnCount...........................OK
The item run on 1 nodes.
success: 1
CheckCursorNum..............................OK
The item run on 1 nodes.
success: 1
CheckPgxcgroup..............................OK
The item run on 1 nodes.
success: 1
CheckDiskFormat.............................OK
The item run on 1 nodes.
success: 1

GBase 8c 管理员指南
南大通用数据技术股份有限公司
21
CheckSpaceUsage.............................OK
The item run on 1 nodes.
success: 1
CheckInodeUsage.............................OK
The item run on 1 nodes.
success: 1
CheckSwapMemory.............................NG
The item run on 1 nodes.
ng: 1
The ng[gbase8c_5_124] value:
SwapMemory(8455712768) must be 0.
MemTotal: 8201502720.
CheckLogicalBlock...........................OK
The item run on 1 nodes.
success: 1
CheckIOrequestqueue.........................OK
The item run on 1 nodes.
success: 1
CheckMaxAsyIOrequests...................WARNING
The item run on 1 nodes.
warning: 1
The warning[gbase8c_5_124] value:
Asy IO requests 65536
expectedScheduler 104857600.
CheckIOConfigure............................OK
The item run on 1 nodes.
success: 1
CheckMTU....................................OK
The item run on 1 nodes.
success: 1
(consistent)
The success on all nodes value:
1500
CheckPing...................................OK
The item run on 1 nodes.
success: 1
CheckRXTX...................................OK
The item run on 1 nodes.
success: 1
CheckNetWorkDrop............................OK
The item run on 1 nodes.
success: 1

GBase 8c 管理员指南
南大通用数据技术股份有限公司
22
CheckMultiQueue..........................ERROR
The item run on 1 nodes.
error: 1
The error[gbase8c_5_124] value:
string indices must be integers
CheckEncoding...............................OK
The item run on 1 nodes.
success: 1
(consistent)
The success on all nodes value:
LANG=en_US.UTF-8
CheckFirewall...............................OK
The item run on 1 nodes.
success: 1
CheckKernelVer..............................OK
The item run on 1 nodes.
success: 1
(consistent)
The success on all nodes value:

GS_ENCRYPTED_COLUMNS 系统表记录密态等值特性中表的加密列相关信息,每条
记录对应一条加密列信息。
名称
类型
描述
oid
oid
行标识符(隐含字段)。
rel_id
oid
表的OID。
column_name
name
加密列的名称。
column_key_id
oid
外键,列加密密钥的OID。
encryption_type
int1
加密类型,取值为2(DETERMINISTIC)或者1(RA
NDOMIZED)。
data_type_origina
l_oid
oid
加密列的原始数据类型id,参考系统表PG_TYPE 中
的oid。
data_type_origina
l_mod
int4
加密列的原始数据类型修饰符,参考系统表PG_ATT
RIBUTE 中的atttypmod。其值对那些不需要的类型da
ta_type_original_mod 通常为-1。
create_date
timestamp
创建加密列的时间。

功能说明
记录数据库执行过的操作的相关信息。

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1490
表结构说明
表5- 268 表结构信息说明:




thread_id
线程号,同processlist 中的ID
taskid
每个SQL 任务编号
start_time
任务开始时间
end_time
任务结束时间
user_host
登录的用户名和IP,格式为:
priv_user[user]@hostname[ip]
uid
用户UID
user
下发任务用户
host_ip
下发任务用户的主机IP
query_time
任务执行时间
rows
任务执行影响行数
vc_id
任务所属虚拟集群名
db
任务所属的数据库名
table_list
任务执行涉及到的表列表,
格式:
` WRITE: ``.``;
READ: ``.``; OTHER: ``.``;
sql_text
任务执行时间大于long_query_time 设定值的SQL 语句
sql_type
任务执行的SQL 语句类型,
如DDL、
DML、
DQL、
others
sql_command
任务执行的任务分类
operators
记录任务中涉及到的算子,
若涉及多个算子,
算子间用
‘,’
分隔
status
sql 执行状态,如SUCCESS、FAILED、KILLED 等
conn_type
任务的执行方式(CAPI、ODBC、JDBC、ADO.NET、
STUDIO)
表5- 269 sql_command 取值范围说明:
INSERT
DELETE
UPDATE
LOAD
CREATE
USER
CREATE DB
CREATE TABLE
CREATE VIEW
CREATE
INDEX
CREATE
PROCEDURE
CREATE
FUNCTION
ALTER
FUNCTION
ALTER
EVENT
DROP USER
DROP DB
DROP TABLE
DROP VIEW
DROP INDEX
DROP
PROCEDURE
DROP
FUNCTION
DROP
EVENT
TRUNCATE
GRANT
REVOKE
SELECT
OTHERS
RENAME_USER
表5- 270 operators 取值范围说明:
START_WIT
CONNECT_
JOIN
WHERE
GROUP

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1491
H
BY
OLAP_GRO
UP
HAVING
OLAP_FUN
C
DISTINCT
ORDER
LIMIT