恢复 SQL 2008 数据库失败,页面 xxx:xxx 出现错误

发布于 2024-11-17 11:03:10 字数 796 浏览 2 评论 0原文

情况是这样的:

获得了 SQL 2008 数据库的完整备份(.bak 文件),并带有分区。 .bak 文件大小为 100GB。

我需要将此数据库恢复到另一台服务器上的新数据库。 所以,命令是这样的:

Restore Database [newname] FROM DISK= N'D:\mydatabase.bak' WITH FILE = 1
MOVE 'mydatabasename' TO 'C:\mydatabase.mdf'
MOVE 'Partition1' TO 'C:\`mydatabase_1.ndf'
etc..
STATS = 1

处理完 52% 后,我收到此错误:

Msg 3183, Level 16, State 2, Line 1
RESTORE detected an error on page (8481:555819297) in database "dbname" as read from the backup set.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

在所有默认建议出现之前,这就是我已经完成的操作:

  • Checkdb on original database -->没有错误
  • 在我的本地计算机上恢复 .bak 文件 -->没有错误,所以备份是正确的。

我可以采取什么措施来解决这个问题?我怎样才能解决实际问题?

感谢您的任何建议。

This is the situation:

Got a full backup (.bak file) of a SQL 2008 database, with partitions.
The .bak file is 100gb.

I need to restore this database on a different server, to a new database.
So, command is like this:

Restore Database [newname] FROM DISK= N'D:\mydatabase.bak' WITH FILE = 1
MOVE 'mydatabasename' TO 'C:\mydatabase.mdf'
MOVE 'Partition1' TO 'C:\`mydatabase_1.ndf'
etc..
STATS = 1

After 52 percent processed, I get this error:

Msg 3183, Level 16, State 2, Line 1
RESTORE detected an error on page (8481:555819297) in database "dbname" as read from the backup set.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

Before all default suggestions come up, this is what I have already done:

  • Checkdb on original database --> no errors
  • Restore the .bak file on my local machine --> no errors, so the backup is correct.

What can I do to troubleshoot this? How can I get to the actual problem?

Thanks for any suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一刻暧昧 2024-11-24 11:03:10

我会检查在服务器上创建的 .bak 以及将其移动到新家后的 MD5 校验和。我敢打赌,当你把它移过来时,你的副本中肯定有一些小东西被调整了;您的进程中出现了一些问题,可能只是网络故障、中断了某些事情或其他问题。

这里有一些 MD5 校验和实用程序: http://www.thefreecountry.com/utilities /free-md5-sum-tools.shtml

祝你好运。

I'd check the MD5 checksums of the .bak as created on the server and after it's been moved to the new home. I'll bet something small got tweaked in your copy as you moved it over; something in your process, maybe just a network hiccup, borked something or other.

Few MD5 checksum utilities here: http://www.thefreecountry.com/utilities/free-md5-sum-tools.shtml

Best of luck.

我ぃ本無心為│何有愛 2024-11-24 11:03:10

我们能够恢复其他服务器上的备份。

过了一段时间,我们切换到了新服务器。
旧的有错误的现在已经在测试台上了。

结论是备份文件是正确的,问题出在服务器硬件问题上。可能是磁盘问题,但是当情况清楚时,我会将其发布在这里..

感谢您的建议。

We were able to restore the backup on other servers.

After a while, we switched over to a new server.
The old one with the errors is on a test bench now.

Conclusion is that the backup file was correct, and the problem lies in a hardware problem on the server. Probably disk problemens, but when thats clear, i will post it here..

Thanks for the suggestions.

无畏 2024-11-24 11:03:10

是的,对于此类恢复错误,问题出在您尝试恢复备份的驱动器上,请尝试更改驱动器(例如 d 到 e )..它对我有用。

也可以尝试直接附加 mdf 文件。

yeah for such restoration errors the problem lies in the drive from where you are trying to restore the backup,try changing the drive (e.g d to e )..it worked for me.

one can also try attaching mdf file directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文