Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

DB in suspect mode Expand / Collapse
Author
Message
Posted Tuesday, June 15, 2010 8:24 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 264, Visits: 1,287
What internally happens if db goes in suspect mode ?
Post #937549
Posted Tuesday, June 15, 2010 8:31 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:54 AM
Points: 37,692, Visits: 29,951
SQL sets the database state to suspect (in sys.databases) and prevents anyone from accessing or querying the DB.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #937560
Posted Tuesday, June 15, 2010 9:14 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 264, Visits: 1,287
I meant exactly what happens that causes suspect mode to db?
Post #937603
Posted Tuesday, June 15, 2010 9:31 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924, Visits: 1,554
many reasons, mainly :

1. Missing device causes database to be marked suspect.
2. Disk out of space and no space to expand log file.
3. If one or more database files are not available.
4.If the entire database is not available.
5.If one or more database files are corrupted.
6.If a database resource is being held by the operating system.

and could be many more reasons. I could not recollect.


SQL DBA.
Post #937619
Posted Tuesday, June 15, 2010 9:41 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 7:40 AM
Points: 983, Visits: 13,348
Check your sql error logs. There should be some messages that relate to that database being marked as suspect. Dont do anything until you have done this
Post #937631
Posted Tuesday, June 15, 2010 10:55 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:54 AM
Points: 37,692, Visits: 29,951
1. Missing device causes database to be marked suspect.

Won't cause suspect, can cause recovery_pending

2. Disk out of space and no space to expand log file.

Will not cause a database to go suspect. Read-only at worst.

3. If one or more database files are not available.
4.If the entire database is not available.

Won't cause suspect, can cause recovery_pending

5.If one or more database files are corrupted.

Will only result in the db going suspect if that corruption is encountered during a rollback/rollforward operation.

6.If a database resource is being held by the operating system.

Won't cause suspect, can cause recovery_pending



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #937694
Posted Tuesday, June 15, 2010 10:57 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:54 AM
Points: 37,692, Visits: 29,951
beejug1983 (6/15/2010)
I meant exactly what happens that causes suspect mode to db?


SQL will mark a database suspect if and only if corruption (data file or log file) is encountered during a transaction rollback or during restart-recovery when bringing a database online.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #937699
Posted Wednesday, February 20, 2013 9:43 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: 2 days ago @ 1:47 AM
Points: 774, Visits: 1,047
Thank you a lot.

“When I hear somebody sigh, ‘Life is hard,’ I am always tempted to ask, ‘Compared to what?’” - Sydney Harris
Post #1422159
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse