DB2連線tomeout設定

請問我要設定假如DB2連線進來十分鐘沒動作的讓他斷線是哪個參數?
参与2

1同行回答

zsj2002zsj2002数据库管理员澳門大豐銀行
回复 1# saiman641023 有这么一个db2的环境变量,不知道是不是你要的呢?    DB2TCP_CLIENT_CONTIMEOUTOperating system: All, client onlyDefault=0 (no timeout), Values: 0 - 32 767 secondsThe DB2TCP_CLIENT_CONTIMEOUT registry variable specifies the num...显示全部
回复 1# saiman641023

有这么一个db2的环境变量,不知道是不是你要的呢?
    DB2TCP_CLIENT_CONTIMEOUTOperating system: All, client onlyDefault=0 (no timeout), Values: 0 - 32 767 secondsThe DB2TCP_CLIENT_CONTIMEOUT registry variable specifies the number of seconds that a client must wait for the completion on a TCP/IP connect operation. A database connect operation via TCP/IP involves both connect() and recv() socket subroutines. The database manager returns the -30081 selectForConnectTimeout error if the connect() subroutine reaches the timeout, and the -30081 selectForRecvTimeout error if the recv() subroutine reaches the timeout.

There is no timeout if the registry variable is not set or is set to 0.

Note: Operating systems also have a connection timeout value that may take effect prior to the timeout you set usingDB2TCP_CLIENT_CONTIMEOUT. For example, AIX has a default tcp_keepinit=150 (in half seconds) that would terminate the connection after 75 seconds.
收起
银行 · 2015-01-09
浏览541

提问者

saiman641023
软件开发工程师北祥企業股份公司
擅长领域: 存储数据安全备份

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-01-09
  • 关注会员:1 人
  • 问题浏览:5016
  • 最近回答:2015-01-09
  • X社区推广