The DB2 data provider has been marked as deprecated, and is hidden from the QGIS UI by default.
QGIS has adopted a gentle approach to removing unmaintained core providers, and users of deprecated providers may enable support for them by setting the hidden "providers/showDeprecated" settings key to true.
This feature was developed by Nyall Dawson