Home | Previous Page | Next Page   Utility Reference > onutil: Check, Define, and Modify Storage Objects > CREATE COGROUP >

Creating the New Cogroup

When you create a cogroup, you can specify the cogroup name with either an identifier or a cogroup range identifier. For more details on identifiers and cogroup range identifiers, see Identifiers in onutil Commands and Coserver List.

The following example shows an onutil CREATE COGROUP command in which an identifier names the new cogroup:

% onutil
1> CREATE COGROUP acctg_cogroup_east
2>    FROM eds.1, eds.2, eds.3, eds.4, eds.5, eds.6;

The following example shows a CREATE COGROUP command in which a cogroup range identifier names the new cogroup:

% onutil
1> CREATE COGROUP cg%r(1..2) 
2>    FROM eds.%r(13..16); 

To produce a list of cogroup names, the %r formatting character in the COGROUP clause is iteratively substituted with the integer values that the range list specifies.

This example creates the following cogroups:

To produce a list of coserver names, the %r formatting character in the FROM clause is iteratively substituted with the integer values that the range list specifies.

Important:
The number of coserver values in the FROM clause must be a multiple of the number of cogroup values in COGROUP.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]