Search Results cn_purge_pkg
Overview
CN_PURGE_PKG is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite Release 12.1.1 and 12.2.2. It belongs to the Oracle Incentive Compensation (OIC) module, where the CN prefix designates objects belonging to the Compensation/Commission application family. The package is documented with a status of VALID and is classified under the ETRM API classification "OTHER," indicating that it is an internal utility package rather than a public, supported application programming interface.
The business function of CN_PURGE_PKG is to provide controlled purge (deletion) processing for transactional and setup data maintained by Oracle Incentive Compensation. Purge operations in EBS are typically performed to remove obsolete or historical data from the operational tables, thereby reducing storage consumption and preserving the performance of high-volume incentive compensation processing. Because incentive compensation generates large volumes of transactional records — transactions, transaction lines, sales lines, commission headers and lines, payment worksheets, and summary period/period quota records — a dedicated package is required to enforce the correct deletion sequence across the related tables and to maintain referential integrity in the absence of physical foreign key constraints on some of these relationships.
Key Procedures and Functions
The documented package interface exposes a single procedure:
- PURGE — the sole documented procedure in the package specification. Its purpose is to execute purge processing. The ETRM metadata does not document a parameter list for this procedure, and no parameter signature is asserted here. Functionally, the procedure drives the deletion of the target incentive compensation records, coordinating the removal of dependent rows and parent rows in the correct order. Applications typically invoke it with selection criteria that scope the purge to a particular period, batch, or date range, but the precise parameters cannot be confirmed from the available documentation.
The package consists of both a specification ([Package]) and a package body ([Package Body]), and the ETRM extract also records SQL statement and dependency information. The only external dependency identified is SYS.STANDARD, meaning the package relies on standard PL/SQL language constructs rather than on other application-level packages. No other package is documented as referencing CN_PURGE_PKG, which is consistent with it being an internal or administrative utility invoked directly rather than through a layered API.
Tables Accessed
The package references the following tables through APPS synonyms, grouped by functional area:
- Core transaction data: CN_TRX, CN_TRX_LINES, CN_TRX_SALES_LINES, CN_NOT_TRX.
- Commission results: CN_COMMISSION_HEADERS, CN_COMMISSION_LINES, and the interface table CN_COMM_LINES_API.
- Payments and processing: CN_PAYMENT_API, CN_PAYMENT_WORKSHEETS, CN_PAYRUNS, and CN_PROCESS_BATCHES.
- Period and quota structures: CN_SRP_PERIODS, CN_SRP_PERIOD_QUOTAS, and CN_SRP_PER_QUOTA_RC.
- Accounting: CN_LEDGER_JOURNAL_ENTRIES.
These references indicate that the purge routine spans the full incentive compensation data model, from source transactions and not-transacted records, through commission calculations and interface staging, to payment worksheets, pay runs, summary quota structures, and the associated ledger journal entries. The inclusion of API-named interface tables (CN_COMM_LINES_API, CN_PAYMENT_API) suggests the purge also clears staged interface records that would otherwise be reprocessed.
Usage Notes
CN_PURGE_PKG is an internal administrative utility. It is not a documented public API, and the ETRM classification of "OTHER" should be treated as a caution against depending on it from custom extensions. Because the package is not referenced by any other documented package, invocation is expected to occur directly — either from an application-level maintenance or purge process, from system administration tooling, or from a concurrent program that accepts user-entered purge criteria. Customers considering retention or archiving policies in Oracle Incentive Compensation should evaluate this package in conjunction with Oracle's documented purge and archive guidance for the module. Any custom invocation should be preceded by a full backup, executed during a maintenance window, and tested in a non-production environment, since the deletions performed are physical and irreversible.
-
PACKAGE: APPS.CN_PURGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CN_PURGE_PKG, status:VALID,
-
PACKAGE: APPS.CN_PURGE_PKG
12.2.2
-
PACKAGE: APPS.CN_PURGE_PKG
12.1.1
-
PACKAGE: APPS.CN_PURGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CN_PURGE_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PURGE_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PURGE_PKG, status:VALID,
-
SYNONYM: APPS.CN_TRX_SALES_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_TRX_SALES_LINES, status:VALID,
-
SYNONYM: APPS.CN_TRX_SALES_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_TRX_SALES_LINES, status:VALID,
-
SYNONYM: APPS.CN_SRP_PER_QUOTA_RC
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PER_QUOTA_RC, status:VALID,
-
SYNONYM: APPS.CN_LEDGER_JOURNAL_ENTRIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_LEDGER_JOURNAL_ENTRIES, status:VALID,
-
SYNONYM: APPS.CN_LEDGER_JOURNAL_ENTRIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_LEDGER_JOURNAL_ENTRIES, status:VALID,
-
SYNONYM: APPS.CN_PAYMENT_API
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PAYMENT_API, status:VALID,
-
SYNONYM: APPS.CN_TRX_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_TRX_LINES, status:VALID,
-
SYNONYM: APPS.CN_TRX
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_TRX, status:VALID,
-
SYNONYM: APPS.CN_TRX
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_TRX, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_LINES, status:VALID,
-
SYNONYM: APPS.CN_PROCESS_BATCHES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PROCESS_BATCHES, status:VALID,
-
SYNONYM: APPS.CN_PROCESS_BATCHES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PROCESS_BATCHES, status:VALID,
-
SYNONYM: APPS.CN_PAYMENT_API
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PAYMENT_API, status:VALID,
-
SYNONYM: APPS.CN_TRX_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_TRX_LINES, status:VALID,
-
SYNONYM: APPS.CN_NOT_TRX
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_NOT_TRX, status:VALID,
-
SYNONYM: APPS.CN_SRP_PER_QUOTA_RC
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PER_QUOTA_RC, status:VALID,
-
SYNONYM: APPS.CN_SRP_PERIOD_QUOTAS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PERIOD_QUOTAS, status:VALID,
-
SYNONYM: APPS.CN_SRP_PERIODS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PERIODS, status:VALID,
-
SYNONYM: APPS.CN_NOT_TRX
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_NOT_TRX, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_LINES, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_HEADERS, status:VALID,
-
SYNONYM: APPS.CN_SRP_PERIOD_QUOTAS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PERIOD_QUOTAS, status:VALID,
-
SYNONYM: APPS.CN_SRP_PERIODS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SRP_PERIODS, status:VALID,
-
SYNONYM: APPS.CN_COMM_LINES_API
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_COMM_LINES_API, status:VALID,
-
SYNONYM: APPS.CN_COMM_LINES_API
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_COMM_LINES_API, status:VALID,
-
SYNONYM: APPS.CN_PAYMENT_WORKSHEETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PAYMENT_WORKSHEETS, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_HEADERS, status:VALID,
-
SYNONYM: APPS.CN_PAYRUNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PAYRUNS, status:VALID,
-
SYNONYM: APPS.CN_PAYMENT_WORKSHEETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PAYMENT_WORKSHEETS, status:VALID,
-
SYNONYM: APPS.CN_PAYRUNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PAYRUNS, status:VALID,
-
PACKAGE: APPS.CN_MESSAGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CN_MESSAGE_PKG, status:VALID,
-
PACKAGE: APPS.CN_MESSAGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CN_MESSAGE_PKG, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.1.1
-
VIEW: APPS.CN_PERIODS
12.1.1
owner:APPS, object_type:VIEW, object_name:CN_PERIODS, status:VALID,
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.2.2
-
VIEW: APPS.CN_PERIODS
12.2.2
owner:APPS, object_type:VIEW, object_name:CN_PERIODS, status:VALID,
-
VIEW: APPS.CN_SALESREPS
12.1.1
owner:APPS, object_type:VIEW, object_name:CN_SALESREPS, status:VALID,
-
VIEW: APPS.CN_SALESREPS
12.2.2
owner:APPS, object_type:VIEW, object_name:CN_SALESREPS, status:VALID,
-
APPS.CN_PURGE_PKG dependencies on CN_PURGE_PKG
12.2.2
-
APPS.CN_PURGE_PKG dependencies on CN_PURGE_PKG
12.1.1