Restoring data structures with old data
This process is sometimes referred to as falling back to a previous version. To automate this process with a script, see Recovering-data-structures-with-old-data.
Before you begin
Ensure that a full-recovery baseline exists. For information about full-recovery baselines, see Taking-a-snapshot-of-a-database-environment.
To restore data structures
- Compare the Db2 catalog to the full-recovery baseline. See Comparing-a-Db2-catalog-to-a-baseline.
- Import the CDL from the comparison in Step 1 to an alter-type work ID.
- Create an alter-type work ID. For more information, see Creating-an-alter-type-work-ID.
- Import the CDL to the work ID that you created in Step 2.a. For more information, see Importing-a-CDL-DDL-or-DML-file-to-Change-Manager.
Analyze the alter-type work ID and generate a worklist. For more information, see Analyzing-an-alter-type-work-ID-and-generating-a-worklist-in-Change-Manager.
All of the data that is saved in the baseline is recovered.
- Execute the worklist.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*