|
|
|
SSC 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 ?
|
|
|
|
|
SSC-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
|
|
|
|
|
SSC 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?
|
|
|
|
|
Hall 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.
|
|
|
|
|
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
|
|
|
|
|
SSC-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
|
|
|
|
|
SSC-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
|
|
|
|
|
Right 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
|
|
|
|