Can some one help me how to fix the NetPerfMon database consistency issues for Solarwinds Application upgrade
Email: abhilash.jakkidi@flocorp.com
Thanks For Reply.
We contacted Support already they said only support application not SQL Database.
Hello jakkidi,
you have 2 options from this point:1. restore the Database to the last know functioning state.2. repair the Database...
(make sure to make a Database Backup before you start)
You can repair the Database using DBCC with REPAIR options using SQL Server Management Studio
USE [master]GOALTER DATABASE [SolarWindsOrion] SET SINGLE_USER WITH NO_WAITGODBCC CHECKDB ('SolarWindsOrion', REPAIR)GOALTER DATABASE [SolarWindsOrion] SET MULTI_USERGO
The results should usualy be like this:
CHECKDB found 0 allocation errors and 0 consistency errors in database 'SolarWindsOrion'.DBCC execution completed.
Due to you have inconsistence, you will have an output like 15 allocation errors, 15 repaired allocation errors and 21 consistency errors, 21 repaired consistency errors.
if not all errors are repaired you can try the REPAIR_REBUILD action:
USE [master]GOALTER DATABASE [SolarWindsOrion] SET SINGLE_USER WITH NO_WAITGODBCC CHECKDB ('SolarWindsOrion', REPAIR_REBUILD)GOALTER DATABASE [SolarWindsOrion] SET MULTI_USERGO
If you have again no output like 41 allocation errors, 41 repaired allocation errors and 13 consistency errors, 13 repaired consistency errors, you have one option left:
You can try the REPAIR_ALLOW_DATA_LOSS action:!NOTE: as you can tell from the name of the command... you can lose data from now.(But you will propably get a consistent Database and can make the problem again a problem for SolarWinds Support )
USE [master]GOALTER DATABASE [SolarWindsOrion] SET SINGLE_USER WITH NO_WAITGODBCC CHECKDB ('SolarWindsOrion', REPAIR_ALLOW_DATA_LOSS)GOALTER DATABASE [SolarWindsOrion] SET MULTI_USERGO
To check if your Database is now consistent you can run the DBCC again:
USE [master]GODBCC CHECKDB ('SolarWindsOrion')Go
your output should be like this:
CHECKDB found 0 allocation errors and 0 consistency errors in database 'SolarWindsOrion'.DBCC execution completed.
...
I Hope this helps you. Good Luck.