Deleting a partition permanently removes a partition and
any records that it might contain from both the HALDB database. The
records associated with the deleted partition are also permanently
removed from the RECON data set.
To delete a partition from a HALDB database that selects
partitions using high keys:
Procedure
- Take an image copy of the partition you intend to delete
and any partitions in to which records from the deleted partition
will be moved.
- Stop access to the partition you are deleting and the other
affected partitions by issuing either the
/DBRECOVERY DB partition_name command
or the UPDATE DB NAME(partition_name)
STOP(ACCESS) command.
- Unload both the partition you are deleting and the other
partitions affected by the deletion.
- Delete the definition of the partition from the RECON data
set by using one of the following methods:
- The HALDB Partition Definition utility
- The DBRC command
DELETE.PART DBD(HALDB_master_name)
PART(partition_name)
- Ensure that the high key values defined in the RECON data
set for each partition are still appropriate.
- Initialize the remaining partitions that will contain the
records of the deleted partition.
- Reload the remaining partitions using the output of step
1.
- Take an image copy of the reloaded partitions. The image
copy needed flag is set for the data sets of the reloaded partition.
- Issue the
/START DB partition_name command
or the UPDATE DB NAME(partition_name)
START(ACCESS) command to make the affected partitions available
again.
After you complete the deletion process, IMS issues message DFS0415W with reason code
90 for the deleted partition when IMS rebuilds
the online partition structures for the HALDB database.