Uninstalling IBM MQ but retaining data on IBM i
To retain your user data, for example, because you intend to reinstall IBM MQ for IBM i at a later date, we must perform a standard deletion of the product.
About this task
To perform a standard deletion of IBM MQ for IBM i, so that your user data is retained, complete the following steps:
Procedure
- Quiesce IBM MQ for IBM i. For more information, see Quiescing IBM MQ for IBM i .
-
End the IBM MQ subsystem, by issuing the
command:
ENDSBS SBS(QMQM)
-
Ensure that no locks are held on the library QMQM, by issuing the command:
WRKOBJLCK OBJ(QMQM) OBJTYPE(*LIB)
-
Use the Delete Licensed Program (DLTLICPGM) command to delete the base product (and also the
samples, AMS, and WEB components if you chose to install them).
To delete only the samples, issue the command:
DLTLICPGM LICPGM( 5724H72 ) OPTION(1)
To delete only the AMS component, issue the command:DLTLICPGM LICPGM( 5724H72 ) OPTION(2)
To delete only the WEB component, issue the command:DLTLICPGM LICPGM( 5724H72 ) OPTION(3)
To delete only extra language versions installed, issue the command:DLTLICPGM LICPGM(5724H72) LNG(nnnn)
where nnnn is the language number, as in the list here:Language ID Language 2909 Belgian English 2966 Belgian French MNCS (Multi-National Character Set) 2981 Canadian French MNCS 2975 Czech 2950 English uppercase 2924 English uppercase and lowercase 2984 English US DBCS 2938 English US uppercase DBCS 2928 French 2940 French MNCS 2929 German 2939 German MNCS 2976 Hungarian 2932 Italian 2942 Italian MNCS 2962 Japanese 2986 Korean 2978 Polish 2979 Russian 2989 Simplified Chinese 2931 Spanish To delete the base product and all other installed components, issue the command:
DLTLICPGM LICPGM( 5724H72 ) OPTION(*ALL)
Results
Delete IBM MQ for IBM i in this way deletes only the objects that belong to IBM MQ: the QMQM library, the QMQM samp library, and the subdirectories that belong to IBM MQ server within the /QIBM/ProdData/mqm directory.
If that leaves no other subdirectories (for example, if IBM MQ Java is installed it uses subdirectories there) then the /QIBM/ProdData/mqm directory itself is deleted.
None of the queue manager journal libraries, or IFS directories based upon /QIBM/UserData are removed.
Parent topic: Uninstalling IBM MQ for IBM i