I thought I had removed solutions prior to migrating the content DB but still get the following Health Anaylzer messages on the 2010 Web server:
[MissingFeature] Database [WSS_Content] has reference(s) to a missing feature: Id = [ab314113-075d-4aaa-bca4-8906758c8d2d]. The feature with Id ab314113-075d-4aaa-bca4-8906758c8d2d is referenced in the database [WSS_Content], but is not installed on the current farm. The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary.
[MissingFeature] Database [WSS_Content] has reference(s) to a missing feature: Id = [472aa5bb-c6d5-4f9e-8539-ca64a62bb7c5]. The feature with Id 472aa5bb-c6d5-4f9e-8539-ca64a62bb7c5 is referenced in the database [WSS_Content], but is not installed on the current farm. The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary.
[MissingSetupFile] File [Features\OEMAlert\OEMAlert\OEMAlert.webpart] is referenced [1] times in the database [WSS_Content], but is not installed on the current farm. Please install any feature/solution which contains this file. One or more setup files are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingWebPart] WebPart class [97ded2bd-da4b-1c8c-87bb-446d7d77c313] is referenced [2] times in the database [WSS_Content], but is not installed on the current farm. Please install any feature/solution which contains this web part. One or more web parts are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these web parts.
[MissingWebPart] WebPart class [2795e39b-dbab-5d0e-7ae8-8cace0abae2b] is referenced [2] times in the database [WSS_Content], but is not installed on the current farm. Please install any feature/solution which contains this web part. One or more web parts are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these web parts.
Is there a set of steps that I can follow to make sure that there are no remnants of Features/solutions referenced before migrating (attaching DB)?