DB2 10.5 for Linux, UNIX, and Windows

Restoring to an existing database

For a database-level restore, the backup image can differ from the existing database in its alias name, its database name, or its database seed. A database seed is a unique identifier for a database that does not change during the life of the database.
The database manager assigns the seed when you create the database. DB2® always uses the seed from the backup image.You can restore a table space into an existing database only if the table space exists and if the table spaces are the same, meaning that you did not drop the table space and then re-create it between the backup and the restore operations. The database on disk and in the backup image must be the same.You cannot modify the currently defined storage groups or explicitly create new storage groups when restoring a table space.

Before you perform a RESTORE DATABASE on an existing image of the database, you must reset the connect_proc parameter to NULL. If the connect_proc is not set to NULL, you might encounter ERROR SQL0440N when you attempt a connection or rollforward command. To avoid this error, you must update the connect_proc parameter to NULL by using the db2 update db cfg for <DATABASE> using connect_proc NULL command.

When restoring to an existing database, the restore utility performs the following actions: