77 lines
4.8 KiB
HTML
77 lines
4.8 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="task" />
|
||
|
<meta name="DC.Title" content="Set up SQL packages for Interactive SQL" />
|
||
|
<meta name="abstract" content="This topic applies only to non-iSeries Application Servers (ASs)." />
|
||
|
<meta name="description" content="This topic applies only to non-iSeries Application Servers (ASs)." />
|
||
|
<meta name="DC.subject" content="SQL package, for interactive SQL" />
|
||
|
<meta name="keywords" content="SQL package, for interactive SQL" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal1setup.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal1connfailure.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="rbal1setup4isql" />
|
||
|
<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>Set up SQL packages for Interactive SQL</title>
|
||
|
</head>
|
||
|
<body id="rbal1setup4isql"><a name="rbal1setup4isql"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Set up SQL packages for Interactive SQL</h1>
|
||
|
<div><p>This topic applies only to non-<span class="keyword">iSeries™</span> Application
|
||
|
Servers (ASs).</p>
|
||
|
<div class="section"> <p></p>
|
||
|
<p>If either of the following items is true, then you need
|
||
|
to ensure that SQL packages are created at the servers:</p>
|
||
|
<ul><li>If you have the <span class="keyword">DB2<sup>®</sup> UDB Query Manager and SQL Development Kit</span> and
|
||
|
plan to use the Interactive SQL (STRSQL) function of that product</li>
|
||
|
<li>If you plan to connect to non-<span class="keyword">iSeries</span> DRDA<sup>®</sup> servers
|
||
|
that use TCP/IP from a pre-V5R1 iSeries client, or to ones that do not
|
||
|
have two-phase commit capability</li>
|
||
|
</ul>
|
||
|
<p>STRSQL does not require SQL packages for <span class="keyword">iSeries server</span>s.
|
||
|
Normally, SQL packages are created automatically at a non-<span class="keyword">iSeries</span> application
|
||
|
server (AS) for users of STRSQL. However, a problem can occur because the
|
||
|
initial connection for STRSQL is to the local server, and that connection
|
||
|
is protected by two-phase commit protocols. If a subsequent connection is
|
||
|
made to a server that is only one-phase commit capable, or if TCP/IP is used
|
||
|
from a pre-V5R1 iSeries client,
|
||
|
then that connection is read-only. When an attempt is made to automatically
|
||
|
create a package over such a connection, it fails because the creation of
|
||
|
a package is considered an update, and cannot be done over a read-only connection.</p>
|
||
|
<p>The
|
||
|
solution to this is to get rid of the connection to the local database before
|
||
|
connecting to the remote AS. This can be done by doing a RELEASE ALL command
|
||
|
followed by a COMMIT. Then the connection to the remote server can be made
|
||
|
and because it is the first connection, updates can be made over it.</p>
|
||
|
<p>When
|
||
|
you start Interactive SQL, you must specify a commitment control level of
|
||
|
something other than *NONE. Also, the user ID that you use to connect with
|
||
|
must have the proper authority to create an SQL package on the application
|
||
|
server. If you receive an SQLSTATE of 42501 on the connection attempt, you
|
||
|
might not have package creation authority.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1setup.htm" title="The runtime support for an iSeries distributed relational database is provided by the operating system. Therefore, when the operating system is installed, distributed relational database support is installed.">Initial setup</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="rbal1connfailure.htm" title="Sometimes when you are running a CONNECT statement from Interactive SQL, a general SQ30080 message is given.">Connection failures specific to Interactive SQL</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|