回复 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 using
DB2TCP_CLIENT_CONTIMEOUT. For example, AIX has a default tcp_keepinit=150 (in half seconds) that would terminate the connection after 75 seconds.
收起