Home

 

Removing queue managers in WebSphere MQ for Windows

 

If you encounter problems with the dltmqm command in WebSphere MQ for Windows, use the following procedure to delete a queue manager:

  1. Type REGEDIT from the command prompt to start the Registry Editor.

  2. Select the HKEY_LOCAL_MACHINE window.

  3. Navigate the tree structure in the left-hand pane of the Registry Editor to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion

    Make a note of the values within this key called WorkPath and LogPath. Within each of the directories named by these values, you are going to delete a subdirectory containing the data for the queue manager that you are trying to delete. You now need to find out the name of the subdirectory which corresponds to your queue manager.

  4. Navigate the tree structure to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\ Configuration\QueueManager

    Within this key there is a key for each of the queue managers on this computer containing the configuration information for the queue manager. The name of this queue manager key is the name of the subdirectory in which the queue manager’s data is stored in the file system. By default, this name is the same as the queue manager name, but the name might be a transformation of the queue manager name.

  5. Examine the keys within the current key. Look for the key that contains a value called Name. Name contains the name of the queue manager you are trying to delete. Make a note of the name of the key containing the name of the queue manager you are trying to delete. This is the subdirectory name.

  6. Locate the queue manager data directory. The name of this directory is the WorkPath followed by the subdirectory name. Delete this directory, and all subdirectories and files.

  7. Locate the queue manager’s log directory. The name of this directory is the LogPath followed by the subdirectory name. Delete this directory, and all subdirectories and files.

  8. Remove the registry entries that refer to the deleted queue manager. First, navigate the tree structure in the Registry Editor to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\ Configuration\DefaultQueueManager

  9. If the value called Name within this key matches the name of the queue manager you are deleting, delete the DefaultQueueManager key.

  10. Navigate the tree to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\ Configuration\Services

  11. Within this key, delete the key whose name matches the subdirectory name of the queue manager which you are deleting.

  12. Navigate the tree to the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\ Configuration\QueueManager

  13. Within this key, delete the key whose name matches the subdirectory name of the queue manager which you are deleting.

 

Parent topic:

Removing queue managers manually


fa22330_


 

Home