[ Team LiB ] |
Database History FileRecovery log files and the recovery history file are created automatically when a database is created. These log files are important if you need to recover data that is lost or damaged. You cannot directly modify a recovery log file or the recovery history file; however, you can delete entries from the recovery history file using the PRUNE HISTORY command. You can also use the rec_his_retentn database configuration parameter to specify the number of days that the recovery history file will be retained. The recovery history file is automatically updated whenever any of the following operations occur:
The file contains a summary of the backup information that can be used in case all or part of the database must be recovered to a given point in time. The information in the file includes
Every backup operation includes a copy of the recovery history file, which is linked to the database. Dropping a database deletes the recovery history file. Restoring data doesn't overwrite an existing history recovery file. If the current database is unusable or unavailable and the associated history file is damaged or deleted, you can follow these steps to restore the file:
The recovery history file helps you locate information when you've performed a backup. For example, it can help you determine the location of a backup or in which backup a DB2 object can be found. If a backup is moved to different media�say, from disk to tape�this file can be updated to keep track of the new location of the backup. Every DB2 backup contains a copy of this file, and it can be restored from any backup. If you choose to restore it, use caution to avoid overwriting the database's existing history file. Note Although the recovery history file is an ASCII file, manually editing the file should be done only at your own risk and isn't recommended. Log files and the recovery history file are created automatically when a database is created. You cannot modify a log file or the recover history file; however, they are important should you need to use your database backup to recover lost or damaged data. |
[ Team LiB ] |
No comments:
Post a Comment