Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Applying sample scripts for archiving and purging

Updated on July 5, 2022

The interaction history tables contain transactional data which may grow fast. By using the sample scripts, the users can archive the data in the archiving database and delete (purge) the records from the source database. The scripts allow you to move the FACT table records, merge the Dimension records, and delete the records from the FACT table. Before you use any of the scripts, back up the source and target interaction history tables and create indexes on the columns. Indexes improve performance when you read data from the archived tables.

Note: The IH scripts contain variables like <source_user_name> or <target_user_name> that you must provide before executing any of the sample scripts.
  • Applying interaction history scripts in Oracle databases

    Use interaction history scripts with Oracle databases 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.

  • Applying interaction history scripts in Microsoft SQL Server

    Use these scripts with Microsoft SQL Server 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.

  • 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.

  • Previous topic Creating an interaction history summary data set
  • Next topic Applying interaction history scripts in Oracle databases

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us