ibm-information-center/dist/eclipse/plugins/i5OS.ic.sqlp_5.4.0.1/rbafydrda.htm

133 lines
11 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="Distributed relational database function and SQL" />
<meta name="abstract" content="A distributed relational database consists of a set of SQL objects that are spread across interconnected computer systems." />
<meta name="description" content="A distributed relational database consists of a set of SQL objects that are spread across interconnected computer systems." />
<meta name="DC.subject" content="distributed relational database, application requester, application server, application requester, DRDA (Distributed Relational Database Architecture), remote unit of work, unit of work, remote, RUW (remote unit of work), distributed relational database, distributed unit of work, distributed, DUW (distributed unit of work)" />
<meta name="keywords" content="distributed relational database, application requester, application server, application requester, DRDA (Distributed Relational Database Architecture), remote unit of work, unit of work, remote, RUW (remote unit of work), distributed relational database, distributed unit of work, distributed, DUW (distributed unit of work)" />
<meta name="DC.Relation" scheme="URI" content="rbafykickoff.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafydrdbsupport.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafydrdbexample.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafypacksupport.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyccsidpackage.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyconnectmgmt.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafydistribsupport.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyduwex.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyardpgmex.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyprobhandle.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafydrdastoredproc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyintro.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafypack1.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafydatadrda.htm" />
<meta name="DC.Relation" scheme="URI" content="../ddp/rbal1kickoff.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="rbafydrda" />
<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>Distributed relational database function and SQL</title>
</head>
<body id="rbafydrda"><a name="rbafydrda"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Distributed relational database function and SQL</h1>
<div><p>A <dfn class="term">distributed relational database</dfn> consists of a set
of SQL objects that are spread across interconnected computer systems.</p>
<div class="section"><p>These relational databases can be of the same type (for example, <span class="keyword">DB2<sup>®</sup> UDB for iSeries™</span>) or of different types (DB2
Universal Database™ for z/OS<sup>®</sup>, DB2 for VSE and VM, DB2 Universal Database™ (UDB),
or non-IBM database management systems which support DRDA<sup>®</sup>). Each relational database has a relational
database manager to manage the tables in its environment. The database managers
communicate and cooperate with each other in a way that allows a given database
manager access to run SQL statements on a relational database on another system.</p>
</div>
<div class="section"><p>The application requester supports the application side of a connection.
The application server is the local or remote database to which an application
requester is connected. <span class="keyword">DB2 UDB for iSeries</span> provides
support for Distributed
Relational Database Architecture™ (DRDA) to allow an application requester
to communicate with application servers. In addition, <span class="keyword">DB2 UDB for iSeries</span> can
call exit programs to allow access to data on other database management systems
which do not support DRDA. These exit programs are called application requester
driver (ARD) programs.</p>
</div>
<div class="section"><p><span class="keyword">DB2 UDB for iSeries</span> supports
two levels of distributed relational database: </p>
<ul><li>Remote unit of work (RUW) <p>Remote unit of work is where the preparation
and running of SQL statements occurs at only one application server during
a unit of work. <span class="keyword">DB2 UDB for iSeries</span> supports
RUW over either APPC or TCP/IP.</p>
</li>
<li>Distributed unit of work (DUW) <p>Distributed unit of work is where the
preparation and running of SQL statements can occur at multiple applications
servers during a unit of work. However, a single SQL statement can only refer
to objects located at a single application server. <span class="keyword">DB2 UDB for iSeries</span> supports
DUW over APPC and, beginning in V5R1, introduced support for DUW over TCP/IP.</p>
</li>
</ul>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafydrdbsupport.htm">DB2 UDB for iSeries distributed relational database support</a></strong><br />
The <span class="keyword">DB2 UDB Query Manager and SQL Development Kit</span> licensed
program supports interactive access to distributed databases with the following
SQL statements.</li>
<li class="ulchildlink"><strong><a href="rbafydrdbexample.htm">DB2 UDB for iSeries distributed relational database example program</a></strong><br />
A remote unit of work relational database sample program is
shipped with the SQL product. There are several files and members within the
QSQL library to help you set up an environment that will run a distributed <span class="keyword">DB2 UDB for iSeries</span> sample program.</li>
<li class="ulchildlink"><strong><a href="rbafypacksupport.htm">SQL package support</a></strong><br />
The operating system supports an object called an SQL package. The object type is *SQLPKG.</li>
<li class="ulchildlink"><strong><a href="rbafyccsidpackage.htm">CCSID considerations for SQL</a></strong><br />
If you are running a distributed application and one of your systems
is not an <span class="keyword">iSeries</span> system, the
job CCSID value on the <span class="keyword">iSeries</span> server
cannot be set to 65535.</li>
<li class="ulchildlink"><strong><a href="rbafyconnectmgmt.htm">Connection management and activation groups</a></strong><br />
SQL connections are managed at the activation group level. Each activation group within a job manages its own connections and these connections are not shared across activation groups.</li>
<li class="ulchildlink"><strong><a href="rbafydistribsupport.htm">Distributed support</a></strong><br />
<span class="keyword">DB2 UDB for iSeries</span> supports
two levels of distributed relational database.</li>
<li class="ulchildlink"><strong><a href="rbafyduwex.htm">Distributed unit of work</a></strong><br />
Distributed unit of work (DUW) allows access to multiple application servers within the same unit of work. Each SQL statement can access only one application server. Using distributed unit of work allows changes at multiple applications servers to be committed or rolled back within a single unit of work.</li>
<li class="ulchildlink"><strong><a href="rbafyardpgmex.htm">Application requester driver programs</a></strong><br />
To complement database access provided by products that implement DRDA, <span class="keyword">DB2 UDB for iSeries</span> provides an interface for writing
exit programs on a <span class="keyword">DB2 UDB for iSeries</span> application
requester to process SQL requests. Such an exit program is called an <dfn class="term">application
requester driver</dfn>.</li>
<li class="ulchildlink"><strong><a href="rbafyprobhandle.htm">Problem handling</a></strong><br />
The primary strategy for capturing and reporting error information
for the distributed database function is called <dfn class="term">first failure
data capture (FFDC)</dfn>.</li>
<li class="ulchildlink"><strong><a href="rbafydrdastoredproc.htm">DRDA stored procedure considerations</a></strong><br />
The iSeries DRDA server
supports the return of one or more result sets from a stored procedure.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafykickoff.htm" title="These topics describe the iSeries server implementation of the Structured Query Language (SQL) using DB2 UDB for iSeries and the DB2 UDB Query Manager and SQL Development Kit Version 5 licensed program.">SQL programming</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbafyintro.htm" title="These topics describe the iSeries server implementation of the Structured Query Language (SQL) using DB2 UDB for iSeries and the DB2 UDB Query Manager and SQL Development Kit licensed program.">Introduction to DB2 UDB for iSeries Structured Query Language</a></div>
<div><a href="rbafypack1.htm" title="An SQL package is an object that contains the control structure produced when the SQL statements in an application program are bound to a remote relational database management system (DBMS).">SQL packages</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbafydatadrda.htm" title="A distributed relational database consists of a set of SQL objects that are spread across interconnected computer systems. Each relational database has a relational database manager to manage the tables in its environment.">Access data using Distributed Relational Database (DRDA)</a></div>
<div><a href="../ddp/rbal1kickoff.htm">Distributed database programming</a></div>
</div>
</div>
</body>
</html>