67 lines
4.2 KiB
HTML
67 lines
4.2 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="Native interface considerations" />
|
|
<meta name="abstract" content="An SQL table is a database physical file with one member (partition). Therefore, when the file is accessed by a native application, the native application reads and writes to the member by opening the file's member." />
|
|
<meta name="description" content="An SQL table is a database physical file with one member (partition). Therefore, when the file is accessed by a native application, the native application reads and writes to the member by opening the file's member." />
|
|
<meta name="DC.Relation" scheme="URI" content="partitionedtables.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/rgzpfm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/dspfd.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="partnative" />
|
|
<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>Native interface considerations</title>
|
|
</head>
|
|
<body id="partnative"><a name="partnative"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Native interface considerations</h1>
|
|
<div><p>An SQL table is a database physical file with one member (partition).
|
|
Therefore, when the file is accessed by a native application, the native application
|
|
reads and writes to the member by opening the file's member.</p>
|
|
<div class="section"><p>When the file (SQL table) becomes partitioned, the file becomes
|
|
a multimember file and the native application needs to specify the member
|
|
name (partition name). The native application can avoid having to specify
|
|
a member name when reading or writing data by changing the application to
|
|
use an SQL index that is based on all the members of the physical file. </p>
|
|
<div class="p">For
|
|
example, if the user created an SQL index with the following code, <pre>CREATE INDEX LIBNAME.INDEXNAME
|
|
ON LIBNAME.TABLENAME(COLUMNNAME)
|
|
NOT PARTITIONED</pre>
|
|
The native application can read and write data
|
|
from the partitioned table without having to know how the data is partitioned.</div>
|
|
<p>When the table becomes partitioned
|
|
(becomes a multimember file), any native operation that was previously done
|
|
to the table must be done for each member of the multimember
|
|
file. For example, RGZPFM FILE(LIBNAME/TABLENAME) only reorganizes the *FIRST
|
|
member. For a partitioned table, you need to use the Reorganize Physical File
|
|
Member (RGZPFM) command for each member. The Display File Description (DSPFD)
|
|
command, DSPFD FILE(LIBNAME/TABLENAME) TYPE(*MBRLIST), lists all members of
|
|
the file.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="partitionedtables.htm" title="DB2 UDB for iSeries supports partitioned tables using SQL.">Partitioned tables</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="../cl/rgzpfm.htm">Reorganize Physical File Member (RGZPFM)</a></div>
|
|
<div><a href="../cl/dspfd.htm">Display File Description (DSPFD)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |