473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

connect reset vs disconnect vs terminate

Hi there,

Does anyone know what's difference among "connect reset", "disconnect",
and "terminate"?
Thanks in advance,

Dec 14 '06 #1
3 45159
Laurence wrote:
Hi there,

Does anyone know what's difference among "connect reset", "disconnect",
and "terminate"?
Thanks in advance,
IIRC, CONNECT RESET contains an implicit COMMIT and stops the
connection to database. TERMINATE end the process the server held open
to the client, and drops all resources. So, the best way to end a
connection is first CONNECT RESET and then TERMINATE.

I am not familiar with DISCONNECT, but i would assume it closes the
connection with an implicit ROLLBACK.

The command are explained in detail in the documentation. under
COMMANDs.

B.

Dec 14 '06 #2

Brian Tkatch wrote:
Laurence wrote:
Hi there,

Does anyone know what's difference among "connect reset", "disconnect",
and "terminate"?
Thanks in advance,

IIRC, CONNECT RESET contains an implicit COMMIT and stops the
connection to database. TERMINATE end the process the server held open
to the client, and drops all resources. So, the best way to end a
connection is first CONNECT RESET and then TERMINATE.

I am not familiar with DISCONNECT, but i would assume it closes the
connection with an implicit ROLLBACK.

The command are explained in detail in the documentation. under
COMMANDs.

B.


I guess Disconnect we use it with embedded SQL in a program.
DISCONNECT wont work in DB2CLP if we give directly,
we have to use CONNECT RESET or TERMINATE for coming out of the
connection...

Regards
Kamal....

Dec 14 '06 #3
Laurence wrote:
Hi there,

Does anyone know what's difference among "connect reset", "disconnect",
and "terminate"?
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/infoce...n/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/infoce...n/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/infoce...n/r0000943.htm

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

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Dec 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob Cole | last post by:
Any idea why? (no clue I could glean from log file) Thanks bunches, Rob ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend
1
by: Sparky | last post by:
Hi I was wondering if someone can please enlighten me as to the best and most approved way to connect and disconnect network drives in vb.net. I have been using Mpr.dll API calls such as...
2
by: http://www.visual-basic-data-mining.net/forum | last post by:
Say i have declare a module for connection and two buttons... one button has the method connect() and the other has the method disconnect().... how do i actually connect after i had disconnect...
0
by: Jim Hubbard | last post by:
If there are 2 wireless access points, I need to be able to programmatically connect and disconnect depending on which I need to connect to. Anybody seen any code for this? (Googled 'til my...
7
by: fyi85 | last post by:
I have 8.1.5 on Windows 2003, when I do from CLP with auto commit off: db2 update table set column=something and then db2 terminate and then db2 connect to db db2 select updated column from...
2
by: Draw | last post by:
I have an application, where I do connect, handle a few requests, and if for some reason, I lose connectivity, I detect that and loop(trying to reconnect) until I regain connection to the DB. My...
2
by: Geoff | last post by:
In testing our app, we connected and disconnected like 1000 times and noticed a 5 meg memory leak. The sequence of connecting and disconnecting is as follows: 1. OdbcSQLAllocHandle 2. ...
13
by: trymore | last post by:
Hi all, can anybody help me out there? I am developing a client sockect to send transactions form a DB to a server socket. the way i want is to connect, send, recieve , disconnect, connect, send,...
1
by: reshma tellis | last post by:
what is the difference between connect reset and db2stop force
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.