Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

While i execute shrink database, the electricity has been gone down, I can't access my database now, it is (In Recovery), how can i recover it?? Note: it is a very huge database: 25 GB.

EDIT:

My question on serverfault.com: http://serverfault.com/questions/395067/electricity-gone-off-while-shrinking-database-how-can-i-recover-my-database

share|improve this question
add comment

1 Answer 1

up vote 8 down vote accepted

Wait patiently for it to recover. This is what is supposed to happen. While waiting, try to track down your latest backup, just in case. I suggest a small investment in a UPS will avoid this problem in the future.

share|improve this answer
    
can it continue recovery after a restart???? –  Mohamed Sakher Sawan Jun 3 '12 at 4:43
5  
@MSS If you restart the system while a database is in recovery, the recovery process will restart from the beginning again. Preferably, leave it be until recovery completes. –  Mark Storey-Smith Jun 3 '12 at 10:47
    
Thaaaaaaaaaaaaaaaaaaaaaaanx, it is ok again! –  Mohamed Sakher Sawan Jun 3 '12 at 11:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.