Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DBCC Hangs


DBCC Hangs

Author
Message
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8780 Visits: 16554
You should only run checkdb once with data_purity on a pre 2005 database to invoke the flag, this is not necessary on 2005 on as the checks are automatically completed.

Try running checkdb with physical_only and see if you get a clean result.
Also can you restore a copy to a test server and run the checks there.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Stamey
Stamey
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 998
I left it to run all weekend and it turns out it only ran 4:41.00. Is CheckDB cumulative, in that whatever it did before is saved and it continues where it left off? I ask because it ran for 8 hours the previous day with no conclusion or results, which caused me to create this thread. Seems strange it would run in less time on the subsequent attempt.
Anyway, it found no problems and will run on a regular basis in the future.

Thanks for your help on this.

Chris

Learning something new on every visit to SSC. Hoping to pass it on to someone else.
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47194 Visits: 44363
Stamey (7/23/2012)
Is CheckDB cumulative, in that whatever it did before is saved and it continues where it left off?


No.

I ask because it ran for 8 hours the previous day with no conclusion or results, which caused me to create this thread. Seems strange it would run in less time on the subsequent attempt.


IO load, CPU load. CheckDB uses a lot of both, if there's concurrent activity it's likely to run slower (and so's everything else)


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8780 Visits: 16554
Stamey (7/23/2012)
I left it to run all weekend and it turns out it only ran 4:41.00. Is CheckDB cumulative, in that whatever it did before is saved and it continues where it left off? I ask because it ran for 8 hours the previous day with no conclusion or results, which caused me to create this thread. Seems strange it would run in less time on the subsequent attempt.
Anyway, it found no problems and will run on a regular basis in the future.

Thanks for your help on this.

Chris

did you run it with PHYSICAL_ONLY or your original query selection?

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: General Forum Members
Points: 8235 Visits: 14368
Also, if you ran it with DATA_PURITY through Ola's scripts last week but without it over the weekend that could explain the difference in time.

PS as long as it had never been run...what were the results of checking the boot page contents?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Stamey
Stamey
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 998
I ran Ola's original script, with the data purity arg. Fortunately this is a UAT server, so it didn't affect Prod, but because of that the usage is much lower and this is one reason it troubled me that it was taking so long.
Ola's script is written to give only error messages, so I would not see any informational messages. When
I ran it for 8 hours on Thursday I was just running DBCC CheckDB(Dmart_MSRIPOS), which should have given me regular informational messages as it worked its way through. It doesn't do it quite table by table, but I expected every hours or so, to have it report back to the query window what it had done so far.

I did not check the boot page before the successful completion of CheckDb. Here are the current result though.

DBINFO STRUCTURE:


DBINFO @0x6470EF7C

dbi_dbid = 7 dbi_status = 65544 dbi_nextid = 2021686350
dbi_dbname = DMART_MSRIPOS dbi_maxDbTimestamp = 122200 dbi_version = 611
dbi_createVersion = 539 dbi_ESVersion = 0
dbi_nextseqnum = 1900-01-01 00:00:00.000 dbi_crdate = 2008-10-27 11:11:22.720
dbi_filegeneration = 0
dbi_checkptLSN

m_fSeqNo = 225290 m_blockOffset = 1696 m_slotId = 25
dbi_RebuildLogs = 0 dbi_dbccFlags = 2
dbi_dbccLastKnownGood = 2012-07-21 00:23:36.270
dbi_dbbackupLSN

m_fSeqNo = 214277 m_blockOffset = 392198 m_slotId = 1

dbi_oldestBackupXactLSN

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_LastLogBackupTime = 2008-10-27 14:33:49.347
dbi_differentialBaseLSN

m_fSeqNo = 216905 m_blockOffset = 871 m_slotId = 64

dbi_createIndexLSN

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_versionChangeLSN

m_fSeqNo = 189359 m_blockOffset = 21 m_slotId = 1
dbi_familyGUID = 7398ef06-695c-4bfd-bca4-93b1dfe8eb97
dbi_recoveryForkNameStack


entry 0

m_fSeqNo = 214277 m_blockOffset = 392198 m_slotId = 1
m_guid = 922f9481-ffb8-4b7b-9dec-9f5ed6d93785

entry 1

m_fSeqNo = 214277 m_blockOffset = 392198 m_slotId = 1
m_guid = ebeb9bd7-cc0a-4813-ae81-e103af225b25
dbi_differentialBaseGuid = 6d81afb0-c465-49bb-a079-cc618ad9e8d4 dbi_firstSysIndexes = 0001:0000000f
dbi_collation = 872468488 dbi_category = 0 dbi_maxLogSpaceUsed = 193712077312
dbi_localState = 0 dbi_roleSequence = 0
dbi_failoverLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_dbmRedoLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_dbmOldestXactLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_dbMirrorId = 00000000-0000-0000-0000-000000000000
dbi_pageUndoLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_disabledSequence = 0
dbi_dvSplitPoint

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_CloneCpuCount = 0 dbi_CloneMemorySize = 0

Thanks,
Chris

Learning something new on every visit to SSC. Hoping to pass it on to someone else.
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: General Forum Members
Points: 8235 Visits: 14368
What does the boot page say in prod?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Stamey
Stamey
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 998
Prod:
DBINFO @0x6902EF8C

dbi_dbid = 211 dbi_status = 65544 dbi_nextid = 1109683101
dbi_dbname = DMART_MSRIPOS dbi_maxDbTimestamp = 114200 dbi_version = 611
dbi_createVersion = 539 dbi_ESVersion = 0
dbi_nextseqnum = 1900-01-01 00:00:00.000 dbi_crdate = 2008-11-25 15:27:17.847
dbi_filegeneration = 0
dbi_checkptLSN

m_fSeqNo = 384680 m_blockOffset = 23866 m_slotId = 5
dbi_RebuildLogs = 0 dbi_dbccFlags = 0
dbi_dbccLastKnownGood = 1900-01-01 00:00:00.000
dbi_dbbackupLSN

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_oldestBackupXactLSN

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_LastLogBackupTime = 1900-01-01 00:00:00.000
dbi_differentialBaseLSN

m_fSeqNo = 383243 m_blockOffset = 21198 m_slotId = 145

dbi_createIndexLSN

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_versionChangeLSN

m_fSeqNo = 189359 m_blockOffset = 21 m_slotId = 1
dbi_familyGUID = 7398ef06-695c-4bfd-bca4-93b1dfe8eb97
dbi_recoveryForkNameStack


entry 0

m_fSeqNo = 215818 m_blockOffset = 103621 m_slotId = 1
m_guid = b71351a0-247f-4175-a603-a752d2683915

entry 1

m_fSeqNo = 215818 m_blockOffset = 103621 m_slotId = 1
m_guid = ebeb9bd7-cc0a-4813-ae81-e103af225b25
dbi_differentialBaseGuid = b769bdfc-3791-4b39-9325-096a9a216acd dbi_firstSysIndexes = 0001:0000000f
dbi_collation = 872468488 dbi_category = 0 dbi_maxLogSpaceUsed = 193712077312
dbi_localState = 0 dbi_roleSequence = 0
dbi_failoverLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_dbmRedoLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0

dbi_dbmOldestXactLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_dbMirrorId = 00000000-0000-0000-0000-000000000000
dbi_pageUndoLsn

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_disabledSequence = 0
dbi_dvSplitPoint

m_fSeqNo = 0 m_blockOffset = 0 m_slotId = 0
dbi_CloneCpuCount = 0 dbi_CloneMemorySize = 0

Learning something new on every visit to SSC. Hoping to pass it on to someone else.
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47194 Visits: 44363
Stamey (7/23/2012)

m_fSeqNo = 384680 m_blockOffset = 23866 m_slotId = 5
dbi_RebuildLogs = 0 dbi_dbccFlags = 0
dbi_dbccLastKnownGood = 1900-01-01 00:00:00.000
dbi_dbbackupLSN


DB has never had a successful CheckDB.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: General Forum Members
Points: 8235 Visits: 14368
GilaMonster (7/23/2012)
Stamey (7/23/2012)

m_fSeqNo = 384680 m_blockOffset = 23866 m_slotId = 5
dbi_RebuildLogs = 0 dbi_dbccFlags = 0
dbi_dbccLastKnownGood = 1900-01-01 00:00:00.000
dbi_dbbackupLSN


DB has never had a successful CheckDB.

I looked at all databases I had access to. I even pulled up some backups of databases upgraded from 2000 before they had checkdb run and could not find one with dbi_dbccFlags = 1 so I am not sure how that flag is ever set to that value. Last known good date is definitely the one to use.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search