(*** I'm posting this question in Thwack for visibility and transparency. Support case #1066290 created and escalated.)
There appears to be several issues that exist within the Configuration Wizard utility, or possibly the upgrade process within the Orion installer.
We know that over the years of Orion upgrades and version changes several database tables are no longer used and have been depreciated.
My own organization originally had Orion NPM v9 and have performed many upgrades and patches all the way to the current version of NPM v12 and SAM v6.2.4 over the years.
There are some old unused database tables (as well as all of it's data) still present in our Orion SQL database, and every time we run the configuration wizard it causes problems for us.
We assume that during the upgrade process, the data in the old table is supposed to be migrated to the new table(s) then delete the old table, but the old table is NOT getting removed.
For example, the "AlertDefinitions" table has not been used by Orion for some time now. The current SQL table for alert configurations is "AlertConfigurations".
Over the past year my team has completely reconfigured and re-standardized all of our alert rules. But every time we run the configuration wizard it merges/imports the data from the AlertDefinitions table into the active AlertConfigurations table, effectively re-adding in all of the old alert rules that have been made obsolete in our alert cleanup.
** Running database maintenance does NOT remove these old tables from the database. The user local SQL user account we are using has full SA rights to the Orion database in SQL Server so we know this is not a permissions issue.
So I have two questions:
- Can we safely remove the "AlertDefinitions" table from the Orion NPM database?
- What other database tables should have been removed during upgrade procedures from NPM v10 to v11, or Orion core 2015 to Orion core 2016? We want to avoid issues like this in the future.