LoveUnix » DB2 & Informix » 关于RESTORE的问题
让LU留住您的每

一天 让LU博客留住您的每一天
2007-11-8 13:33 巴山夜雨
关于RESTORE的问题

今天将以前备份数据包解压后RESTORE,但在RESTORE的过程中,出现在以下错误,请众高手诊断。
DB20000I  The FORCE APPLICATION command completed successfully.
DB21024I  This command is asynchronous and may not be effective immediately.

SQL1496W  Deactivate database is successful, but the database was not
activated.
SQL2523W  Warning!  Restoring to an existing database that is different from the
database on the backup image, but have matching names. The target database will
be overwritten by the backup version.  The Roll-forward recovery logs associate
d with the target database will be deleted.
Do you want to continue ? (y/n) y
SQL2054N  The backup or copy image is corrupted.
SQL1119N  A connection to or activation of database "dbname" cannot be made
because a previous restore is incomplete.  SQLSTATE=57019

2007-11-8 13:50 beginner-bj
提示说得很清楚

SQL2054N  The backup or copy image is corrupted.
SQL1119N  A connection to or activation of database "dbname" cannot be made
because a previous restore is incomplete.  SQLSTATE=57019

2007-11-8 14:05 巴山夜雨
回复 #2 beginner-bj 的帖子

我知道,就是如何解除“restore incomplete"状态呀

2007-11-8 17:00 jiangxh
use "restore db dbname abort"就可以解除阿

2007-11-8 23:23 巴山夜雨
SOS!,还是不行呀。我用的命令如下:
db2 restore database dbname abort
提示如下:
DB21080E  No previous RESTORE DATABASE command with REDIRECT option was issued
for this database alias, or the information about that command is lost.

2007-11-8 23:52 beginner-bj
找个没坏的backup,重新restore

2007-11-9 02:16 巴山夜雨
已经是没有坏了的备份啦。

2007-11-9 09:36 beginner-bj
那就搜集各种有用信息
1、查下表空间或DB的状态
2、list utilities show detail
3、其它,如:db2diag.log

[[i] 本帖最后由 beginner-bj 于 2007-11-9 09:40 编辑 [/i]]

2007-11-12 16:08 darkbug
看样子比较麻烦了

2007-11-12 16:46 巴山夜雨
现在仍然无法解决哟,郁闷ING

2007-11-12 17:56 banker
哥们,实在不行,db2dart吧

2007-11-13 08:29 巴山夜雨
楼上的,能否详细一点儿?俺的DB2确实很弱呀。

2007-11-13 09:40 rinei
原数据还能drop么
不能uncatalog
删除安装目录 日志目录下所有东西
重定向恢复

2007-11-13 14:10 巴山夜雨
我把原数据库DROP掉,然后又重新建了个空库(当然名字与原来的一样),RESTORE时仍然不行,感觉可能是由于第一次恢复时该数据所指向的表空间状态已经非正常状态,在恢复另外一份时又对该表空间进行操作,才报这样的错误。
就是一直报该数据库还处于恢复未完成状态中。

2007-11-13 15:03 rinei
表空间被占用的话不是报这个错了
建个新库干嘛?
直接restore db dbname from path 就可以了

2007-11-13 16:00 巴山夜雨
直接做是不行的,只有试一下DROP,但也不行的。现在实在没办法啦

2007-11-16 15:35 巴山夜雨
终于恢复成功啦,激动ING。看来是由于传上来的备份文件有问题,但奇怪的是恢复一部分时中断,后来又重新把备份文件压缩包上传一次,重新RESTORE成功。
总结:没有把所有的办法都试过,总是怀疑有什么复杂的问题,而忽略了最简单的可能导致些问题因素。

页: [1]
查看完整版本: 关于RESTORE的问题


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.