Search Results cs_cp_parties_audit_pk




Overview

The CS_CP_PARTIES_AUDIT table is a core audit trail object within the Oracle E-Business Suite Service (CS) module, specifically for versions 12.1.1 and 12.2.2. Its primary function is to maintain a historical record of all changes made to the CS_CONTACTS table. In the context of Oracle Service, the CS_CONTACTS table stores critical information regarding parties—such as contacts, employees, or partners—associated with a service entity, like a customer or a service request. The CS_CP_PARTIES_AUDIT table enables compliance tracking, data integrity verification, and historical analysis by automatically capturing a snapshot of a record before and after any DML operation (INSERT, UPDATE, DELETE). This is essential for maintaining a complete audit history of contact and party relationships, which are fundamental to service management and customer interactions.

Key Information Stored

While the full column list is not detailed in the provided metadata, the structure of an audit table in Oracle EBS typically includes several key categories of data. The primary identifier is the CS_CP_PARTIES_AUDIT_ID column, which forms the primary key (CS_CP_PARTIES_AUDIT_PK). Crucially, the table contains the CP_PARTY_ID column, which is a foreign key linking directly back to the original record in the CS_CONTACTS table. Standard audit table columns would also be present, such as those indicating the type of operation performed (e.g., CREATE_DATE, LAST_UPDATE_DATE), the user who performed the action (CREATED_BY, LAST_UPDATED_BY), and the type of DML transaction. Most importantly, it stores a copy of the relevant data from the CS_CONTACTS table at the moment of the change, allowing for comparison between different audit entries to see exactly what was modified.

Common Use Cases and Queries

The primary use case for this table is forensic and compliance reporting. Administrators and auditors can query it to trace the complete modification history of a specific contact record or to identify all changes made within a certain period. A common query pattern involves joining the audit table back to the CS_CONTACTS table to get current details while reviewing historical values. For example, to see all audit entries for a specific party, one might use: SELECT * FROM cs_cp_parties_audit WHERE cp_party_id = <PARTY_ID> ORDER BY last_update_date DESC;. Another typical report would list all modifications made by a particular user: SELECT cp_party_id, last_update_date FROM cs_cp_parties_audit WHERE last_updated_by = <USER_ID>;. This data is vital for troubleshooting data issues, understanding the evolution of customer contact information, and meeting regulatory audit requirements.

Related Objects

  • CS_CONTACTS: This is the primary transactional table being audited. The CS_CP_PARTIES_AUDIT table has a documented foreign key relationship where the CS_CP_PARTIES_AUDIT.CP_PARTY_ID column references a primary key in the CS_CONTACTS table. This relationship is fundamental, as every audit record is tied to a specific record in CS_CONTACTS.
  • CS_CP_PARTIES_AUDIT_PK: The primary key constraint on the CS_CP_PARTIES_AUDIT_ID column, ensuring each audit record is uniquely identifiable.
  • While not explicitly listed in the metadata, other Service module tables related to parties and contacts, such as those storing service requests or customer accounts, may indirectly relate through the CS_CONTACTS table.