DB2查询超时设置

在数据仓库中,查询语句比较复杂,执行时间较长,当某个长查询执行时间超过设置的超时值时,就放弃或者终止,以免浪费更多的资源,影响系统性能,我的问题是DB2有没有参数或者方法实现如上功能,谢谢。
参与9

4同行回答

weiruan85weiruan85数据库管理员ibm
数据库没有这个设置,自己写个shell脚本,间隔一段时间计算每一个uow的执行时间。显示全部

数据库没有这个设置,自己写个shell脚本,间隔一段时间计算每一个uow的执行时间。

收起
政府机关 · 2015-11-04
浏览2327
huangdkhuangdk数据库架构师IBM
楼主,试试这个吧DB2TCP_CLIENT_RCVTIMEOUT Operating system: All, client only The DB2TCP_CLIENT_RCVTIMEOUT registry variable specifies the number of seconds a client waits for data on a TCP/IP receive operation. If data from the server is not received in...显示全部

楼主,试试这个吧

DB2TCP_CLIENT_RCVTIMEOUT

Operating system: All, client only

The DB2TCP_CLIENT_RCVTIMEOUT registry variable specifies the number of seconds a client waits for data on a TCP/IP receive operation. If data from the server is not received in the seconds specified, then the DB2 database manager returns the error -30081 selectForRecvTimeout.

收起
IT咨询服务 · 2015-11-04
浏览1918
bygt2010bygt2010it技术咨询顾问自由空间科技公司
嗯,这个我查过了QUERYTIMEOUTINTERVAL只决定CLI driver 检查查询超时的时间间隔,而并不决定查询是否可以超时。显示全部
嗯,这个我查过了QUERYTIMEOUTINTERVAL只决定CLI driver 检查查询超时的时间间隔,而并不决定查询是否可以超时。收起
IT咨询服务 · 2015-11-04
浏览1887
ABCABC数据库运维工程师ABC
db2cli.ini,这个文件里面有关于查询超时的配置。显示全部

db2cli.ini,这个文件里面有关于查询超时的配置。

收起
保险 · 2015-11-04
浏览2044

提问者

bygt2010
it技术咨询顾问自由空间科技公司

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-11-04
  • 关注会员:5 人
  • 问题浏览:4537
  • 最近回答:2015-11-04
  • X社区推广