Database in suspect mode

We recently had a database go into suspect mode. Unfortunately our backups were not reliable so we ran the following query:

 EXEC sp_resetstatus epo
ALTER DATABASE epo SET EMERGENCY
DBCC checkdb(epo)
ALTER DATABASE epo SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB (epo, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE epo SET MULTI_USER

So far it has been running for 1 day and the message log keeps looping (around 40,000 times) the same message:

Nonqualified transactions are being rolled back. Estimated rollback completion: 100%.

Is this normal. it is a large database (around 200GB) 

July 10th, 2015 4:06pm

http://www.sqlservercentral.com/articles/Administration/unmarksuspect/137/

Free Windows Admin Tool Kit Click here and download it now
July 10th, 2015 4:24pm

Hello,

Please run the following query and for the session running check the percent of progress of the process by looking at the percent_complete column.

SELECT * FROM sys.dm_exec_requests


Did you put the database in emergency mode first?

ALTER DATABASE [YourDB] SET EMERGENCY;

 

Hope this helps.

Regards,

Alberto Morillo
SQLCoffee.com


July 10th, 2015 4:58pm

The database in question is in emergency mode. The result of the query shows 1 session with 0% complete and a start time of today just a few seconds ago. I think that session is something else since the query in question started yesterday. 
Free Windows Admin Tool Kit Click here and download it now
July 10th, 2015 5:23pm

Hello,



There is evidence of CHECKDB running for 4 days as you can read in the following thread:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/170cf1c4-c4c3-40f5-805d-51769c0b2afa/dbcc-checkdb-running-for-4days?forum=sqldatabaseengine

Try to not allow other user processes or activity on that server that makes use of storage or CPU. The size of the database counts too.

Please try to see if enabling service broker allows the CHECKDB to progress as explained on the following thread:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/7dd5d7f2-de6a-4bac-ad78-5fa57bbdbcc1/dbcc-checkdb-goes-suspended-with-wait-type-of-pageiolatchex

Hope this helps.

Regards,

Alberto Morillo
SQLCoffee.com

July 10th, 2015 8:31pm

Hello,

Please run the following query and for the session running check the percent of progress of the process by looking at the percent_complete column.

SELECT * FROM sys.dm_exec_requests


Did you put the database in emergency mode first?

ALTER DATABASE [YourDB] SET EMERGENCY;

 

Hope this helps.

Regards,

Alberto Morillo
SQLCoffee.com


Free Windows Admin Tool Kit Click here and download it now
July 10th, 2015 8:52pm

Hello,

Please run the following query and for the session running check the percent of progress of the process by looking at the percent_complete column.

SELECT * FROM sys.dm_exec_requests


Did you put the database in emergency mode first?

ALTER DATABASE [YourDB] SET EMERGENCY;

 

Hope this helps.

Regards,

Alberto Morillo
SQLCoffee.com


July 10th, 2015 8:52pm

The database in question is in emergency mode. The result of the query shows 1 session with 0% complete and a start time of today just a few seconds ago. I think that session is something else since the query in question started yesterday. 

Can you find out any thing blocking the checkdb request ?
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2015 1:08am

Got it figured out. the db admin account signing in and running the queries didn't have the administrative privileges necessary. 
  • Marked as answer by phystech 9 hours 52 minutes ago
July 13th, 2015 5:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics