简体   繁体   English

SQL Server 2005数据库'恢复'

[英]SQL Server 2005 Database 'In Recovery'

I restored a 35Gb database on my dev machine yesterday and it was all going fine until this morning when my client app couldn't connect. 我昨天在我的开发机器上恢复了一个35Gb的数据库,直到今天早上我的客户端应用程序无法连接时一切正常。 So I opened SQL Management Studio to find the database 'In Recovery'. 所以我打开SQL Management Studio来查找数据库'In Recovery'。

I don't know a huge amount about this other than it is usually something to do with uncommitted transactions. 除了它通常与未提交的事务有关之外,我不知道有很多这方面的事情。 Now since i know there aren't any uncommitted transactions it must be something else. 现在,因为我知道没有任何未提交的交易,它必须是别的东西。 So first off, I'd like to know under what conditions this can happen. 首先,我想知道在什么条件下会发生这种情况。 Secondly, while this is going on I can't work so if there are any ways of either stopping the recovery, speeding it up or at least finding roughly how long it's gonna be that would help. 其次,虽然这种情况正在发生,但我无法工作,所以如果有任何方法可以阻止恢复,加快速度,或者至少找到大约需要多长时间,这将有所帮助。

Do not shut down SQL while recovery is in progress. 在恢复过程中不要关闭SQL。 Let it finish. 让它完成。 Check the error logs. 检查错误日志。 If it doesn't finish, restore from backup. 如果未完成,请从备份恢复。

You can find out how long it's going to take by looking in the event viewer. 您可以通过查看事件查看器了解它需要多长时间。 In the Application section on the Windows Logs you should get information messages from MSSQLSERVER with EventID 3450 telling you what it's up to. 在Windows日志的“应用程序”部分中,您应该从MSSQLSERVER获取带有EventID 3450的信息消息,告诉您它的用途。 Something like: 就像是:

Recovery of database 'XYZ' is 10% complete (approximately 123456 seconds remain) etc etc 恢复数据库'XYZ'完成10%(剩余约123456秒)等

I'm afraid I don't know how to stop it (yet). 我恐怕不知道如何制止它(还)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM