TMAegis
More rules for db2

IBM Db2

TMA-DB2-4.1.9

Establish Retention Set Size for Backups (NUM_DB_BACKUPS)

MediumLevel 1Manual reviewdb2

Description

The NUM_DB_BACKUPS parameter specifies the number of backups to retain for a database before marking the oldest backup as deleted. It is recommended that this parameter be set to at least 12.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

1. Connect to the Db2 database. db2 => connect to <dbname> 2. Run the following command: db2 => get database configuration 3. Locate the NUM_DB_BACKUPS value in the output: Number of database backups to retain (NUM_DB_BACKUPS) = 12

How it is fixed

Fix method: Guidance or infrastructure patch

1. Connect to the Db2 database db2 => connect to <dbname> 2. Run the following command: db2 => update database configuration using num_db_backups 12

Properties

Operating systems
Any
Tags
db2databasemanual
Reference
CIS IBM Db2 12.1 Benchmark v1.0.0 - 4.1.9 Establish Retention Set Size for Backups (NUM_DB_BACKUPS)