Enabling online backup of the DB2 databases
By default, the Performance Management DB2® databases are configured for offline backup, which means that you must stop the applications that access the databases before you run this backup. You can enable an online backup of the DB2 databases to run in the background. While the online backup is running, applications can continue to access the database so no downtime occurs.
About this task
Several backup options are available for Performance Management DB2 databases, so the solution that is included in this task might require modification for specific environments.
To enable online backup, modify the database configuration. DB2 provides several options for backup. The example
specifies a configuration for full
backup. Full backup requires substantial disk space and takes more time because the entire database
is being backed up each time. DB2 provides a means for
incremental backup that has several options.
- For more information about configuring incremental backup, see Using DB2 incremental backup and Restoring from incremental backup images.
- For DB2 10.5 documentation, see DB2 Version 10.5 for Linux, UNIX, and Windows English manuals.
- For descriptions of the DB2 configuration parameters that are used in this task, see DB2 database configuration parameters.
You can use the following DB2 configuration parameters for
online backup configuration. All these parameters are optional except the
LOGARCHMETH1, which is mandatory.
- LOGARCHMETH1
- This mandatory parameter specifies the media type. Change the drive that is specified on this property to an appropriate directory.
- AUTO_DEL_REC_OBJ
- This optional parameter specifies whether database log files, backup images, and load copy images must be deleted when their associated recovery history file entry is pruned.
- REC_HIS_RETENTN
- This optional parameter specifies the number of days that historical information about backups is retained.
- NUM_DB_BACKUPS
- This optional parameter specifies the number of full database backups to retain for a database.
- LOGARCHCOMPR1
- This optional parameter specifies whether the log files that are written to the primary archive destination for logs are compressed.
Procedure
Results
The databases are now ready for online backup.