我的 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/