Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb
分类: DB2/Informix
2015-11-02 16:51:45
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.
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
(...)
SET TABLESPACE CONTAINERS FOR 0 USING ...
(...)
RESTORE DB TST CONTINUE
DB21080E No previous RESTORE DATABASE command with REDIRECT option was for this database alias.
Enure that you use the original name of the database being restored and not the name of the new database in the RESTORE DB
The correct command in the example would be:
RESTORE DB PRD CONTINUE