110 lines
9.5 KiB
HTML
110 lines
9.5 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="Create Node Group (CRTNODGRP) command" />
|
|||
|
<meta name="abstract" content="This section uses two CL command examples to show how to create a node group by using the Create Node Group (CRTNODGRP) command." />
|
|||
|
<meta name="description" content="This section uses two CL command examples to show how to create a node group by using the Create Node Group (CRTNODGRP) command." />
|
|||
|
<meta name="DC.subject" content="node group, creating, example, creating with default partitioning, CRTNODGRP (Create Node Group) command, using, Create Node Group (CRTNODGRP) command, command, CL, CRTNODGRP (Create Node Group), Create Node Group (CRTNODGRP), examples, NODGRP (node group) parameter, node group (NODGRP) parameter, CRTPF (Create Physical File) command, Create Physical File (CRTPF) command, command, CL, CRTPF (Create Physical File), Create Physical File (CRTPF), PTNFILE (partitioning file) parameter, partitioning file (PTNFILE) parameter, creating node group with specific partitioning, with specific partitioning, partitioning file example, figure, partitioning file, partitioning file, file definition, visibility node, definition, visibility node, node, visibility, data node, data, example of how to use, visibility node, using, how to create" />
|
|||
|
<meta name="keywords" content="node group, creating, example, creating with default partitioning, CRTNODGRP (Create Node Group) command, using, Create Node Group (CRTNODGRP) command, command, CL, CRTNODGRP (Create Node Group), Create Node Group (CRTNODGRP), examples, NODGRP (node group) parameter, node group (NODGRP) parameter, CRTPF (Create Physical File) command, Create Physical File (CRTPF) command, command, CL, CRTPF (Create Physical File), Create Physical File (CRTPF), PTNFILE (partitioning file) parameter, partitioning file (PTNFILE) parameter, creating node group with specific partitioning, with specific partitioning, partitioning file example, figure, partitioning file, partitioning file, file definition, visibility node, definition, visibility node, node, visibility, data node, data, example of how to use, visibility node, using, how to create" />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="rzaf3c2-gen4.htm" />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="nodework.htm" />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="crtdf.htm" />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="chgnga.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="crtngc" />
|
|||
|
<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>Create Node Group (CRTNODGRP) command</title>
|
|||
|
</head>
|
|||
|
<body id="crtngc"><a name="crtngc"><!-- --></a>
|
|||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|||
|
<h1 class="topictitle1">Create Node Group (CRTNODGRP) command</h1>
|
|||
|
<div><p>This section uses two CL command examples to show how to create
|
|||
|
a node group by using the Create Node Group (CRTNODGRP) command.</p>
|
|||
|
<div class="p">In the following example, a node group with default partitioning (equal
|
|||
|
partitioning across the systems) is created: <pre>CRTNODGRP NODGRP(LIB1/GROUP1) RDB(SYSTEMA SYSTEMB SYSTEMC SYSTEMD)
|
|||
|
TEXT('Node group for test files')</pre>
|
|||
|
</div>
|
|||
|
<p>In this example, the command creates a node group that contains four nodes.
|
|||
|
Note that each of the nodes must be defined RDB entries (previously added
|
|||
|
to the relational database directory using the ADDRDBDIRE command) and that
|
|||
|
one node must be defined as local (*LOCAL).</p>
|
|||
|
<p>The partitioning attributes default to assigning one-fourth of the partitions
|
|||
|
to each node number. This node group can be used on the NODGRP parameter of
|
|||
|
the Create Physical File (CRTPF) command to create a distributed file. For
|
|||
|
more information about distributed files, see Creating distributed files with DB2<sup>®</sup> Multisystem.</p>
|
|||
|
<div class="p">In the following example, a node group with specified partitioning is created
|
|||
|
by using the partitioning file (PTNFILE) parameter: <pre>CRTNODGRP NODGRP(LIB1/GROUP2) RDB(SYSTEMA SYSTEMB SYSTEMC)
|
|||
|
PTNFILE(LIB1/PTN1)
|
|||
|
TEXT('Partition most of the data to SYSTEMA')</pre>
|
|||
|
</div>
|
|||
|
<p>In this example, the command creates a node group that contains three nodes
|
|||
|
(SYSTEMA, SYSTEMB, and SYSTEMC). The partitioning attributes are taken from
|
|||
|
the file called PTN1. This file can be set up to force a higher percentage
|
|||
|
of the records to be located on a particular system.</p>
|
|||
|
<p>The file PTN1 in this example is a partitioning file. This file is not
|
|||
|
a distributed file, but a regular local physical file that can be used to
|
|||
|
set up a custom partitioning scheme. The partitioning file must have one 2-byte
|
|||
|
binary field. The partitioning file must contain 1024 records in which each
|
|||
|
record contains a valid node number.</p>
|
|||
|
<div class="fignone" id="crtngc__ftn1"><a name="crtngc__ftn1"><!-- --></a><span class="figcap">Figure 1. Example of the contents of partitioning file PTNFILE</span><br /><img src="rbal3508.gif" alt="In this graphic of a partitioning file with a 2–byte binary field, Row 1 corresponds to partition number 0, and Row 1024 corresponds to partition number 1023." /><br /></div>
|
|||
|
<p>If the node group contains three nodes, all of the records in the partitioning
|
|||
|
file must have numbers 1, 2, or 3. The node numbers are assigned in the order
|
|||
|
that the RDB names were specified on the Create Node Group (CRTNODGRP) command.
|
|||
|
A higher percentage of data can be forced to a particular node by having more
|
|||
|
records containing that node number in the partitioning file. This is a method
|
|||
|
for customizing the partitioning with respect to the amount of data that physically
|
|||
|
resides on each system. To customize the partitioning with respect to specific
|
|||
|
values residing on specific nodes, use the Change Node Group Attributes (CHGNODGRPA)
|
|||
|
command. See Changing node groups using the CHGNODGRPA command with DB2 Multisystem
|
|||
|
for more information.</p>
|
|||
|
<p>You should note that, because the node group information is stored in the
|
|||
|
distributed file, the file is not immediately sensitive to changes in the
|
|||
|
node group or to changes in the RDB directory entries that are included in
|
|||
|
the node group. You can make modifications to node groups and RDB directory
|
|||
|
entries, but until you use the CHGPF command and specify the changed node
|
|||
|
group, your files do not change their behavior.</p>
|
|||
|
<p>Another concept is that of a <em>visibility node</em>. A
|
|||
|
visibility node within a node group contains the file object (part of the
|
|||
|
mechanism that allows the file to be distributed across several nodes), but
|
|||
|
no data. A visibility node retains a current level of the file object at all
|
|||
|
times; the visibility node has no data stored on it. In contrast, a node (sometimes
|
|||
|
called a <em>data node</em>) contains data. As an example of how you can use
|
|||
|
a visibility node in your node group, assume that the <span class="keyword">iSeries™</span> server
|
|||
|
that your sales executives use is part of your node group. These executives
|
|||
|
probably do not want to run queries on a regular basis, but on occasion they
|
|||
|
might want to run a specific query. From their server, they can run their
|
|||
|
queries, access real-time data, and receive the results of their query. So
|
|||
|
even though none of the data is stored on their server, because their system
|
|||
|
is a visibility node, the executives can run the query whenever necessary.</p>
|
|||
|
<p>To specify a node as being a visibility node, you must use the PTNFILE
|
|||
|
parameter on the Create Node Group (CRTNODGRP) command. If the partitioning
|
|||
|
file contains no records for a particular node number, that node is a visibility
|
|||
|
node.</p>
|
|||
|
</div>
|
|||
|
<div>
|
|||
|
<div class="familylinks">
|
|||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaf3c2-gen4.htm" title="To enable database files to be visible across a set of iSeries servers, you must first define the group of systems (node group) that you want the files on.">Introduction of node groups with DB2 Multisystem</a></div>
|
|||
|
</div>
|
|||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|||
|
<div><a href="nodework.htm" title="A node group is a system object (*NODGRP), which is stored on the system on which it was created.">How node groups work with DB2 Multisystem</a></div>
|
|||
|
<div><a href="crtdf.htm" title="A distributed file is a database file that is spread across multiple iSeries servers.">Distributed files with DB2 Multisystem</a></div>
|
|||
|
<div><a href="chgnga.htm" title="The Change Node Group Attributes (CHGNODGRPA) command changes the data partitioning attributes for a node group.">Change Node Group Attributes (CHGNODGRPA) command</a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|