Restoring deleted HALDB partitions

The way in which you restore a deleted HALDB partition depends on whether or not you took certain precautions before you deleted the partition.

If you made image copies and used the HALDB Partition Definition utility (%DFSHALDB) to export the partition definitions, including their partition IDs, before you deleted the partition, you can restore a deleted partition by importing the partition definition and applying the image copies.

To import only the deleted partition by using the HALDB Partition Definition utility, specify Try all partitions as the processing option in the Import a Database panel when you import the partition definition. Only the definition of the deleted partition is imported. Any definitions for partitions that were not deleted, are not imported. The restored partition has the same partition ID that it had before it was deleted, which allows you to use the image copies of the partition data sets that you made before you deleted the partition.

If you did not make image copies and export the partition definitions before you deleted the partition, instead of restoring the deleted partition, you can define a new partition to hold the records previously held by the deleted partition. However, in this case, the new partition has a different partition ID than the deleted partition and you cannot use any existing image copies of the deleted partition.