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

KILLED/ROLLBACK STATE - SERVICE RESTART Expand / Collapse
Author
Message
Posted Thursday, March 21, 2013 1:57 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 4:54 AM
Points: 248, Visits: 676
Hi all,

Is there any fix other than sql service restaRT when there is
transaction stuck in killed/rollback state (after killing a blocked transaction) in sysprocesses?
i had this situation and once i unsucessfully tried moving the database to offline mode(courtesy:google) to end the transaction.


any help will be appreciated.


____________________________________________________________________
Going in one more round when you don't think you can - that's what makes all the difference in your life --Rocky Balboa

Believe you can and you're halfway there. --Theodore Roosevelt
Post #1433618
Posted Tuesday, March 26, 2013 11:26 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 4:54 AM
Points: 248, Visits: 676
Guys anybody there?? i posted this question some days ago and waitinng for a single reply, could anyone throw ur suggestions???

Gail can you help me on dis?


____________________________________________________________________
Going in one more round when you don't think you can - that's what makes all the difference in your life --Rocky Balboa

Believe you can and you're halfway there. --Theodore Roosevelt
Post #1435770
Posted Wednesday, March 27, 2013 3:42 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286
I wouldn't advise restarting SQL Server as you could end up with a corrupted database after the restart. Let SQL Server finish it's rollback naturally. It's a pain but it will be a lot less than what you'll suffer if you go for the quick dirty fix of a restart.

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


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1435808
Posted Wednesday, March 27, 2013 5:02 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:54 PM
Points: 42,434, Visits: 35,488
Abu Dina (3/27/2013)
I wouldn't advise restarting SQL Server as you could end up with a corrupted database after the restart.


Not possible.

You could end up with a database in recovery for a while, you can not end up with a corrupt database. You could end up with a database in the recovery_pending state if you delete the log file after stopping SQL.

Corrupt database means that something outside of SQL, typically the IO subsystem has mangled the data file and damaged the contents. If a restart results in the IO subsystem writing garbage into the files, then the problem is the IO subsystem, not the restart.



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 #1435825
Posted Wednesday, March 27, 2013 5:07 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:54 PM
Points: 42,434, Visits: 35,488
If it's a killed process that's rolling back and there's a non-zero rollback percent complete and time remaining, and there's progress on the rollback, wait. If you restart SQL the rollback will continue after teh restart with the database unavailable (Recovering state).

The only time you want to restart when something's rolling back is when you have something 'stuck', normal sign of that is that the rollback percent complete is 0%, the estimated time remaining is 0 and there is absolutely no work being done. Even then, be careful. The only one i restart without too much concern is a rolling back backup that's stuck.



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 #1435827
Posted Wednesday, March 27, 2013 6:04 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 4:54 AM
Points: 248, Visits: 676
Thanks for your reply Gail

____________________________________________________________________
Going in one more round when you don't think you can - that's what makes all the difference in your life --Rocky Balboa

Believe you can and you're halfway there. --Theodore Roosevelt
Post #1435851
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse