Search Results pay_trigger_declarations
Overview
PAY_TRIGGER_DECLARATIONS is a Payroll (PAY) module table owned by the HR schema that stores the PL/SQL variable declarations embedded within dynamically generated triggers. Oracle Payroll relies on runtime-generated database triggers to enforce business rules, validate element inputs, and execute formula-driven logic against payroll and HR records. Because these triggers are constructed dynamically rather than stored as static source, the variables they reference must be persisted so the trigger body can be regenerated consistently. PAY_TRIGGER_DECLARATIONS serves as the repository for those declaration components, binding each variable to the specific trigger event that requires it.
From a dimensional modeling perspective, the mined foreign-key structure suggests a satellite-leaning classification. The table carries a small, descriptive payload keyed to a parent event entity rather than acting as a hub or a link, which is characteristic of satellite behavior. This classification is a heuristic derived from FK topology and should be treated as a modeling suggestion rather than a definitive architectural statement.
Key Information Stored
The table is defined by a compact six-column structure. The most significant columns are:
- DECLARATION_ID — the surrogate primary key, enforced by the PAY_TRIGGER_DECLARATIONS_PK unique index. It uniquely identifies each declaration record.
- EVENT_ID — the foreign key referencing PAY_TRIGGER_EVENTS. This column anchors each declaration to the trigger event under which the variable is declared, establishing the parent-child dependency that drives trigger generation.
- VARIABLE_NAME — the identifier of the declared PL/SQL variable as it appears in the generated trigger code.
- DATA_TYPE — the datatype assigned to the variable (for example NUMBER, VARCHAR2, or DATE), controlling how the generated code allocates and manipulates the value.
- VARIABLE_SIZE — the length or precision qualifier applied to the variable datatype, where applicable.
- ZD_EDITION_NAME — the editioning column supporting Oracle EBS 12.2 online patching through Edition-Based Redefinition (EBR). It participates in the unique business-key candidate alongside DECLARATION_ID.
The primary key (DECLARATION_ID) is the surrogate identifier, while the documented unique index PAY_TRIGGER_DECLARATIONS_PK spans DECLARATION_ID and ZD_EDITION_NAME, reflecting the edition-aware key strategy required in 12.2 environments.
Common Use Cases and Queries
Technical consultants query this table when diagnosing why a dynamically generated payroll trigger fails to compile, references an undeclared variable, or behaves inconsistently after an upgrade or patch. A typical diagnostic joins declarations to their parent events:
- Trigger regeneration audit — retrieving all variables tied to a given event to confirm the generated trigger body is complete: SELECT d.variable_name, d.data_type, d.variable_size FROM pay_trigger_declarations d, pay_trigger_events e WHERE d.event_id = e.event_id AND e.event_id = :p_event_id;
- Impact analysis before patching — identifying every declaration affected by a change to a trigger event definition.
- Edition comparison — filtering on ZD_EDITION_NAME to compare declarations across editions during online patching validation in 12.2.2.
- Datatype consistency checks — scanning for declarations whose DATA_TYPE or VARIABLE_SIZE conflicts with the consuming formula or element input.
Because the table is a satellite-style reference store rather than a transactional table, it is rarely used for financial reporting; its value lies in development, upgrade, and troubleshooting workflows.
Related Objects
The following objects are most significant to PAY_TRIGGER_DECLARATIONS:
- PAY_TRIGGER_EVENTS — the parent table, joined on PAY_TRIGGER_DECLARATIONS.EVENT_ID = PAY_TRIGGER_EVENTS.EVENT_ID. This is the primary dependency and defines the trigger context.
- JE_BE_VAT_ALLOCATIONS — references PAY_TRIGGER_DECLARATIONS via DECLARATION_ID.
- JE_BE_ESL_SUMMARIES — also references PAY_TRIGGER_DECLARATIONS via DECLARATION_ID.
The two JE_BE tables (Belgian localization entities) demonstrate that declaration identifiers can be reused as reference keys by downstream localization objects, so changes to declaration records should be assessed for cross-module impact before deletion or renumbering.
-
Table: PAY_TRIGGER_DECLARATIONS
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TRIGGER_DECLARATIONS, object_name:PAY_TRIGGER_DECLARATIONS, status:VALID, product: PAY - Payroll , description: Variables declared in dynamic triggers , implementation_dba_data: HR.PAY_TRIGGER_DECLARATIONS ,
-
Table: PAY_TRIGGER_DECLARATIONS
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TRIGGER_DECLARATIONS, object_name:PAY_TRIGGER_DECLARATIONS, status:VALID, product: PAY - Payroll , description: Variables declared in dynamic triggers , implementation_dba_data: HR.PAY_TRIGGER_DECLARATIONS ,
-
Table: PAY_TRIGGER_EVENTS
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TRIGGER_EVENTS, object_name:PAY_TRIGGER_EVENTS, status:VALID, product: PAY - Payroll , description: Definitions of triggers that are dynamically generated , implementation_dba_data: HR.PAY_TRIGGER_EVENTS ,
-
Table: PAY_TRIGGER_EVENTS
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TRIGGER_EVENTS, object_name:PAY_TRIGGER_EVENTS, status:VALID, product: PAY - Payroll , description: Definitions of triggers that are dynamically generated , implementation_dba_data: HR.PAY_TRIGGER_EVENTS ,