Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components
Close Print View
Administering: Archiving and Purging by Retention Days
 

Classic Java CAPS

Managing Java CAPS Users

Using LDAP with Java CAPS

Administering the Sun Business Process Manager Database

Creating the Monitoring and Recovery Database

Creating the Database Instance

Running the Scripts in Enterprise Designer

Running the Database Scripts from a Local Directory

Running Database Scripts Automatically

To run the scripts automatically

Purging and Archiving Sun BPM Data

Installing the Purge and Archive Database Components

Archiving and Purging by Retention Days

Archiving and Purging by Business Process Name

Archiving and Purging by Application Name

Using the Sun Business Process Manager Worklist Manager for User Activities

Maintaining Sun Master Indexes (Repository)

Working With the EDM for Sun Master Patient Index

Working With the EDM for Sun Master Index

Java EE Based Components

Working With the Master Index Data Manager

Maintaining Sun Master Indexes

Analyzing and Cleansing Data for Sun Master Index

Loading the Initial Data Set for a Sun Master Index

Archiving and Purging by Retention Days

The following scripts are provided to archive and purge records based on the specified number days. The UNIX versions of these scripts have a .sh extension.

To purge records based on days
  1. Open a command window and navigate to the directory where you downloaded the scripts.
  2. Do one of the following:
    • For Oracle and DB2 databases, enter the following command:

      purge_by_days user password database days

    • For Sybase and SQL Server databases, enter the following command:

      purge_by_days user password server database days

    Where days is the number of days to retain. For example, if you specify 4 days, then any records older than 4 days are purged.

To archive records based on days
  1. Open a command window and navigate to the directory where you downloaded the scripts.
  2. Do one of the following:
    • For Oracle and DB2 databases, enter the following command:

      arch_by_days user password database days

    • For Sybase and SQL Server databases, enter the following command:

      arch_by_days user password server database days

    Where days is the number of days to retain. For example, if you specify 4 days, then any records older than 4 days are archived.