Quantcast
Viewing latest article 8
Browse Latest Browse All 20

Re: How I can delete data from my database to free up space?

We had similar issues, with our database getting too big.  We tackled this in several ways...

 

  1. Change Data Retention settings within the SolarWinds/Orion UI. -- For example, reducing the Syslog retention to 14 days has helped a lot.
  2. Database Shrink -- This was mentioned by a fellow Thwack-er, and this helped but only after we had made changes to our retention settings.
  3. Truncating some tables (i.e. Wireless tables).  Below is an example of truncate commands I received from SW tech support:
    1. Truncate WL tables

      truncate table [dbo].[NPM_NV_WL_APS_DAILY]
      truncate table [dbo].[NPM_NV_WL_APS_DETAIL]
      truncate table [dbo].[NPM_NV_WL_APS_HOURLY]
      truncate table [dbo].[NPM_NV_WL_CLIENTS_DAILY]
      truncate table [dbo].[NPM_NV_WL_CLIENTS_DETAIL]
      truncate table [dbo].[NPM_NV_WL_CLIENTS_HOURLY]
      truncate table [dbo].[NPM_NV_WL_CONTROLLERS_DAILY]
      truncate table [dbo].[NPM_NV_WL_CONTROLLERS_DETAIL]
      truncate table [dbo].[NPM_NV_WL_CONTROLLERS_HOURLY]
      truncate table [dbo].[NPM_NV_WL_INTERFACES_DAILY]
      truncate table [dbo].[NPM_NV_WL_INTERFACES_DETAIL]
      truncate table [dbo].[NPM_NV_WL_INTERFACES_HOURLY]

 

Of course, before truncating any tables... Please, (1) verify that you are truncating the correct table -- lest you end up wiping out tables critical to the application.  Also, (2) ensure that you have a good SQL backup of the SolarWinds database.  Anyway,I hope this helps in your aim to trim the size of your database.  Lastly, I would concur with my fellow Thwakers' words of caution when dealing with the SQL database.  If you are a newbie on SQL issues, it is best for you to contact SW tech support.  They will provide you with the guidance you need, and will significantly reduce chances of something going very badly.

 

Best wishes.


Viewing latest article 8
Browse Latest Browse All 20

Trending Articles