102 lines
5.2 KiB
HTML
102 lines
5.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="concept" />
|
||
|
<meta name="DC.Title" content="Restrictions" />
|
||
|
<meta name="abstract" content="There are some restrictions for a partitioned table." />
|
||
|
<meta name="description" content="There are some restrictions for a partitioned table." />
|
||
|
<meta name="DC.subject" content="Partitioned tables, restrictions" />
|
||
|
<meta name="keywords" content="Partitioned tables, restrictions" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="partitionedtables.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="partrestrict" />
|
||
|
<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>Restrictions</title>
|
||
|
</head>
|
||
|
<body id="partrestrict"><a name="partrestrict"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Restrictions</h1>
|
||
|
<div><p>There are some restrictions for a partitioned table.</p>
|
||
|
<ul><li>Referential constraints are not allowed for a partitioned table.</li>
|
||
|
<li>If a primary key constraint for a partitioned table is added and then
|
||
|
dropped, the primary key index is also dropped.</li>
|
||
|
<li>If a primary key constraint is added to a partitioned table, and then
|
||
|
removed by the user, the user is not allowed to keep the table keyed.</li>
|
||
|
<li>If an existing nonpartitioned table does not have a primary key constraint,
|
||
|
but the table is keyed, the keys are removed when the table is changed to
|
||
|
a partitioned table.</li>
|
||
|
<li>DB2<sup>®</sup> Multisystem
|
||
|
files (distributed tables) are already partitioned across multiple servers
|
||
|
and cannot be partitioned across multiple members on a single system.</li>
|
||
|
<li>An update to the partitioning key that attempts to move a row to a different
|
||
|
partition is not allowed.</li>
|
||
|
<li>The number of partitioning keys is restricted to 120.</li>
|
||
|
<li>All SQL relative record processing is handled
|
||
|
as it is for DB2 Multisystem
|
||
|
support. The relative record number is determined in each individual partition,
|
||
|
not the table as a whole. For example, reading to record 27 means that you
|
||
|
read to record 27 in each partition. Each partition can contain its own record
|
||
|
27, none of which is the same.</li>
|
||
|
<li>There are some restrictions on the data type of a partition key column.
|
||
|
For range partitioning, the data type of a column used to partition a table
|
||
|
cannot be BLOB, CLOB, DBCLOB, DATALINK, floating-point type, or a distinct
|
||
|
type based on the these types. For hash partitioning, the data type of the
|
||
|
column used as part of the partition key cannot be LOB, DATE, TIME, TIMESTAMP,
|
||
|
floating-point type, or a distinct type based on one of these.</li>
|
||
|
<li>Applications using the following CL commands must be changed to use <samp class="codeph">Member
|
||
|
*ALL</samp> to process all partitions of a partitioned table: <ul><li><a href="../cl/clrpfm.htm">Clear Physical
|
||
|
File Member (CLRPFM)</a></li>
|
||
|
<li><a href="../cl/cpyfrmimpf.htm">Copy from
|
||
|
Import File (CPYFRMIMPF)</a></li>
|
||
|
<li><a href="../cl/cpytoimpf.htm">Copy to Import
|
||
|
File (CPYTOIMPF)</a></li>
|
||
|
<li><a href="../cl/dltnetf.htm">Delete Network
|
||
|
File (DLTNETF)</a></li>
|
||
|
<li><a href="../cl/opnqryf.htm">Open Query
|
||
|
File (OPNQRYF)</a></li>
|
||
|
<li><a href="../cl/runqry.htm">Run Query (RUNQRY)</a></li>
|
||
|
<li><a href="../cl/wrkobjlck.htm">Work with
|
||
|
Object Locks (WRKOBJLCK)</a></li>
|
||
|
<li><a href="../cl/apyjrnchg.htm">Apply Journaled
|
||
|
Changes (APYJRNCHG)</a></li>
|
||
|
<li><a href="../cl/apyjrnchgx.htm">Apply Journaled
|
||
|
Changes Extend (APYJRNCHGX)</a></li>
|
||
|
<li><a href="../cl/dspjrn.htm">Display Journal
|
||
|
(DSPJRN)</a></li>
|
||
|
<li><a href="../cl/rcvjrne.htm">Receive Journal
|
||
|
Entry (RCVJRNE)</a></li>
|
||
|
<li><a href="../cl/rmvjrnchg.htm">Remove Journaled
|
||
|
Changes (RMVJRNCHG)</a></li>
|
||
|
<li><a href="../cl/rtvjrne.htm">Retrieve Journal
|
||
|
Entry (RTVJRNE)</a></li>
|
||
|
<li><a href="../cl/rstobj.htm">Restore Object
|
||
|
(RSTOBJ)</a></li>
|
||
|
<li><a href="../cl/savobj.htm">Save Object
|
||
|
(SAVOBJ)</a></li>
|
||
|
<li><a href="../cl/savrstobj.htm">Save Restore
|
||
|
Object (SAVRSTOBJ)</a></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</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>
|
||
|
</body>
|
||
|
</html>
|