Search Results purge_batch_status




Overview

APPS.PA_PURGE_BATCHES_V is a reporting and inquiry view in Oracle EBS Projects (PA) that presents purge batch definitions alongside their decoded lookup meanings and target project statuses. A purge batch identifies a set of projects whose transactional, budgetary, capital, and summary data is to be purged and/or archived. The view joins PA_PURGE_BATCHES to PA_LOOKUPS and two aliases of PA_PROJECT_STATUSES so that coded values are surfaced as user-readable descriptions. This decoding is significant because the base purge batch table stores only the code BATCH_STATUS_CODE, while the view returns the corresponding MEANING from the PURGE_BATCH_STATUS lookup type. The view is exposed under the APPS schema and is typically consumed by concurrent programs, forms, and custom reports. Users searching for "purge_batch_status" are generally looking for the lookup that qualifies purge batch state; this view is the primary object in which that lookup is resolved for reporting.

Underlying Base Objects

Per the documented view text, the FROM clause references four objects:

  • PA_PURGE_BATCHES (SYNONYM) — the driving table aliased PB, holding purge batch header data.
  • PA_LOOKUPS (VIEW) — aliased L1, restricted to LOOKUP_TYPE = 'PURGE_BATCH_STATUS' to translate the batch status code.
  • PA_PROJECT_STATUSES (SYNONYM) — aliased PS1 and PS2, joined on the next pre-purge and next post-purge project status codes respectively.

The three joins are enforced in the WHERE clause as inner joins, so a purge batch row is returned only when a matching PURGE_BATCH_STATUS lookup exists and both referenced project status codes resolve. The view also exposes PB.ROWID as ROW_ID, enabling row-based updates through the view in the standard Oracle Forms pattern.

Key Columns

Common Use Cases and Queries

Typical usage includes monitoring batch progress, auditing purge scope, and feeding downstream extracts. To list batches with decoded status:

SELECT purge_batch_id, batch_name, batch_status_code, meaning,
       purged_date, project_status_name
FROM   apps.pa_purge_batches_v
WHERE  meaning = 'Pending';

To review archive-versus-purge scope for actuals:

SELECT batch_name, purge_actuals_flag, archive_actuals_flag, txn_to_date
FROM   apps.pa_purge_batches_v
WHERE  purged_date IS NULL;

Joining to the underlying synonym for additional columns not exposed by the view is common, as is filtering by ORG_ID in multi-org deployments. Because the view performs inner joins on PA_LOOKUPS and PA_PROJECT_STATUSES, batches with missing lookup or status setup are not returned, which is a frequent cause of "missing row" reports.