Solved

tempdb too big

Posted on 2000-03-07
5
1,066 Views
Last Modified: 2010-05-18
Hi!
My server (SQL 7) has a rather large hard drive so I never had any problems with space until today. For some reason my tempdb is all of a sudden 11GB. I don't know what the problem is but I really need to free up all that space. Shrink database didn't work and if i check the database in enterprize manager it's only 1.28 MB used (of 11,614.63MB)

I did a DBCC CHECKDB on tempdb and I got the following messages:

Server: Msg 8999, Level 16, State 1, Line 0
Database tempdb allocation errors prevent further CHECKDB processing.
Server: Msg 8906, Level 16, State 1, Line 0
Page (1:114) in database ID 2 is allocated in the SGAM (1:3) and PFS (1:1), but was not allocated in any IAM. PFS flags 'IAM_PG MIXED_EXT ALLOCATED   0_PCT_FULL'.
Server: Msg 8905, Level 16, State 1, Line 0
Extent (1:31992) in database ID 2 is marked allocated in the GAM, but no SGAM or IAM has allocated it.

I have no idea what to do with them!

Thanks for the help!
0
Comment
Question by:rreinmuller
  • 2
  • 2
5 Comments
 

Author Comment

by:rreinmuller
ID: 2593474
Adjusted points to 100
0
 
LVL 4

Accepted Solution

by:
wqw earned 100 total points
ID: 2593494
did try to stop/start SQL server?

</wqw>
0
 
LVL 1

Expert Comment

by:vujos
ID: 2593740
Hi,

Read following article it will explain what to do.

http://www.microsoft.com/TechNet/sql/manuals/diag/part3/75528c13.asp

Hope this helps.
0
 
LVL 1

Expert Comment

by:vujos
ID: 2593747
Hi,

Sorry : in the above article search for Error 8906
Severity Level 16

Luck.
0
 

Author Comment

by:rreinmuller
ID: 2593757
Thanks for the quick responses!
I had to wait until most of the users were out then I restarted SQL . That restored my tempdb to a more reasonable 56MB (not 11GB) and it is not corrupted anymore.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
query question 12 32
Amazon RDS migrate to SQL Server 3 24
Solar Winds can't see SQL Server Express 17 32
Dynamic SQL select query 4 36
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question