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 ««12

DBCC Hangs Expand / Collapse
Author
Message
Posted Saturday, July 21, 2012 1:17 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 5:52 AM
Points: 5,948, Visits: 12,806
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"
Post #1333323
Posted Monday, July 23, 2012 5:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, January 13, 2014 5:42 AM
Points: 226, Visits: 903
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.
Post #1333687
Posted Monday, July 23, 2012 5:51 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:21 AM
Points: 41,507, Visits: 34,422
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 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 #1333712
Posted Monday, July 23, 2012 6:12 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 5:52 AM
Points: 5,948, Visits: 12,806
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"
Post #1333727
Posted Monday, July 23, 2012 7:50 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, April 10, 2014 10:17 AM
Points: 7,070, Visits: 12,522
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1333798
Posted Monday, July 23, 2012 9:06 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, January 13, 2014 5:42 AM
Points: 226, Visits: 903
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.
Post #1333869
Posted Monday, July 23, 2012 9:55 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, April 10, 2014 10:17 AM
Points: 7,070, Visits: 12,522
What does the boot page say in prod?

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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1333894
Posted Monday, July 23, 2012 12:03 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, January 13, 2014 5:42 AM
Points: 226, Visits: 903
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.
Post #1333987
Posted Monday, July 23, 2012 1:00 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:21 AM
Points: 41,507, Visits: 34,422
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 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 #1334022
Posted Monday, July 23, 2012 1:06 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, April 10, 2014 10:17 AM
Points: 7,070, Visits: 12,522
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1334024
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse