65 lines
4.1 KiB
HTML
65 lines
4.1 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 pooling" />
|
||
|
<meta name="abstract" content="Connection pooling refers to the behavior where ODBC connections are left open after the application has requested to disconnect them. Connections that are in the pool can be reused by the same application avoiding the time consuming operation of creating a brand new connection." />
|
||
|
<meta name="description" content="Connection pooling refers to the behavior where ODBC connections are left open after the application has requested to disconnect them. Connections that are in the pool can be reused by the same application avoiding the time consuming operation of creating a brand new connection." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzaikodbcapifunctions.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="connectionpooling" />
|
||
|
<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 pooling</title>
|
||
|
</head>
|
||
|
<body id="connectionpooling"><a name="connectionpooling"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Connection pooling</h1>
|
||
|
<div><p>Connection pooling refers to the behavior where ODBC connections
|
||
|
are left open after the application has requested to disconnect them. Connections
|
||
|
that are in the pool can be reused by the same application avoiding the time
|
||
|
consuming operation of creating a brand new connection.</p>
|
||
|
<div class="section"><p>To get an application to use connection pooling support with the iSeries™ Access
|
||
|
ODBC driver two basic steps must be taken:</p>
|
||
|
</div>
|
||
|
<div class="section"> <ol><li>Connection pooling support has to be enabled for the driver. To enable
|
||
|
this support, open ODBC Administrator, click on the Connection Pooling tab,
|
||
|
double-click on iSeries Access
|
||
|
ODBC Driver (32-bit), and switch the checkbox to indicate to pool connections
|
||
|
to this driver. There is also a spot on the window to fill in the amount
|
||
|
of time that unused connections remain in the pool. <div class="note"><span class="notetitle">Note:</span> Beginning with
|
||
|
the V5R3 iSeries Access
|
||
|
product, connection pooling support is automatically enabled for the driver.
|
||
|
No additional steps are needed unless you want to override the default time
|
||
|
(60 seconds) that unused connections remain in the pool.</div>
|
||
|
</li>
|
||
|
<li> Connection pooling support has to be enabled by the application. An
|
||
|
application does this by setting the SQL_ATTR_CONNECTION_POOLING environment
|
||
|
attribute as part of the connection process.</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<div class="section"><p>For more details on connection pooling support, search for ODBC
|
||
|
at <a href="http://www.microsoft.com/">Microsoft's
|
||
|
web site</a>.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaikodbcapifunctions.htm" title="Learn about implementations issues when using ODBC APIs.">Implementation issues of ODBC APIs</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|