Applying interaction history scripts in Db2 Database Software
Use these scripts with Db2 Database Software to archive or purge the interaction history tables on Windows OS. The scripts allow you to move the FACT table records, merge the Dimension records, and delete the records from the FACT table.
- Back up the source and target interaction history tables.
- Create indexes on the columns. Indexes improve performance when you read data from the archived tables.
- Modify interaction history records using the sample scripts:
- Moving the FACT table records in Db2 Database Software
Before you perform this task, make sure you have full access to the source and the destination databases (you need the database admin privileges).
- Merging the dimension records in Db2 Database Software
Before you perform this task, make sure that all the dimension tables are created and have index on the PZID column.
- Deleting the records from the FACT table in Db2 Database Software
Perform this procedure to delete FACT records from a Db2 database.
Previous topic Deleting the records from the FACT table in Microsoft SQL Server databases Next topic Moving the FACT table records in Db2 Database Software