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

63 lines
4.0 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="Consistency token" />
<meta name="abstract" content="The program and its associated SQL package contain a consistency token that is checked when a call is made to the SQL package." />
<meta name="description" content="The program and its associated SQL package contain a consistency token that is checked when a call is made to the SQL package." />
<meta name="DC.subject" content="package, consistency token" />
<meta name="keywords" content="package, consistency token" />
<meta name="DC.Relation" scheme="URI" content="rbafysqlpack2.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="rbafypackconsider12" />
<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>Consistency token</title>
</head>
<body id="rbafypackconsider12"><a name="rbafypackconsider12"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Consistency token</h1>
<div><p>The program and its associated SQL package contain a consistency
token that is checked when a call is made to the SQL package.</p>
<div class="section"><p>The consistency tokens must match or the package
cannot be used. It is possible for the program and SQL package to appear to
be uncoordinated. Assume the program is on the <span class="keyword">iSeries™</span> system
and the application server is another <span class="keyword">iSeries</span> system.
The program is running in session A and it is recreated in session B (where
the SQL package is also recreated). The next call to the program in session
A might result in a consistency token error. To avoid locating the SQL package
on each call, SQL maintains a list of addresses for SQL packages that are
used by each session. When session B re-creates the SQL package, the old SQL
package is moved to the QRPLOBJ library. The address to the SQL package in
session A is still valid. (This situation can be avoided by creating the program
and SQL package from the session that is running the program, or by submitting
a remote command to delete the old SQL package before creating the program.)</p>
</div>
<div class="section"><p>To use the new SQL package, you should end the connection with
the remote system. You can either sign off the session and then sign on again,
or you can use the interactive SQL (STRSQL) command to issue a DISCONNECT
for unprotected network connections or a RELEASE followed by a COMMIT for
protected connections. RCLDDMCNV should then be used to end the network connections.
Call the program again.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafysqlpack2.htm" title="There are many considerations to think about when you are creating an SQL package.">Considerations for creating an SQL package</a></div>
</div>
</div>
</body>
</html>