Network Management
NCM CacheDiffResults table is too large.
The NCM CacheDiffResults table in the Orion Database has been noted as being large and maybe impacting NCM or Orion performance.
First published date
Last published date
Overview
Each time a config is downloaded, it will compare to the same config type, then each of the others and then write an entry for each in the table, per config per device.
This data is what is used to populate the Charts regarding the Config Differences (Running, Run vs start, Run vs Baseline. This can be safely truncated if needed as NCM_CacheDiff will be rebuilt automatically itself upon the next Services to start.
The NCM CacheDiffResults table in the Orion Database has been noted as being large and maybe impacting NCM or Orion performance. After completing the troubleshooting from this article Decrease NCM CacheDiffResults table This article provides the alternative way to reduce the size of this table.
Product section
Resolution
Truncate this table - NCM_CacheDiffResults
- Stop Orion services
- Click Start > All Programs > SolarWinds Orion > Orion Service Manager.
- Click Stop Everything (Top Left of Service manager)
- To truncate the table
- Click Start > All Programs > Solarwinds Orion > Database Manager.
- Add the database if it does not exist by clicking on add default server.
- Right click on the database and select new query.
- Type the following Query into the query box in the middle.
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. TRUNCATE TABLE [NCM_CacheDiffResults]
- Click Execute Query to run the query.
- Shrink the size of the Orion Database Transaction Log File (IF it's needed)
- Stop all Orion Services using the Orion Service Manager.
- Open the SQL Server Management Studio and connect to your SQL server.
- Right-click the Orion Database and select All Tasks > Shrink > Files.
- Set the File Type to Log.
The Filegroup is not an available option. - Under the Shrink action, select the option to Reorganize pages before releasing unused space.
- Set the Shrink File to 0 MB, and then click OK.
This step may take a while to complete. A few minutes per GB. - It may be necessary to run the shrink several times
- Restart all Orion Services. The Transaction Log File should now have a decreased size.
- Run database maintenance utility
- Click Start > All Programs > SolarWinds Orion > Database Maintenance.
- Click Start
- Start the Orion Services with Orion Service Manager. (Start Everything)
- Configure the "Perform Routine Database and Archive Maintenance" job type for retention.