WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


 

Using the DB2 RESTORE DATABASE command

Use the RESTORE DATABASE command of IBM® DB2 Universal Database™ Enterprise Server Edition as an alternative to the DB2 Restore wizard to restore the databases that you backed up.

To replace an existing WPSDB database with the backup copy using the RESTORE DATABASE command, follow these steps:

  1. Stop all application servers connected to the WPSDB database.
  2. Determine which backup copy to use for the restoration by looking at the timestamp of the available backup files.
  3. Run the RESTORE DATABASE command: This example refers to the WPSDB database, the default name for the Release database domain. RESTORE DATABASE WPSDB FROM backup_directory_path TAKEN AT timestamp REPLACE EXISTING
  4. Roll the restored database forward by choosing the same point in time for the database. Consider these factors:

    For example, use the following roll-forward command when the last backup completed at 1:23 AM:ROLLFORWARD DATABASE WPSDB TO 2007-06-25-01.23.00.000000 USING LOCAL TIME AND COMPLETE
Parent topic: Restoring files, databases, and the LDAP server on Windows or Linux Related information
RESTORE DATABASE Command ROLLFORWARD DATABASE Command
Library | Support | Terms of use |