Skip Headers

Oracle Process Manufacturing System Administration User's Guide
Release 12.1
Part Number E13654-04
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next

Archive and Purge

This topic explains how to use the Archive and Purge functions in OPM. Archive and Purge allows you to remove data which is no longer used on a day-to-day basis from the tables where current data exists. Archiving is the process of inserting data into archive tables after gathering it from live production tables based on the criteria fed to the process. Data can be removed from the live tables or left to remain there. Live tables are those that are used to store and retrieve information that is current and is required in the operation of day-to-day business transactions. Database performance is improved by moving historical data from live tables into archive tables. Archive tables are those that are used to store historical information. Purging is the deletion of the archive tables from the database. Data is not recoverable after purging except from backups of the database files.

This chapter covers the following topics:

Understanding the Archive and Purge Process

Archive and purge process consists of the following three steps:

Setting Up Archive and Purge Types

Use the Archive and Purge Setup window to define custom purges or to view the Oracle Process Manufacturing (OPM) standard predefined purges. To run standard predefined purges, use the Archive and Purge window.

To view a predefined archive or purge:

  1. Navigate to the Archive and Purge Setup window.

  2. Enter a Type up to four characters that specifies the category for this purge. For example, view PROD. PROD is a predefined purge. You can use PROD as an example to view its setup. PROD is display only.

  3. View the information about the predefined purges:

To view the predefined archive or purge tables:

  1. Navigate to the Archive and Purge Tables window from the Actions menu on the Setup window.

  2. View the information about the purge tables:

Archive and Purge

Use the Archive and Purge window to enter criteria for and complete a given purge. The purge can be one of the predefined OPM purges, or a custom purge defined by your System Administrator.

Note: Only sales orders, batches, inventory journal records, and purchase orders that are posted to the General Ledger can be purged.

For the base OPM product, archive and purge functionality exists only for a predefined set of tables and transaction data. They are:

DCST

Cost component details and associated detail transaction records in Burden Details, Actual Costing Transactions, and Standard Cost Ledgers.

DSLA

Subledger update data.

DSLT

Test subledger update data.

PROD

Production batch records and the associated detail transaction and text records.

OPSO

Sales order and shipment records and the associated detail transaction and text records. This does not purge data related to Order Management or Common Purchasing.

PORD

PO, receipt, and return records and the associated detail transaction and text records. This does not purge data related to Order Management or Common Purchasing.

JRNL

Inventory journal records and the associated detail transaction and text records.

Criteria Values (Dynamic Criteria Fields)

The criteria values can be selected from the List of Values for each field. The following are custom criteria:

Each criteria field is required. Following are examples of proper data formatting:

After the criteria is specified on the Archive and Purge window and saved, you can either run a test archive or archive process. You cannot purge test or archive data until the test or archive process has been completed on that data. If the process is not complete, then the purge process is disabled. After the process is complete, view the log for the Archive and Purge Process request to determine if there are any errors. If a test archive fails, then you can fix the problem, and rerun the test archive process. The archive tables are dropped if they were created during the failed run, and recreated with the same archive ID.

To archive and purge records:

  1. Navigate to the Archive and Purge window.

  2. Enter a Type that specifies the category of all records associated with the purge. This value is originally entered on the Setup window.

  3. View the following automatically generated data.

  4. Enter the Description of the purge in the Details section of the window. Each standard purge can have up to eight criteria. These criteria are:

  5. Enter the Criteria Values in the Details region.

  6. Save the Archive and Purge window. The Purge ID is assigned and the total row details information is updated.

  7. Choose any one of the following options from the Actions menu:

    A dialog box appropriate to the selected option displays.

  8. Enter the date and time in the Concurrent Request Datetime of the dialog box for the process to start. If you do not enter the date and time, then the process runs immediately.

  9. Click OK. A note displays the request ID. You can use this ID to perform an inquiry on the process.

    Refer to the "Performing an Archive and Purge Inquiry" topic for detailed information.

  10. The following fields are updated automatically following a test or archive in the Total Row Details section of the window and are query only:

To find a purge type:

  1. Navigate to the Find Purge Types window.

  2. Enter any of the following criteria to search for a purge type:

  3. Click Find.

Using the Archive and Purge Runtime window

Use the Archive and Purge Runtime window to set runtime criteria for the archive and purge process.

To set the runtime criteria

  1. Navigate to the Archive and Purge Runtime window.

  2. Select the Disable Constraints indicator to disable the database foreign constraints before running the archive and purge process.

  3. Select Debug On to allow further details to be logged in the concurrent program log. This information is useful to debug any failures in the process.

  4. Select Calculate Storage Indicator to calculate the storage requirements for the archive tables.

  5. Enter Commit Frequency as the number of records that must be committed in a batch when the process is running. This field can be used to control the space allocation for the rollback segments when the process is running on a large set of data.

  6. Click OK.

Running an Archive and Purge Inquiry

Use the Inquiry window to view the status of purges. The status of the purge appears in descending order from the most recently submitted purge to the oldest submitted purge. Purge status information is stored in table sy_purg_mst.

To inquire about an archive or purge:

  1. Navigate to the Archive and Purge Inquiry window.

  2. Enter the Type to view all of the associated archives and purges. The following information displays in the Details section of the window: