Table of Contents

Search

  1. Preface
  2. Backing Up and Restoring the Data Vault
  3. Configuring Centera as a Remote Data Vault Store
  4. Configuring Data Archive for a Legacy Source Using Legacy Adapters
  5. Data Archive Seamless Access for PeopleSoft
  6. Data Archive Transaction Restore API
  7. Dropping and Truncating Partitions in Data Archive
  8. High Availability Configuration for the Data Archive and File Archive Service Versions 6.1 to 6.3
  9. 0955-High Availability Configuration for the Data Vault Version 6.4 and Later
  10. How to Create Business Rules to Archive and Purge Transactional Data
  11. How to Uninstall Data Archive 5.1
  12. How to Uninstall Data Archive 5.3
  13. How to Use Scripts to Change Database User Passwords in the ILM Repository
  14. IBM DB2 Database Connectivity and Setup for Data Archive
  15. Installing Data Visualization
  16. Integrating Third-Party Schedulers in ILM Engine
  17. Parallel Processing in Data Archive
  18. Seamless Access Configuration for Siebel Applications
  19. Seamless Access Setup for Oracle E-Business Suite
  20. Seamless Access Setup for Oracle R12 in Data Archive
  21. Using the Data Vault Service JDBC Driver to Connect to the Data Vault
  22. Using Multiple Engines in an ILM Environment
  23. Using PowerExchange ODBC Connections in a Data Archive Retirement Project
  24. Discovering Foreign Key Relationships in Enterprise Data Manager

Data Archive How-To Guide

Data Archive How-To Guide

How to Configure an Entity to Truncate or Drop Partitions

How to Configure an Entity to Truncate or Drop Partitions

  1. Remove or disable the Delete from Table steps from the entity.
    The following figure shows the Remove Delete Apps Table step:
  2. Add an interim table to identify the partitions that you want to process.
    The interim table identifies the partitions that you want to process. This interim table must have the following columns:
    • TABLE_OWNER
    • TABLE_NAME
    • PARTITION_NAME
    • PURGEABLE_FLAG
    The interim table is populated with the table_owner, table_name, and partition_name from ALL_TAB_PARTITIONS. The following figure shows an interim table with the required columns:
    The following figure shows the select statement:
  3. Add an entity step to process the partition. In the Steps tab, add a new row to call the partition program logic. Configure the following settings for the step:
    • Order. Move this step after all "Insert into Archive Tables" steps.
    • Action. Choose "Run Procedure in Delete from Source."
    • Interim Table. Choose the interim table that you created in Step 1.
    • Procedure. Enter AA_PARTITION_PKG.truncate_partition to truncate the partitions or AA_PARTITION_PKG.drop_partition to drop the partitions.
  4. Add the following steps to compile the AA_PARTITION_PKG and its dependent packages, AA_UTIL_PKG, and AM_PLSQLUTIL_PKG for the Staging User.
    Step
    Option
    Action
    Step
    Option
    Action
    Step 1
    Order
    Move this step to Order 1.
    Step 1
    Action
    Choose Run Procedure in Generate Candidates.
    Step 1
    Interim table
    Choose the interim table that you created in Step 1.
    Step 1
    Procedure
    Enter AM_PLSQLUTIL_PKG.compile_self
    Step 2
    Order
    Move this step to Order 2.
    Step 2
    Action
    Choose Run Procedure in Generate Candidates.
    Step 2
    Interim table
    Choose the interim table that you created in Step 1
    Step 2
    Procedure
    Enter AA_UTIL_PKG.compile_self.
    Step 3
    Order
    Move this step to Order 3.
    Step 3
    Action
    Choose Run Procedure in Generate Candidates.
    Step 3
    Interim table
    Choose the interim table that you created in Step 1.
    Step 3
    Procedure
    Enter AA_PARTITION_PKG.compile_self.
    The following figure shows the required steps:

0 COMMENTS

We’d like to hear from you!