当前位置:网站首页>关于GBase 自动关闭连接问题
关于GBase 自动关闭连接问题
2022-07-25 07:18:00 【郑小雯】
我有一个小服务程序/应用程序正常地工作了一白天,然后晚上就停止工作 了
其他答案1:
GBase 在无活动 8 小时后就自动关闭连接。你或许需要使用能处理失效连接的连接池。
此外,用户应该在应用程序中捕获 SQL 异常并处理它们,而不是一直传播
它们直到用户的程序退出,这只是一个好的编程习惯。当在处理查询过程中遇到网络连通性问题时,GBase JDBC 会把 SQLState (参见用户的 APIDOCS 中的 java.sql.SQLException.getSQLState()) 置为 “08S01” 。这时用户的程序应该重新连接 GBase。
边栏推荐
猜你喜欢

用VS Code搞Qt6:编译源代码与基本配置

Scavenging vultures or woodpeckers? How to correctly understand short selling

RPC communication principle and project technology selection

Talk about practice, do solid work, and become practical: tour the digitalized land of China

Before Oracle 19C migration, how important is it to do a good job of rat playback test?

New tea, start "fighting in groups"

集群聊天服务器:项目问题汇总
![[daily question 1] 1184. Distance between bus stops](/img/36/2bbb8cc2a1fdd08070a5df7527e692.png)
[daily question 1] 1184. Distance between bus stops

SAP queries open Po (open purchase order)

章鱼网络 Community Call #1|开启 Octopus DAO 构建
随机推荐
Teach you to use cann to convert photos into cartoon style
【程序员2公务员】四、常见问题
【程序员2公务员】一、基本认知
3. Promise
vulnhub CyberSploit: 1
CEPH in hand, I have!
微信小程序switchTab传参以及接收参数
knapsack problem
一日千里,追风逐月 | 深势科技发布极致加速版分子对接引擎Uni-Docking
Servlet常用类剖析
Enable the free pan domain SSL certificate for kubesphere cluster and realize the automatic update and distribution of certificates
各位老板 问一下 就是我们mysql cdc保存的是配置数据 然后kafka里面堆积的有历史
Vscode saves setting configuration parameters to the difference between users and workspaces
Boiling short drama Jianghu: nine of the ten production teams are shooting, with a head sharing fund of more than 30million, and users are addicted to paying routines
新库上线| CnOpenDataA股上市公司股东信息数据
QT actual combat case (53) -- using qdrag to realize the drag puzzle function
CTF Crypto---RSA KCS1_ Oaep mode
批量导入数据,一直提示 “失败原因:SQL解析失败:解析文件失败::null”怎么回事?
【刷题笔记】搜索插入位置(二分法的活用)
CTF Crypto---RSA KCS1_OAEP模式