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

78 lines
5.7 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="SQL package support" />
<meta name="abstract" content="The operating system supports an object called an SQL package. The object type is *SQLPKG." />
<meta name="description" content="The operating system supports an object called an SQL package. The object type is *SQLPKG." />
<meta name="DC.subject" content="distributed relational database, packages, SQL packages, package, support, UDB for, DB2, iSeries, definition, Create SQL Package (CRTSQLPKG) command, creating, RDB parameter, command (CL), Create SQL Package (CRTSQLPKG), Create SQL Package (CRTSQLPKG) command, Delete SQL Package (DLTSQLPKG) command, deleting, Delete SQL Package (DLTSQLPKG), Delete SQL Package (DLTSQLPKG) command, authority required, authority to create, authority to run, EXECUTE privileges, for packages, authorization, for creating package, for running using a package" />
<meta name="keywords" content="distributed relational database, packages, SQL packages, package, support, UDB for, DB2, iSeries, definition, Create SQL Package (CRTSQLPKG) command, creating, RDB parameter, command (CL), Create SQL Package (CRTSQLPKG), Create SQL Package (CRTSQLPKG) command, Delete SQL Package (DLTSQLPKG) command, deleting, Delete SQL Package (DLTSQLPKG), Delete SQL Package (DLTSQLPKG) command, authority required, authority to create, authority to run, EXECUTE privileges, for packages, authorization, for creating package, for running using a package" />
<meta name="DC.Relation" scheme="URI" content="rbafydrda.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafysqlpack1.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafysqlpack2.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtsqlpkg.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="rbafypacksupport" />
<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>SQL package support</title>
</head>
<body id="rbafypacksupport"><a name="rbafypacksupport"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SQL package support</h1>
<div><p>The operating system supports an object called an SQL package.
The object type is *SQLPKG.</p>
<div class="section"><p>The SQL package contains the control structures and access plans
necessary to process SQL statements on the application server when running
a distributed program. An SQL package can be created when:</p>
<ul><li>The RDB parameter is specified on the CRTSQLxxx command and the program
object is successfully created. The SQL package will be created on the system
specified by the RDB parameter. <p>If the compile is unsuccessful or the compile
only creates the module object, the SQL package will not be created.</p>
</li>
<li>Using the CRTSQLPKG command. The CRTSQLPKG can be used to create a package
when the package was not created at precompile time or if the package is needed
at an RDB other than the one specified on the precompile command.</li>
</ul>
</div>
<div class="section"><p>The Delete SQL Package (DLTSQLPKG) command allows you to delete
an SQL package on the local system.</p>
</div>
<div class="section"><p>An SQL package is not created unless the privileges held by the
authorization ID associated with the creation of the SQL package includes
appropriate authority for creating a package on the remote system (the application
server). To run the program, the authorization ID must include EXECUTE privileges
on the SQL package. On <span class="keyword">iSeries™</span> systems,
the EXECUTE privilege includes system authority of *OBJOPR and *EXECUTE.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafysqlpack1.htm">Valid SQL statements in an SQL package</a></strong><br />
Programs that connect to another server can use any of the SQL statements except the SET TRANSACTION statement.</li>
<li class="ulchildlink"><strong><a href="rbafysqlpack2.htm">Considerations for creating an SQL package</a></strong><br />
There are many considerations to think about when you are creating an SQL package.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafydrda.htm" title="A distributed relational database consists of a set of SQL objects that are spread across interconnected computer systems.">Distributed relational database function and SQL</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/crtsqlpkg.htm">Create SQL Package (CRTSQLPKG) command</a></div>
</div>
</div>
</body>
</html>