返回首页

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

更新日期:2024年09月11日

设置连接池初始化大小 .............................
33

概述
本章节共包括15 部分,分别覆盖了以下功能点的样例:
1.
使用JDBC 创建连接;
2.
自动装载JDBC 驱动;(JDBC4.0 新特性需要jre1.6 及以上版本支持);
3.
通过JDBC 执行查询SQL 语句,并从ResultSet 中读取结果;
4.
通过JDBC 执行DDL 和DML 语句;
5.
通过JDBC 调用存储过程;
6.
NATIONAL Character 相关操作;
(JDBC4.0 新特性需要jre1.6及以上版本支持)
;
7.
大对象类型使用;
8.
使用Statement.getGeneratedKeys()获取AUTO_INCREMENT 列的值;
9.
使用SELECT LAST_INSERT_ID()获取AUTO_INCREMENT 列的值;
10. 使用可更新结果集获取AUTO_INCREMENT 列的值;
11. GBase JDBC 在Jboss 应用中使用示例;
12. GBase JDBC 在Tomcat 应用中使用示例;
13. GBase JDBC 集群高可用性(IP 自动路由,需要GBaseJDBC8.3.81.53 及以上
版本);
14. GBase JDBC 集群高可用负载均衡(GBaseJDBC8.3.81.5x 及以上版本);
15. GBase JDBC 流式读取使用示例。

获取帮助
使用SQLdiag 工具前,您可以通过以下指令获取帮助。
gs_dbmind component sqldiag --help
显示如下帮助信息:
usage:
[-h] [-f CSV_FILE] [--predicted-file PREDICTED_FILE]
[--model {template,dnn}] --model-path MODEL_PATH
[--config-file CONFIG_FILE]
{train,predict,finetune}
SQLdiag integrated by openGauss.
positional arguments:
{train,predict,finetune}
The training mode is to perform feature extraction and
model training based on historical SQL statements. The
prediction mode is to predict the execution time of a
new SQL statement through the trained model.
optional arguments:
-h, --help
show this help message and exit
-f CSV_FILE, --csv-file CSV_FILE
The data set for training or prediction. The file
format is CSV. If it is two columns, the format is
(SQL statement, duration time). If it is three

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
398
columns, the format is (timestamp of SQL statement
execution time, SQL statement, duration time).
--predicted-file PREDICTED_FILE
The file path to save the predicted result.
--model {template,dnn}
Choose the model model to use.
--model-path MODEL_PATH
The storage path of the model file, used to read or
save the model file.
--config-file CONFIG_FILE