88 lines
7.6 KiB
HTML
88 lines
7.6 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="Distributed files with DB2 Multisystem" />
|
|
<meta name="abstract" content="A distributed file is a database file that is spread across multiple iSeries servers." />
|
|
<meta name="description" content="A distributed file is a database file that is spread across multiple iSeries servers." />
|
|
<meta name="DC.subject" content="distributed file, creating, database file, creating as a distributed file, CRTPF (Create Physical File) command, Create Physical File (CRTPF) command, command, CL, CRTPF (Create Physical File), Create Physical File (CRTPF), NODGRP (node group) parameter, node group (NODGRP) parameter, PTNKEY (partitioning key) parameter, partitioning key (PTNKEY) parameter, introduction, CHGPF (Change Physical File) command, Change Physical File (CHGPF) command, CHGPF (Change Physical File), Change Physical File (CHGPF)" />
|
|
<meta name="keywords" content="distributed file, creating, database file, creating as a distributed file, CRTPF (Create Physical File) command, Create Physical File (CRTPF) command, command, CL, CRTPF (Create Physical File), Create Physical File (CRTPF), NODGRP (node group) parameter, node group (NODGRP) parameter, PTNKEY (partitioning key) parameter, partitioning key (PTNKEY) parameter, introduction, CHGPF (Change Physical File) command, Change Physical File (CHGPF) command, CHGPF (Change Physical File), Change Physical File (CHGPF)" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaf3kickoff.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="createdisfile.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="usedisfile.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="ption.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="custdd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="crtngc.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="clwork.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="crtdf" />
|
|
<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>Distributed files with DB2 Multisystem</title>
|
|
</head>
|
|
<body id="crtdf"><a name="crtdf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Distributed files with DB2<sup>®</sup> Multisystem</h1>
|
|
<div><p>A <em>distributed file</em> is a database file that is spread across
|
|
multiple <span class="keyword">iSeries™</span> servers.</p>
|
|
<p>Distributed files can be updated, and they can be accessed through such
|
|
methods as SQL, query tools, and the Display Physical File Member (DSPPFM)
|
|
command. For database operations, distributed files are treated just like
|
|
local files, for the most part. For information about CL command changes for
|
|
distributed files, see How CL commands work with distributed files topic.</p>
|
|
<p>To create a database file as a distributed file, you can use either the
|
|
Create Physical File (CRTPF) command or the SQL CREATE TABLE statement. Both
|
|
methods are discussed in more detail in this topic. The CRTPF
|
|
command has two parameters, node group (NODGRP) and partitioning key (PTNKEY),
|
|
that create the file as a distributed file. You can see the distributed database
|
|
file as an object (*FILE with the PF attribute) that has the name and library
|
|
that you specified when you ran the CRTPF command.</p>
|
|
<p>If you want to change an existing nondistributed database physical file
|
|
into a distributed file, you can do this by using the Change Physical File
|
|
(CHGPF) command. On the CHGPF command, the NODGRP and PTNKEY parameters allow
|
|
you to make the change to a distributed file. Through the CHGPF command, you
|
|
can also change the data partitioning attributes for an existing distributed
|
|
database file by specifying values for the NODGRP and PTNKEY parameters. Specifying
|
|
values for these parameters causes the data to be redistributed according
|
|
to the partitioning table in the node group.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> All logical files that are based over the physical file that is being
|
|
changed to a distributed file also become distributed files. For large files
|
|
or large networks, redistributing data can take some time and should not be
|
|
done frequently.</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="createdisfile.htm">Create Physical File (CRTPF) command and SQL CREATE TABLE statement</a></strong><br />
|
|
This topic provides information about creating a distributed physical file by using the Create Physical File (CRTPF) command or the SQL CREATE TABLE statement.</li>
|
|
<li class="ulchildlink"><strong><a href="usedisfile.htm">System activities after the distributed file is created</a></strong><br />
|
|
As soon as the file is created, the system ensures that the data is partitioned and that the files remain at concurrent levels.</li>
|
|
<li class="ulchildlink"><strong><a href="ption.htm">Partitioning with DB2 Multisystem</a></strong><br />
|
|
<em>Partitioning</em> is the process of distributing a file across
|
|
the nodes in a node group.</li>
|
|
<li class="ulchildlink"><strong><a href="custdd.htm">Customization of data distribution with DB2 Multisystem</a></strong><br />
|
|
Because the system is responsible for placing the data, you do not need to know where the records actually reside. However, if you want to guarantee that certain records are always stored on a particular system, you can use the Change Node Group Attributes (CHGNODGRPA) command to specify where those records reside.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaf3kickoff.htm" title="This topic describes the fundamental concepts of DB2 Multisystem, such as distributed relational database files, node groups, and partitioning, and provides the information necessary to create and to use database files that are partitioned across multiple iSeries servers. Information is provided on how to configure the systems, how to create the files, and how the files can be used in applications. This topic also describes table partitioning. Table partitioning varies from multisystem partitioning in that it is a table partitioned on a single server.">DB2 Multisystem</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="crtngc.htm" title="This section uses two CL command examples to show how to create a node group by using the Create Node Group (CRTNODGRP) command.">Create Node Group (CRTNODGRP) command</a></div>
|
|
<div><a href="clwork.htm" title="This topic addresses issuing CL commands against distributed files with DB2 Multisystem.">How CL commands work with distributed files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |