Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2738943
  • 博文数量: 423
  • 博客积分: 7770
  • 博客等级: 少将
  • 技术积分: 4766
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-09 11:58
个人简介

Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb

文章分类

全部博文(423)

文章存档

2019年(3)

2018年(6)

2017年(27)

2016年(23)

2015年(30)

2014年(16)

2013年(31)

2012年(73)

2011年(45)

2010年(14)

2009年(30)

2008年(30)

2007年(63)

2006年(32)

分类: DB2/Informix

2015-11-02 16:51:45

Question

This technote provides troubleshooting methods for the situation where a RESTORE DB dbname CONTINUE command fails with the following error message: DB21080E No previous RESTORE DATABASE command with REDIRECT option was issued for this database alias, or the information about that command is lost.

Cause

During a redirected restore into a new database name, if the new database name is used within the CONTINUE command instead of the original name of the database being restored, a DB21080E error will result.

For example:

RESTORE DB PRD FROM INTO TST REDIRECT 
(...)
SET TABLESPACE CONTAINERS FOR 0 USING ... 
(...)

RESTORE DB TST CONTINUE

DB21080E No previous RESTORE DATABASE command with REDIRECT option was for this database alias.


Answer

Enure that you use the original name of the database being restored and not the name of the new database in the RESTORE DB CONTINUE command.


The correct command in the example would be:

RESTORE DB PRD CONTINUE

阅读(2782) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~