互联网服务数据库quot

Difference among "connect reset", "disconnect",



There are quite a lot of subtly differences:

CONNECT RESET and DISCONNECT are SQL statements, TERMINATE is a DB2 command.

From the manuals:

CONNECT RESET:
==============
On type 1 connections, it disconnects and runs a COMMIT before.
http://publib.boulder.ibm.com/infoc...in/r0000906.htm

On type 2 connections, it connects to the default database. But there are a
few more options to control what happens.
http://publib.boulder.ibm.com/infoc...in/r0000908.htm

DISCONNECT:
===========
Can only be used from an application and not interactively. Also, there
must not be an UOW running at the time of DISCONNECT.
http://publib.boulder.ibm.com/infoc...in/r0000943.htm

TERMINATE:
==========
Explicitly terminates the command line processor's back-end process.
http://publib.boulder.ibm.com/infoc...re/r0001973.htm
Through that, it also disconnects from the DB2 server.
参与20

20同行回答

先看看再说!显示全部
先看看再说!收起
2008-12-07
浏览629
浏览650
wxx_126wxx_126数据库管理员农信银资金清算中心
顶一下  看看显示全部
顶一下  看看收起
互联网服务 · 2008-11-13
浏览699
let me have a look显示全部
let me have a look收起
2008-11-10
浏览624
ninthninth数据库管理员拓维信息系统股份有限公司
学习了:lol显示全部
学习了:lol收起
互联网服务 · 2008-10-30
浏览661
connect reset  只有在 client connect 为1, 也就是 RUOW的情况下才能用.client connect 为2, 是 DUOW, connect reset 就不能用了. connect reset 和 disconnect 的 结果应该是一样的, 只不过 connect 为2 的情况下 connect reset 不能用了.至于terminate 和 ...显示全部
connect reset  只有在 client connect 为1, 也就是 RUOW的情况下才能用.
client connect 为2, 是 DUOW, connect reset 就不能用了.
connect reset 和 disconnect 的 结果应该是一样的, 只不过 connect 为2 的情况下 connect reset 不能用了.
至于terminate 和 connect reset的区别 就是 terminate 会 中断 后台进程(back-end process), 而 connect reset 只会断开当前的数据库连接.收起
2008-10-29
浏览645
foryulingforyuling系统架构师skyon
:lol  再seesee显示全部
:lol  再seesee收起
互联网服务 · 2008-10-29
浏览702
foryulingforyuling系统架构师skyon
:) seesee显示全部
:) seesee收起
互联网服务 · 2008-10-29
浏览699
let me see see显示全部
let me see see收起
2008-10-29
浏览644
wangzhonnewwangzhonnew软件工程师IBM Canada Ltd.
let me see see显示全部
let me see see收起
IT分销/经销 · 2008-10-29
浏览632

提问者

luckyleo
项目总监山东联博软件有限公司
擅长领域: 服务器AIXUnix

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2008-10-29
  • 关注会员:0 人
  • 问题浏览:19245
  • 最近回答:2013-03-15
  • X社区推广