Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Create Node Group (CRTNODGRP) command creates a node group to be used for creating distributed database files.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
NODGRP | Node group | Qualified object name | Required, Positional 1 |
Qualifier 1: Node group | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
RDB | Relational database | Values (up to 32 repetitions): Character value | Required, Positional 2 |
PTNFILE | Partitioning file | Qualified object name | Optional |
Qualifier 1: Partitioning file | Name, *NONE | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
PTNMBR | Partitioning member | Name, *FIRST | Optional |
TEXT | Text 'description' | Character value, *BLANK | Optional |
AUT | Authority | Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE | Optional |
Top |
Specifies the node group to be created.
This is a required parameter.
Qualifier 1: Node group
Qualifier 2: Library
Top |
Specifies the relational databases to be included in the node group.
This is a required parameter.
When the node group is created, a node number is assigned for each relational database specified. Node numbers are assigned consecutively, starting with 1. The first relational database is assigned node number 1, the second database is assigned node number 2, and so on. Once the node group has been created, you can use the DSPNODGRP (Display Node Group) command to see the correspondence between node numbers and relational database names.
Top |
Specifies the name of the file to be used to determine the partitioning attributes for the node group. The node group contains a table with 1024 partitions. Each partition contains a node number. The partitioning file allows you to set the node number for each of the 1024 partitions. For a complete description of the format of a partitioning file, refer to the DB2 Multisystem for OS/400 book.
Qualifier 1: Partitioning file
Qualifier 2: Library
Top |
Specifies the member in the partitioning file to be used to determine the partitioning attributes for the node group.
Note: This parameter is not valid when *NONE is specified for the Partitioning file (PTNFILE) parameter.
Top |
Specifies the text that briefly describes the node group.
Top |
Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
Top |
Example 1: Creating a Group with Default Partitioning
CRTNODGRP NODGRP(LIB1/GROUP1) RDB(SYSTEMA SYSTEMB SYSTEMC SYSTEMD) TEXT('Node group for test files')
This command creates a node group containing four nodes. 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) CL command to create a distributed file. Distributed files created specifying this node group will have their data spread across the four node systems. If the records in the distributed file contain a uniform distribution of values for those fields which comprise the partition key, the records will be spread evenly between the node systems.
Example 2: Creating a Group with Specific Partitioning
CRTNODGRP NODGRP(LIB1/GROUP2) RDB(SYSTEMA SYSTEMB SYSTEMC) PTNFILE(LIB1/PTN1) TEXT('Partition most of the data to SYSTEMA')
This command creates a node group containing three nodes. The partitioning attributes are taken from the file called PTN1. This file can be set up to force a higher percentage of the records (or rows) to be located on a particular system.
Top |
Top |