恢复数据库卡住加载 [英] restore db stuck loading

查看:103
本文介绍了恢复数据库卡住加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试将20 GB的数据库从服务器1复制到2.我拿了一个完整的

备份,复制到server2并恢复(准备好使用)使用EM。


消息恢复完成后,我看到数据库的状态为LOADING。

我们在Sql Server上2000(8.00.818)在Windows 2000 Adv Servers上。


我在源数据库上运行dbcc并且它没有返回任何错误。我尝试了命令

''恢复数据库恢复''没有帮助。我收到一条消息说

数据文件只是部分恢复..似乎最后的手段是

更改系统表中的状态。


有什么想法吗?


谢谢

Ragu


Hi

I am trying to copy a 20 GB database from server 1 to 2. I took a full
backup, copied to server2 and restored ( ready for use) using EM.

After the message restore completed, I see the database''s status as LOADING.
We are on Sql Server 2000 (8.00.818) on Windows 2000 Adv Servers.

I ran dbcc on the source DB and it returned no errors. I tried the command
''restore db with recovery '' which didnot help. I get an message saying that
the data file is only partially restored.. It seems the last resort is to
change the status in system tables.

Any ideas?

Thanks
Ragu


推荐答案

(ra ***** @ sbcglobal.net)写道:
(ra*****@sbcglobal.net) writes:
我试图将20 GB的数据库从服务器1复制到2.我拿了完整的
备份,复制到server2并使用E​​M恢复(准备使用)。

消息恢复完成后,我看到数据库的状态为
LOADING。我们在Windows 2000 Adv
服务器上使用Sql Server 2000(8.00.818)。

我在源数据库上运行了dbcc,它没有返回任何错误。我尝试了
命令''恢复数据库恢复''没有帮助。我收到一条消息
说数据文件只是部分恢复..似乎最后的方法是更改​​系统表中的状态。
I am trying to copy a 20 GB database from server 1 to 2. I took a full
backup, copied to server2 and restored ( ready for use) using EM.

After the message restore completed, I see the database''s status as
LOADING. We are on Sql Server 2000 (8.00.818) on Windows 2000 Adv
Servers.

I ran dbcc on the source DB and it returned no errors. I tried the
command ''restore db with recovery '' which didnot help. I get an message
saying that the data file is only partially restored.. It seems the last
resort is to change the status in system tables.




sp_helpdb对数据库的评价是什么?


如果你从查询分析器运行RESTORE命令,你有没有得到任何有趣的消息?


我认为可能发生的事情是数据库以这种方式恢复了

,SQL Server现在可以预测一个或多个交易

日志将被应用。


从QA恢复数据库的示例命令:


MOVE''datafile''TO''C:\\\\\\\\\\\\\\ b MOVE''logilfe''TO''D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $ b Erland Sommarskog,SQL Server MVP, es * ***@sommarskog.se


SQL Server SP3的联机书籍
http://www.microsoft.com/sql/techinf...2000/books.asp


嗨感谢您的回复。 sp_helpdb返回0行。使用QA进行相同的sql恢复

返回此错误


" ConnectionRead(WrapperRead())。 [SQLSTATE 01000](消息258)

常规网络错误。检查您的网络文档。 [SQLSTATE

08S01](错误11)10%恢复。 [SQLSTATE 01000](错误3211)。

步骤失败。


但它恢复了一次,但是当我再次尝试时我得到了上述错误。

原因可能是1.一些时间限制(因为我恢复

服务器这应该不是问题。)2。我看到防病毒软件试图扫描新创建的数据文件。

感谢您的时间


Ragu

Hi Thanks for the reply. sp_helpdb returns 0 rows. The same sql restore
using QA returns this error

"ConnectionRead (WrapperRead()). [SQLSTATE 01000] (Message 258)
General network error. Check your network documentation. [SQLSTATE
08S01] (Error 11) 10 percent restored. [SQLSTATE 01000] (Error 3211).
The step failed. "

But it restored fine once but when I tried again I got the above error.
The reasons could be 1. some timing limit ( Since I restore on the
server this should not be an issue.) 2. I see antivirus software trying
to scan the newly created data file.

Thanks for your time

Ragu


Ragu(ra ***** @ gmail.com)写道:
Ragu (ra*****@gmail.com) writes:
嗨感谢您的回复。 sp_helpdb返回0行。


然后数据库不在那里。

使用QA恢复相同的sql会返回此错误

ConnectionRead(WrapperRead( ))。 [SQLSTATE 01000](消息258)
一般网络错误。检查您的网络文档。 [SQLSTATE
08S01](错误11)10%恢复。 [SQLSTATE 01000](错误3211)。
步骤失败。 "


QA没有说步骤失败,是吗?但是,好吧,我认为它确实是b $ b说一般网络错误。还有爵士乐。这表明SQL Server端发生了一场悲剧性的b $ b事故,并且SQL Server不得不终止这个过程的
。如果您查看SQL Server的错误日志,您可能会发现与事故相关的堆栈转储

。不,不要指望这个堆栈转储

让你更加明智。但无论如何看那里。

但它恢复了一次,但是当我再次尝试时我得到了上述错误。
原因可能是1.一些时间限制(因为我恢复了
Hi Thanks for the reply. sp_helpdb returns 0 rows.
Then the database is not there.
The same sql restore using QA returns this error

"ConnectionRead (WrapperRead()). [SQLSTATE 01000] (Message 258)
General network error. Check your network documentation. [SQLSTATE
08S01] (Error 11) 10 percent restored. [SQLSTATE 01000] (Error 3211).
The step failed. "
QA does not say "The step failed", does it? But, OK, I assume that it does
say "General network error" and all that jazz. That indicates that a tragic
accident occurred on the SQL Server side, and SQL Server had to terminate
the process. If you look in SQL Server''s error log you are likely to find
a stack dump related to the accident. No, don''t expect this stack dump
to make you that much wiser. But look there anyway.
But it restored fine once but when I tried again I got the above error.
The reasons could be 1. some timing limit ( Since I restore on the
server this should not be an issue.) 2. I see antivirus software trying
to scan the newly created data file.




我肯定会推荐防止防病毒软件偷偷入侵

in。


有趣的是,你说备份加载OK一次。如果它从来没有好b $ b装载好我会怀疑通过网络运输意外。但是,

hm,如果我重新阅读你的原始信息,那么即使这样负载也完全成功完成了




我会关闭防病毒软件,然后再试一次。如果它再次失败,

我会再次尝试复制。如果我能找到避开网络,

我会尝试。对于DVD来说20 GB是太多了,但是通过USB2连接的可移动磁盘

可能是另一种选择。


-

Erland Sommarskog,SQL Server MVP, es****@sommarskog.se


SQL Server SP3联机丛书
http://www.microsoft.com/sql/techinf...2000/books.asp


这篇关于恢复数据库卡住加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆