67 lines
4.2 KiB
HTML
67 lines
4.2 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="Connection states" />
|
||
|
<meta name="abstract" content="This topic discusses the different connection states and ways to change them." />
|
||
|
<meta name="description" content="This topic discusses the different connection states and ways to change them." />
|
||
|
<meta name="DC.subject" content="states, SQL connection, current connection state, dormant connection state, held connection state, released connection state" />
|
||
|
<meta name="keywords" content="states, SQL connection, current connection state, dormant connection state, held connection state, released connection state" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal1adduwmg.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="rbal1states" />
|
||
|
<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>Connection states</title>
|
||
|
</head>
|
||
|
<body id="rbal1states"><a name="rbal1states"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Connection states</h1>
|
||
|
<div><p>This topic discusses the different connection states and ways to
|
||
|
change them.</p>
|
||
|
<div class="section"><div class="p">If an application processes a CONNECT statement and the server
|
||
|
name is known to the application requester and is not in the set of existing
|
||
|
connections of the activation group, then: <ul><li>The current connection is placed in the dormant state and held state.</li>
|
||
|
<li>The server name is added to the set of connections and the new connection
|
||
|
is placed in the current and held state.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<p> If the server name is already in the set of existing connections
|
||
|
of the activation group, an error occurs.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>A connection in the dormant state is placed in the current state
|
||
|
using the SET CONNECTION statement. When a connection is placed in the current
|
||
|
state, the previous current connection, if any, is placed in the dormant state.
|
||
|
No more than one connection in the set of existing connections of an activation
|
||
|
group can be current at any time. Changing the state of a connection from
|
||
|
current to dormant or from dormant to current has no effect on its held or
|
||
|
released state.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>A connection is placed in the released state by the RELEASE statement.
|
||
|
When an activation group executes a commit operation, every released connection
|
||
|
of the activation group is ended. Changing the state of a connection from
|
||
|
held to released has no effect on its current or dormant state. Thus, a connection
|
||
|
in the released state can still be used until the next commit operation. There
|
||
|
is no way to change the state of a connection from released to held.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1adduwmg.htm" title="The application-directed distributed unit of work facility also provides for the remote preparation and execution of SQL statements in the same fashion as remote unit of work.">Distributed unit of work</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|