Uninstalling MQ and Data

 

We can delete WebSphere MQ entirely, including all user data. If you do this, save your user data first. It will not be recoverable.

To perform this deletion:

  1. Quiesce WebSphere MQ for iSeries™. (See Quiescing MQ.)

  2. End the WebSphere MQ subsystem, by issuing the command:

    ENDSBS SBS(QMQM)

  3. Delete all queue managers by using the command WRKMQM and selecting option 4.

  4. Delete the directory /QIBM/UserData/mqm and its subdirectories. Do this using the EDTF command and selecting option 9 (recursive delete) for the mqm directory, as follows,

    If you do this, you will no longer have any information regarding your installation. Use this command with extreme caution. The format of the command is:

    EDTF STMF('/QIBM/UserData')

    Alternatively, we can delete the /QIBM/UserData/mqm directory and its subdirectories by repeated use of the RMVLNK and RMVDIR commands.

  5. Ensure that no locks are held on the library QMQM, by issuing the command:

    WRKOBJLCK OBJ(QMQM) OBJTYPE(*LIB)

  6. Optionally: At this point, if you want to also uninstall the MQ Java client, you could do it now, using the command:

    DLTLICPGM LICPGM(5724L26) OPTION(*ALL) OUTPUT(*PRINT)
    This will also uninstall the Java™ Samples, if they were installed.

  7. Use the Delete Licensed Program (DLTLICPGM) command to delete the base product (and also the samples if you chose to install them). To delete the base product and the samples issue the command:

    DLTLICPGM LICPGM(5724H72) OPTION(*ALL) OUTPUT(*PRINT)

  8. Identify all the users who belong to the QMQMADM group. Use the DSPUSRPRF command to display a list of them. You need to remove the QMQMADM group profile from their user profiles before we can delete the QMQMADM user profile. The format of the command is:

    DSPUSRPRF USRPRF(QMQMADM) TYPE(*GRPMBR)

  9. For each of the user profiles QMQM and QMQMADM, use the WRKOBJOWN command to list all the objects owned by the profile. The format of the command is:

    WRKOBJOWN USRPRF(PROFILE)

    You need to alter the ownership or delete the objects. Then delete the two user profiles.

 

Parent topic:

Uninstalling WebSphere MQ for iSeries, V6.0