83 lines
6.3 KiB
HTML
83 lines
6.3 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="End connections" />
|
||
|
<meta name="abstract" content="Because remote connections use resources, connections that are no longer going to be used should be ended as soon as possible. Connections can be ended implicitly or explicitly." />
|
||
|
<meta name="description" content="Because remote connections use resources, connections that are no longer going to be used should be ended as soon as possible. Connections can be ended implicitly or explicitly." />
|
||
|
<meta name="DC.subject" content="distributed relational database, ending connections, DISCONNECT statement, RELEASE statement, connection management, DISCONNECT statement, ending connection, DDMCNV effect on, job attribute, DDMCNV, connection, DDM, connection management, DDMCNV effect on, ending DDM, Reclaim DDM connections (RCLDDMCNV) command, command (CL), Reclaim DDM connections (RCLDDMCNV)" />
|
||
|
<meta name="keywords" content="distributed relational database, ending connections, DISCONNECT statement, RELEASE statement, connection management, DISCONNECT statement, ending connection, DDMCNV effect on, job attribute, DDMCNV, connection, DDM, connection management, DDMCNV effect on, ending DDM, Reclaim DDM connections (RCLDDMCNV) command, command (CL), Reclaim DDM connections (RCLDDMCNV)" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafydistribsupport.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafyc1.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafyc2.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbafydrdaconnect4" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>End connections</title>
|
||
|
</head>
|
||
|
<body id="rbafydrdaconnect4"><a name="rbafydrdaconnect4"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">End connections</h1>
|
||
|
<div><p>Because remote connections use resources, connections that are
|
||
|
no longer going to be used should be ended as soon as possible. Connections
|
||
|
can be ended implicitly or explicitly.</p>
|
||
|
<div class="section"><p>Connections can be explicitly ended by either the DISCONNECT statement or
|
||
|
the RELEASE statement followed by a successful COMMIT. The DISCONNECT statement
|
||
|
can only be used with connections that use unprotected connections or with
|
||
|
local connections. The DISCONNECT statement will end the connection when
|
||
|
the statement is run. The RELEASE statement can be used with either protected
|
||
|
or unprotected connections. When the RELEASE statement is run, the connection
|
||
|
is not ended but instead placed into the released state. A connection that
|
||
|
is in the release stated can still be used. The connection is not ended until
|
||
|
a successful COMMIT is run. A ROLLBACK or an unsuccessful COMMIT will not
|
||
|
end a connection in the released state.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>When a remote SQL connection is established, a DDM network connection
|
||
|
(APPC conversation or TCP/IP connection) is used. When the SQL connection
|
||
|
is ended, the network connection may either be placed in the unused state
|
||
|
or dropped. Whether a network connection is dropped or placed in the unused
|
||
|
state depends on the DDMCNV job attribute. If the job attribute value is
|
||
|
*KEEP and the connection is to another <span class="keyword">iSeries™</span> server,
|
||
|
the connection becomes unused. If the job attribute value is *DROP and the
|
||
|
connection is to another <span class="keyword">iSeries</span> server,
|
||
|
the connection is dropped. If the connection is to a non-<span class="keyword">iSeries</span> server,
|
||
|
the connection is always dropped. *DROP is desirable in the following situations:</p>
|
||
|
<ul><li>When the cost of maintaining the unused connection is high and the connection
|
||
|
will not be used relatively soon.</li>
|
||
|
<li>When running with a mixture of programs, some compiled with RUW connection
|
||
|
management and some programs compiled with DUW connection management. Attempts
|
||
|
to run programs compiled with RUW connection management to remote locations
|
||
|
will fail when protected connections exist.</li>
|
||
|
<li>When running with protected connections using either DDM or DRDA<sup>®</sup>. Additional
|
||
|
overhead is incurred on commits and rollbacks for unused protected connections.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>The Reclaim DDM connections (RCLDDMCNV) command may be used to
|
||
|
end all unused connections, if they are at a commit boundary.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafydistribsupport.htm" title="DB2 UDB for iSeries supports two levels of distributed relational database.">Distributed support</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="rbafyc1.htm" title="The application requester can implicitly connect to an application server.">Implicit connection management for the default activation group</a></div>
|
||
|
<div><a href="rbafyc2.htm" title="The application requester can implicitly connect to an application server. Implicit SQL connection occurs when the application requester detects that the first SQL statement issued for the activation group is not a CONNECT statement with parameters.">Implicit connection management for nondefault activation groups</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|