You create a database partition group with the CREATE DATABASE PARTITION GROUP statement. This statement specifies the set of database partitions on which the table space containers and table data are to reside.
CREATE DATABASE PARTITION GROUP db-partition-group-name
ON DBPARTITIONNUM (db-partition-number1,db-partition-number1)
or CREATE DATABASE PARTITION GROUP db-partition-group-name
ON DBPARTITIONNUMS (db-partition-number1
TO db-partition-number2)
For example, assume
that you want to load some tables on a subset of the database partitions in
your database. You would use the following command to create a database partition
group of two database partitions (1 and 2) in a database consisting of at
least three (0 to 2) database partitions: CREATE DATABASE PARTITION GROUP mixng12 ON DBPARTITIONNUM (1,2)
or CREATE DATABASE PARTITION GROUP mixng12 ON DBPARTITIONNUMS (1 TO 2)
The CREATE DATABASE command or sqlecrea() API also create the default system database partition groups, IBMDEFAULTGROUP, IBMCATGROUP, and IBMTEMPGROUP.