Skip to main content

 –

Applying interaction history scripts in Oracle databases

Suggest edit Updated on March 11, 2021

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.

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.
  1. Back up the source and target interaction history tables.
  2. Create indexes on the columns. Indexes improve performance when you read data from the archived tables.
  3. Modify interaction history records using the sample scripts:
  • Moving the FACT table records

    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

    Before you perform this task, make sure that all the dimension tables are created and have index on the PZID column. If you want to merge the dimension records from the source database to the target database, repeat this procedure for all the dimension tables.

  • Deleting the records from the FACT table

    Perform this procedure to delete records from the FACT table.

Did you find this content helpful? YesNo

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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