Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dirklx
Starting Member
13 Posts |
Posted - 2007-10-31 : 15:03:22
|
I'm hoping to find help here on the following issue. Here is the setup and situation. I'm running SQL Server 2005, including SSAS. SQL Server holds a database that is about 7GB in size and used to provide the data for my analysis project.I successfully created cubes, deployed them and worked with them. Then all of the sudden I got error messages that all where related to tempdb and sounded like this: <...The operating system returned error incorrect page (expected 1:334039; actual 47:3211311) to SQL Server during a read at offset 0x000000a31ae000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\tempdb.mdf' ...>I run DBCC but nothing came up (please see below). After searching for hours, I increased the initial size of the tempdb and restarted. It was at about 2GB and I brought it up to 4GB. At first it worked but would then fail again. My best guess is that is has to do with the amount of dimensions and measures that I use in my cube but compared to what I keep reading it is still very small in size.I have 4 dimensions, 1 with 3-5 attributes and maybe a 150000 rows total in the view I used. Some of the tables hold more records though (~3 million).Could it by that my server is simply not fast enough (I/O) to keep up with whatever SSAS is doing? I have a hard time to believe that.Here is what DBCC CHECKDB ('mbox', REPAIR_REBUILD) came back with on my work DB:<....DBCC results for 'mBOX'.Service Broker MSG 9675, State 1: Message Types analyzed: 14.Service Broker MSG 9676, State 1: Service Contracts analyzed: 6.Service Broker MSG 9667, State 1: Services analyzed: 3.Service Broker MSG 9668, State 1: Service Queues analyzed: 3.Service Broker MSG 9669, State 1: Conversation Endpoints analyzed: 0.Service Broker MSG 9674, State 1: Conversation Groups analyzed: 0.Service Broker MSG 9670, State 1: Remote Service Bindings analyzed: 0.DBCC results for 'sys.sysrowsetcolumns'.There are 1208 rows in 11 pages for object "sys.sysrowsetcolumns".DBCC results for 'sys.sysrowsets'.There are 137 rows in 1 pages for object "sys.sysrowsets".DBCC results for 'sysallocunits'.There are 151 rows in 2 pages for object "sysallocunits".DBCC results for 'sys.sysfiles1'.There are 2 rows in 1 pages for object "sys.sysfiles1".DBCC results for 'sys.syshobtcolumns'.There are 1208 rows in 12 pages for object "sys.syshobtcolumns".DBCC results for 'sys.syshobts'.There are 137 rows in 1 pages for object "sys.syshobts".DBCC results for 'sys.sysftinds'.There are 0 rows in 0 pages for object "sys.sysftinds".DBCC results for 'sys.sysserefs'.There are 151 rows in 1 pages for object "sys.sysserefs".DBCC results for 'sys.sysowners'.There are 14 rows in 1 pages for object "sys.sysowners".DBCC results for 'sys.sysprivs'.There are 134 rows in 1 pages for object "sys.sysprivs".DBCC results for 'sys.sysschobjs'.There are 149 rows in 4 pages for object "sys.sysschobjs".DBCC results for 'sys.syscolpars'.There are 1089 rows in 20 pages for object "sys.syscolpars".DBCC results for 'sys.sysnsobjs'.There are 1 rows in 1 pages for object "sys.sysnsobjs".DBCC results for 'sys.syscerts'.There are 0 rows in 0 pages for object "sys.syscerts".DBCC results for 'sys.sysxprops'.There are 32 rows in 12 pages for object "sys.sysxprops".DBCC results for 'sys.sysscalartypes'.There are 27 rows in 1 pages for object "sys.sysscalartypes".DBCC results for 'sys.systypedsubobjs'.There are 0 rows in 0 pages for object "sys.systypedsubobjs".DBCC results for 'sys.sysidxstats'.There are 327 rows in 9 pages for object "sys.sysidxstats".DBCC results for 'sys.sysiscols'.There are 645 rows in 6 pages for object "sys.sysiscols".DBCC results for 'sys.sysbinobjs'.There are 23 rows in 1 pages for object "sys.sysbinobjs".DBCC results for 'sys.sysobjvalues'.There are 372 rows in 116 pages for object "sys.sysobjvalues".DBCC results for 'sys.sysclsobjs'.There are 16 rows in 1 pages for object "sys.sysclsobjs".DBCC results for 'sys.sysrowsetrefs'.There are 0 rows in 0 pages for object "sys.sysrowsetrefs".DBCC results for 'sys.sysremsvcbinds'.There are 0 rows in 0 pages for object "sys.sysremsvcbinds".DBCC results for 'sys.sysxmitqueue'.There are 0 rows in 0 pages for object "sys.sysxmitqueue".DBCC results for 'sys.sysrts'.There are 1 rows in 1 pages for object "sys.sysrts".DBCC results for 'sys.sysconvgroup'.There are 0 rows in 0 pages for object "sys.sysconvgroup".DBCC results for 'sys.sysdesend'.There are 0 rows in 0 pages for object "sys.sysdesend".DBCC results for 'sys.sysdercv'.There are 0 rows in 0 pages for object "sys.sysdercv".DBCC results for 'sys.syssingleobjrefs'.There are 154 rows in 1 pages for object "sys.syssingleobjrefs".DBCC results for 'sys.sysmultiobjrefs'.There are 317 rows in 2 pages for object "sys.sysmultiobjrefs".DBCC results for 'sys.sysdbfiles'.There are 2 rows in 1 pages for object "sys.sysdbfiles".DBCC results for 'sys.sysguidrefs'.There are 0 rows in 0 pages for object "sys.sysguidrefs".DBCC results for 'sys.sysqnames'.There are 91 rows in 1 pages for object "sys.sysqnames".DBCC results for 'sys.sysxmlcomponent'.There are 93 rows in 1 pages for object "sys.sysxmlcomponent".DBCC results for 'sys.sysxmlfacet'.There are 97 rows in 1 pages for object "sys.sysxmlfacet".DBCC results for 'sys.sysxmlplacement'.There are 17 rows in 1 pages for object "sys.sysxmlplacement".DBCC results for 'sys.sysobjkeycrypts'.There are 0 rows in 0 pages for object "sys.sysobjkeycrypts".DBCC results for 'sys.sysasymkeys'.There are 0 rows in 0 pages for object "sys.sysasymkeys".DBCC results for 'sys.syssqlguides'.There are 0 rows in 0 pages for object "sys.syssqlguides".DBCC results for 'sys.sysbinsubobjs'.There are 0 rows in 0 pages for object "sys.sysbinsubobjs".DBCC results for 'UHISTFCST'.There are 2798023 rows in 89218 pages for object "UHISTFCST".DBCC results for 'SS'.There are 0 rows in 0 pages for object "SS".DBCC results for 'MODEL'.There are 3 rows in 1 pages for object "MODEL".DBCC results for 'MASKDATA'.There are 15397 rows in 109 pages for object "MASKDATA".DBCC results for 'MASK'.There are 7328 rows in 44 pages for object "MASK".DBCC results for 'LOC'.There are 230 rows in 5 pages for object "LOC".DBCC results for 'LINREGSTATS'.There are 1285 rows in 59 pages for object "LINREGSTATS".DBCC results for 'LINREGPARAM'.There are 29192 rows in 1310 pages for object "LINREGPARAM".DBCC results for 'HISTSTREAM'.There are 2 rows in 1 pages for object "HISTSTREAM".DBCC results for 'HISTFCST'.There are 3827608 rows in 75573 pages for object "HISTFCST".DBCC results for 'HIST'.There are 1666993 rows in 44095 pages for object "HIST".DBCC results for 'FCST'.There are 2126837 rows in 27584 pages for object "FCST".DBCC results for 'EVENT'.There are 6 rows in 1 pages for object "EVENT".DBCC results for 'DMDUNIT'.There are 21661 rows in 981 pages for object "DMDUNIT".DBCC results for 'DMDGROUP'.There are 26 rows in 1 pages for object "DMDGROUP".DBCC results for 'DFUTOSKU'.There are 29192 rows in 490 pages for object "DFUTOSKU".DBCC results for 'DFUMAP'.There are 64957 rows in 1580 pages for object "DFUMAP".DBCC results for 'DFU'.There are 136963 rows in 9349 pages for object "DFU".DBCC results for 'Locations'.There are 247 rows in 2 pages for object "Locations".DBCC results for 'DBPARAM'.There are 1 rows in 2 pages for object "DBPARAM".DBCC results for 'CALDATA'.There are 88308 rows in 1066 pages for object "CALDATA".DBCC results for 'CAL'.There are 156 rows in 2 pages for object "CAL".DBCC results for 'ALLOCSTRAT'.There are 14 rows in 2 pages for object "ALLOCSTRAT".DBCC results for 'sysdiagrams'.There are 1 rows in 1 pages for object "sysdiagrams".DBCC results for 'TOP5080'.There are 1325 rows in 7 pages for object "TOP5080".DBCC results for 'sys.queue_messages_1977058079'.There are 0 rows in 0 pages for object "sys.queue_messages_1977058079".DBCC results for 'sys.queue_messages_2009058193'.There are 0 rows in 0 pages for object "sys.queue_messages_2009058193".DBCC results for 'sys.queue_messages_2041058307'.There are 0 rows in 0 pages for object "sys.queue_messages_2041058307".DBCC results for 'MaterialMaster'.There are 33426 rows in 3463 pages for object "MaterialMaster".CHECKDB found 0 allocation errors and 0 consistency errors in database 'mBOX'.DBCC execution completed. If DBCC printed error messages, contact your system administrator.....>Now, it turns out my HD was really defragmented so I'm currently running a defrag but this is already driven by pure hope.Sorry for the lengthy mail but I'm really hoping to find help around here.Any suggestions is appreciated!Happy halloween and regards,Dirk |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-10-31 : 15:13:50
|
Why do you have system databases on the C drive? This is a big no no. Have you run hardware diagnostics? Does Event Viewer show any disk related errors?Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |
|
|
Kristen
Test
22859 Posts |
Posted - 2007-11-01 : 08:06:28
|
There isn't a SHRINK running on TEMPDB is there? (not sure if its possible to set AutoShrink on TEMPDB, but it would be worth checking that isn't on)Kristen |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-01 : 22:23:03
|
Turn off auto shrink in model db. |
|
|
dirklx
Starting Member
13 Posts |
Posted - 2007-11-13 : 09:29:35
|
Thanks for getting back with me on this topic. I ended up reinstalling the full Sql Server and now it works fine. I stilldon't know what kept breaking my tempdb but believe it has to do with the lack of I/O throughput.Dirkp.s. all drives are fine. |
|
|
bk12345
Starting Member
1 Post |
Posted - 2007-11-19 : 22:22:34
|
Hi to all,I have almost the same problem...Running SQL 2005 Express Edition on a Windows 2003 Std. All service pack in place.My DB is quite small. Not a production DB yet, still in development.I can "easily" produce a very similar error running a simple single SELECT statement.The SELECT in question get some data from one table and INNER JOIN a few other tables.The SELECT returns about 5000 rows.If I add an "order by" to the SELECT, most of the time, I can produce an error almost identical (in "TEMPDB.MDF" file) to the one described here in about 20 execution. If I remove the "order by" from the query, I can't seam to be able to reproduced the error... The query seams ok...Tried the same thing on another machine, an got the same problem...Tried the DBCC CHECKDB against my DB and TEMPDB and no problem found. Also did a complete disk checkup, and still no errors.The error is logged in the EventViewer (comming from SQL Server) but there is no mention of any problem coming from Windows itself as per its file system...Any of you have any idea ? Any new info "Dirklx" ?This problem is a bit scary... :- |
|
|
dirklx
Starting Member
13 Posts |
Posted - 2007-11-24 : 07:53:37
|
Any of you have any idea ? Any new info "Dirklx" ?-- As I mentioned in my last post after switching to SQL Enterprise all issues disappeared. I don't know why but strongly believe that the differences between the versions are more substantial than one thinks.I recommend to fully uninstall and re-install the version you use. It is done relatively quick and you might fix your issue. Lastly I read on another thread that DBCC not always comes back with the full details. So maybe something is corrupt and you only don't know it.I wish you luck.Dirk |
|
|
|
|
|
|
|