Backing up a Db2 or Db2 Warehouse database offline
For a Db2 or Db2 Warehouse deployment, the method for the
database backup is to use a Single
System View (SSV) backup. This strategy helps you back up all database partitions simultaneously,
including the catalog partition. SSV backups provide a single time-stamp for all database
partitions, making the recovery simpler. The db2 backup
command must be run from
the node where your database service is deployed.
Before you begin
- For an offline backup, the database is offline and inaccessible to applications during backup, but there are no ongoing transactions that need to be added to the backup.
- You must identify the Db2 or Db2 Warehouse catalog node and have an SSH connection to the catalog node. For more information, see Preparing to back up or restore Db2 or Db2 Warehouse.
Note:
The commands in this procedure use the environment variable containing the default database name
${DBNAME}
. If you have multiple databases, please update the variable value or
commands accordingly.
Procedure
What to do next
For instructions on the recommended restore option, see Using the restore script.