Adding a partition to a HALDB database that uses high key partition selection

Unless you use a partition selection exit routine, your HALDB database uses high keys for partition selection. IMS automatically sets the partition initialization (PINIT) flag for new partitions you add, as well as for any existing partitions affected by the redistribution of records to the new partition.

To add a partition to a HALDB database that uses high keys for partition selection:

Procedure

  1. For all partitions that contain records that will be redistributed, issue either the /DBRECOVERY DB partition_name command or the UPDATE DB NAME(partition_name) STOP(ACCESS) command.
  2. Unload all partitions that contain records that will be redistributed to the new partition.
  3. Define the new partition with the Partition Definition utility or DBRC commands.
  4. Allocate the data sets for the new partition.
  5. Initialize the new partition and the existing partitions affected by the redistribution of records to the new partition.
  6. Reload all partitions using the output of step 1. The image copy needed flag is set for the reloaded data sets.
  7. Make the partitions available again by issuing either the /START DB partition_name command or the UPDATE DB NAME (partition_name) START(ACCESS) command.
  8. If the online IMS system does not immediately recognize the new partition, issue either a /START DB HALDB_Master OPEN or UPDATE DB NAME(HALDB_Master) OPTION(OPEN) command to rebuild all of the online partition structures of the HALDB database specified in the command.