You can add new database partitions that are online to
a partitioned database environment while it is running and while applications
are connected to databases.
Procedure
To add an online database partition to a running database
manager using the command line:
- On any existing database partition, run the START
DBM command.
On all platforms, specify the
new database partition values for DBPARTITIONNUM, ADD
DBPARTITIONNUM, HOSTNAME, PORT,
and NETNAME parameters. On the Windows platform,
you also specify the COMPUTER, USER,
and PASSWORD parameters.
You can also specify
the source for any temporary table space container definitions that
must be created with the databases. If you do not provide table space
information, temporary table space container definitions are retrieved
from the catalog partition for each database.
For example, to
add three new database partitions to an existing database, issue the
following commands:
START DBM DBPARTITIONNUM 3 ADD DBPARTITIONNUM HOSTNAME HOSTNAME3
PORT PORT3;
START DBM DBPARTITIONNUM 4 ADD DBPARTITIONNUM HOSTNAME HOSTNAME4
PORT PORT4;
START DBM DBPARTITIONNUM 5 ADD DBPARTITIONNUM HOSTNAME HOSTNAME5
PORT PORT5;
- Optional: Alter the database partition group
to incorporate the new database partition.
This action can
also be an option when redistributing the data to the new database
partition.
- Optional: Redistribute data to the new database
partition.
This action is not really optional if you want
to take advantage of the new database partitions. You can also include
the alter database partition group option as part of the redistribution
operation. Otherwise, altering the database partition group to incorporate
the new database partitions must be done as a separate action before
redistributing the data to the new database partition.
- Optional: Back up all databases on the new
database partition.
Although optional, this would be helpful
to have for the new database partition and for the other database
partitions particularly if you redistributed the data across both
the old and the new database partitions.