sql-server - SQL Server 生产服务器 - 所有数据库均处于恢复挂起状态

标签 sql-server

我的 SQL Server 生产服务器中的所有数据库都处于恢复挂起状态。我尝试执行不同的查询,但它们没有用。请帮助我,因为客户端的生产工作已停止。

尝试执行更改命令 - 但显示错误如下:

Msg 5120, Level 16, State 101, Line 1 Unable to open the physical file "G:\Data\MSSQL\Database.mdf". Operating system error 3: "3(The system cannot find the path specified.)". File activation failure. The physical file name "G:\Data\MSSQL\Data\Database_log.ldf" may be incorrect. Msg 945, Level 14, State 2, Line 1 Database 'Database' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details

Msg 5069, Level 16, State 1, Line 1

最佳答案

Recovery pending means that for some reason SQL cannot run restart recovery on the database. Usually this is because the log is missing or corrupt.

检查是否可以在指定的文件夹中找到 Database.mdf 和 Database_log.ldf 文件。 检查您的系统是否已用完磁盘空间。

这可能是由硬盘故障引起的。您可能需要对上次完整备份、任何差异进行完整恢复,然后恢复日志,直到发生日志错误。

查看类似问题here

关于sql-server - SQL Server 生产服务器 - 所有数据库均处于恢复挂起状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28470603/

相关文章:

sql-server - 一个新的 BI/数据库项目 : how to take databases under version control?

jquery - 如何在asp.net中构建数据库驱动的Jquery下拉菜单

c# - 检索数据库兼容性级别 - 相同服务器/数据库、不同用户的不同结果

sql-server - 为什么我的删除部分的存储过程不起作用?

sql-server - 集体网络聊天

sql-server - 为什么 TClientDataSet 的 WideText 字段类型错误?

sql-server - 基于参数分页(OFFSET FETCH NEXT)

sql-server - 使用 ROW_NUMBER 应用分组排名

sql - SQL 2005 中的 TSQL : Query

sql - 仅从 SQL Server 中的表中恢复前一天的数据