ibm-information-center/dist/eclipse/plugins/i5OS.ic.db2_5.4.0.1/rbafzmstpackageap.htm

65 lines
4.3 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<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="keywords" content="description, package, access plan and packages" />
<title>Packages and access plans</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="packageap"></a>
<h2 id="packageap"><a href="rbafzmst02.htm#ToC_38">Packages and access plans</a></h2><a id="idx106" name="idx106"></a><a id="idx107" name="idx107"></a>
<p>A <span class="italic">package</span> is an object that contains control structures
used to execute SQL statements.<sup class="fn"><a id="wq13" name="wq13" href="rbafzmstpackageap.htm#wq14">4</a></sup> Packages are produced during distributed program preparation. The control
structures can be thought of as the bound or operational form of SQL statements.
All control structures in a package are derived from the SQL statements embedded
in a single source program.</p>
<p>In this book, the term <span class="italic">access plan</span> is used in general
for packages, procedures, functions, triggers, and programs or service programs
that contain control structures used to execute SQL statements. For example,
the description of the DROP statement says that dropping an object also invalidates
any access plans that reference the object (see <a href="rbafzmstdropst.htm#dropst">DROP</a>). This
means that any packages, procedures, functions, triggers, and programs or
service programs containing control structures referencing the dropped object
are invalidated.</p>
<p>An invalidated <span class="italic">access plan</span> will be implicitly rebuilt
the next time its associated SQL statement is executed. For example, if an
index is dropped that is used in an <span class="italic">access plan</span> for
a SELECT INTO statement, the next time that SELECT INTO statement is executed,
the access plan will be rebuilt.</p>
<p>A package can also be created by the QSQPRCED API. Packages created by
the QSQPRCED API can only be used by the QSQPRCED API. They cannot be used
at an application server through DRDA&reg; protocols. For more information, see the <a href="../apis/file1.htm">i5/OS&trade; APIs</a> information in the <span class="bold">Programming</span> category
of the iSeries Information Center.</p>
<p>The QSQPRCED API is used by IBM eServer iSeries Access for Windows to create packages for caching
SQL statements executed via ODBC, JDBC, SQLJ, OLD DB, and .NET interfaces.</p>
<hr /><div class="fnnum"><a id="wq14" name="wq14" href="rbafzmstpackageap.htm#wq13">4</a>.</div>
<div class="fntext">For non-distributed SQL programs, non-distributed
service programs, SQL functions, and SQL procedures, the control structures
used to execute SQL statements are stored in the associated space of the object.</div>
<br />
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstali.htm">Previous Page</a> | <a href="rbafzmstch1routines.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
<a href="rbafzmstindex.htm#index">Index</a> ]
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>