SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



DBCC shrinkfile - rollback just hanging Expand / Collapse
Author
Message
Posted Sunday, November 18, 2007 6:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, November 19, 2007 11:15 PM
Points: 1, Visits: 5
Hello,

I canceled a shrinkfile (emptyfile) some 2 days ago, but it is still showing as klled/rollback. Would it be OK to restart the instance to get rid of it? I have a backup which I can restore, but will the db come back up, or will it be marked as suspect?

I need to get this DB back before Monday morning. Many thanks
Post #423375
Posted Monday, November 19, 2007 2:12 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, October 23, 2009 7:16 AM
Points: 3,461, Visits: 287
is the database huge. if so then it will take time to recover. even if you are ging to restart your sql services they wil be in recovery mode and hence yu not be able to access the database until they are completely recovered. the best option if you want to have the database ready is to restore from the latest backup that you have.

Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
Post #423459
Posted Monday, November 19, 2007 9:36 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, November 16, 2009 8:05 AM
Points: 422, Visits: 541
Given that it's been a couple of days since you posted this issue it's likely that you're going to need to restart SQL Server if you're still in rollback - every so often (rarely) I've seen SQL get into this state, usually you're OK to restart SQL server to no ill affect as the process you're seeing is just hung/not real. Don't know why these happen, but they do. Shrink file seems to be somewhat prone to this particular behavior when it fails, don't know why, but experience shows that a restart of SQL will usually clear it.


Post #423887
Posted Tuesday, November 20, 2007 4:29 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 12:40 PM
Points: 1,841, Visits: 1,370
Make sure to notify your end users about the restart of services BEFORE you do it. They may lose data if you don't. (Data not commited to the TransLog, that is).

Or, better yet, do the restart during maintenance hours when no one should be on the system anyway.

Regardless, do a check of the DB after you've restarted to verify that the database looks good (not suspect) and that everything you think should be there is actually there. And if this is a production DB and it's spent two days in rollback mode, find someone who might have entered data during those 2 days and have them check that their data is actually there like it should be.

A little CYA never hurts. @=)


Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
Now a member of LinkedIn!

Contributing Author: Transformers: Legends, Pirates of the Blue Kingdoms, Blue Kingdoms: Shades & Specters
Post #423974
« Prev Topic | Next Topic »


Permissions Expand / Collapse