This article mainly describes the actual operation steps of online DB2 backup. If you encounter online DB2 backup in actual operations, but you do not know how to solve it correctly, so the following articles must be good teachers and friends for you.
(1) first, open the database configuration parameters that support online DB2 backup:
Db2 update db cfg for sample using userexit on Enable User exit
Db2 update db cfg for sample using logretain on enable archiving logs
Db2 update db cfg for sample using trackmod on enable Incremental Backup
(Each Node must be set separately)
After these parameters are enabled, the database is in the backup pending state and requires offline full backup of the database. Perform full offline backup. Refer to the above command.
(2) the DB2 online backup command is as follows:
- Db2 backup db sample online use tsm
If the backup is successful, a timestamp is returned.
(3) You can also use db2adutl and db2 list history to view backup records.
(4) Remarks:
Similarly, this operation is performed on each node.
The above content is the description of DB2 online backup, hoping to help you in this regard.