67 lines
3.9 KiB
HTML
67 lines
3.9 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="concept" />
|
||
|
<meta name="DC.Title" content="Run DB2 UDB CLI in server mode" />
|
||
|
<meta name="abstract" content="This topic is about why and how you should run your DB2 UDB CLI applications in server mode." />
|
||
|
<meta name="description" content="This topic is about why and how you should run your DB2 UDB CLI applications in server mode." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzadpkickoff.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzadpstartingservermode.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzadprestrictions.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="rzadpsqlapd" />
|
||
|
<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>Run DB2 UDB
|
||
|
CLI in server mode</title>
|
||
|
</head>
|
||
|
<body id="rzadpsqlapd"><a name="rzadpsqlapd"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Run DB2 UDB
|
||
|
CLI in server mode</h1>
|
||
|
<div><p>This topic is about why and how you should run your DB2<sup>®</sup> UDB CLI applications
|
||
|
in server mode.</p>
|
||
|
<div class="p">The reason for running in SQL server mode is that many applications have
|
||
|
the need to act as database servers. This means that a single job performs
|
||
|
SQL requests on behalf of multiple users. Without using SQL server mode, applications
|
||
|
might encounter one or more of the following three limitations: <ol><li>A single job can only have one commit transaction per activation group.</li>
|
||
|
<li>A single job can only connect to an RDB once.</li>
|
||
|
<li>All SQL statements run under the job's user profile, regardless of the
|
||
|
user ID passed in on the connect.</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<p>SQL server mode circumvents these limitations by routing all SQL statements
|
||
|
to separate jobs. Each connection runs in its own job. The system uses prestart
|
||
|
jobs in the QSYSWRK subsystem to minimize the startup time for each connection.
|
||
|
Because each call to SQLConnect can accept a different user profile, each
|
||
|
job also has its own commit transaction. As soon as the SQLDisconnect has
|
||
|
been performed, the job is reset and put back in the pool of
|
||
|
available jobs.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rzadpstartingservermode.htm">Start DB2 UDB CLI in SQL server mode</a></strong><br />
|
||
|
</li>
|
||
|
<li class="ulchildlink"><strong><a href="rzadprestrictions.htm">Restrictions for running DB2 UDB CLI in server mode</a></strong><br />
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzadpkickoff.htm" title="DB2 UDB call level interface (CLI) is a callable Structured Query Language (SQL) programming interface that is supported in all DB2 environments except for DB2 Universal Database for z/OS and DB2 Server for VSE and VM.">SQL call level interface</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|