Search Results okc_k_items_h
Overview
OKC_K_ITEMS_H is the history (audit) table for OKC_K_ITEMS, the core line-item table in the Oracle Contracts Core (OKC) module. In Oracle EBS 12.1.1 and 12.2.2, the "_H" suffix denotes a mirrored history table maintained by the Contracts Core auditing infrastructure. Every time a row in OKC_K_ITEMS is inserted, updated, or logically superseded, the prior or resulting image is preserved in OKC_K_ITEMS_H, enabling point-in-time reconstruction of contract line data without querying transactional baselines. The table resides in the OKC schema and is owned by the Contracts Core product family, which underpins Service Contracts, Project Contracts, and Procurement Contracts authoring.
From a heuristic Data Vault classification, OKC_K_ITEMS_H is best modeled as a satellite. It carries descriptive, version-qualified attributes (pricing flags, quantities, UOM, exception indicators) keyed by the same natural business identifier as its parent, with MAJOR_VERSION providing the effective-dating dimension. It is not a hub or link, since it does not introduce new business keys or relationships.
Key Information Stored
The table exposes 24 documented columns, mirroring OKC_K_ITEMS. The most operationally significant include:
- ID — Surrogate identifier inherited from the base contract item; part of the composite primary key OKC_K_ITEMS_H_PK.
- MAJOR_VERSION — Version discriminator combined with ID to form the primary key and the unique index OKC_K_ITEMS_H_U1 (ID, MAJOR_VERSION). This is the effective-dating driver distinguishing successive historical images.
- CLE_ID — Contract line/entity reference linking the item to its contract structure.
- CHR_ID and DNZ_CHR_ID — Contract header references (the "DNZ" prefix reflects the original "denormalized" contracts header design).
- CLE_ID_FOR — Foreign line reference for related or dependent items.
- OBJECT1_ID1 / OBJECT1_ID2 / JTOT_OBJECT1_CODE — Polymorphic object reference and its type code, indicating the underlying inventory, service, or item master record.
- UOM_CODE — Unit of measure for the item quantity.
- NUMBER_OF_ITEMS — Quantity/line count.
- PRICED_ITEM_YN and EXCEPTION_YN — Business flags controlling pricing eligibility and exception handling.
- OBJECT_VERSION_NUMBER — Optimistic locking column used by the Contracts framework for concurrent-edit control.
- SECURITY_GROUP_ID — Multi-org/security partitioning column, resolved via FK to FND_SECURITY_GROUPS.
- Audit columns — CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN, PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE, REQUEST_ID.
Note that the surrogate key is ID+MAJOR_VERSION; SECURITY_GROUP_ID is the only documented foreign key target (FND_SECURITY_GROUPS), reflecting the table's otherwise standalone position within the FK graph.
Common Use Cases and Queries
The primary use of OKC_K_ITEMS_H is historical reporting, reconciliation, and audit investigation of contract line items. Typical scenarios include reconstructing the state of a contract line as of a given date, comparing successive versions to identify who changed pricing or quantity, and diagnosing discrepancies between authoring UI and available-to-promise downstream.
A representative query that retrieves the version history for a specific contract item:
- SELECT ID, MAJOR_VERSION, NUMBER_OF_ITEMS, UOM_CODE, PRICED_ITEM_YN, LAST_UPDATED_BY, LAST_UPDATE_DATE FROM OKC_K_ITEMS_H WHERE ID = :p_item_id ORDER BY MAJOR_VERSION DESC;
A join to the base table to detect divergent images:
- SELECT b.ID, b.NUMBER_OF_ITEMS current_qty, h.NUMBER_OF_ITEMS hist_qty, h.MAJOR_VERSION FROM OKC_K_ITEMS b, OKC_K_ITEMS_H h WHERE b.ID = h.ID AND b.NUMBER_OF_ITEMS <> h.NUMBER_OF_ITEMS;
Audit trails commonly filter by the standard who-columns (LAST_UPDATED_BY, LAST_UPDATE_DATE) and by SECURITY_GROUP_ID to respect responsibility-level restrictions.
Related Objects
- OKC_K_ITEMS — Base table; OKC_K_ITEMS_H is its mirror, joined on ID and MAJOR_VERSION.
- FND_SECURITY_GROUPS — Referenced by SECURITY_GROUP_ID, enforcing security partitioning.
- OKC_K_LINES / OKC_K_HEADERS — Parent contract line and header tables linked via CLE_ID, CHR_ID, and DNZ_CHR_ID.
- OKC_K_ITEMS_H_PK / OKC_K_ITEMS_H_U1 — Primary key constraint and unique index (ID, MAJOR_VERSION) enforcing historical uniqueness.
- OKC Contract Core concurrent programs — Audit/versioning programs that populate the _H image during item modification.
- FND_OBJECTS / FND_USER — Resolve audit actors named in CREATED_BY and LAST_UPDATED_BY.
-
Table: OKC_K_ITEMS_H
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ITEMS_H, object_name:OKC_K_ITEMS_H, status:VALID, product: OKC - Contracts Core , description: This is mirror image of base table OKC_K_ITEMS, please refer to the base table for detailed column level information. , implementation_dba_data: OKC.OKC_K_ITEMS_H ,
-
Table: OKC_K_ITEMS_H
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ITEMS_H, object_name:OKC_K_ITEMS_H, status:VALID, product: OKC - Contracts Core , description: History Table for table OKC_CONTRACT_ITEMS , implementation_dba_data: OKC.OKC_K_ITEMS_H ,
-
VIEW: OKC.OKC_K_ITEMS_H#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_K_ITEMS_H#, status:VALID,
-
SYNONYM: APPS.OKC_K_ITEMS_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ITEMS_H, status:VALID,
-
SYNONYM: APPS.OKC_K_ITEMS_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ITEMS_H, status:VALID,
-
VIEW: OKC.OKC_K_ITEMS_H#
12.2.2
-
VIEW: APPS.OKS_BUS_PROCESSES_HV
12.2.2
-
VIEW: APPS.OKC_K_ITEMS_HV
12.2.2
-
VIEW: APPS.OKC_K_ITEMS_HV
12.1.1
-
TABLE: OKC.OKC_K_ITEMS_H
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ITEMS_H, object_name:OKC_K_ITEMS_H, status:VALID,
-
TABLE: OKC.OKC_K_ITEMS_H
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ITEMS_H, object_name:OKC_K_ITEMS_H, status:VALID,
-
VIEW: APPS.OKS_BUS_PROCESSES_HV
12.1.1
-
PACKAGE BODY: APPS.OKC_CIM_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CIM_PVT, status:VALID,
-
View: OKC_K_ITEMS_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_ITEMS_HV, object_name:OKC_K_ITEMS_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_ITEMS. , implementation_dba_data: APPS.OKC_K_ITEMS_HV ,
-
View: OKC_K_ITEMS_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_ITEMS_HV, object_name:OKC_K_ITEMS_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_K_ITEMS. , implementation_dba_data: APPS.OKC_K_ITEMS_HV ,
-
PACKAGE BODY: APPS.OKC_CIM_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CIM_PVT, status:VALID,
-
VIEW: APPS.OKL_CS_LINE_VERSION_UV
12.2.2
-
View: OKS_BUS_PROCESSES_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BUS_PROCESSES_HV, object_name:OKS_BUS_PROCESSES_HV, status:VALID, product: OKS - Service Contracts , description: History View for Coverage Business Process , implementation_dba_data: APPS.OKS_BUS_PROCESSES_HV ,
-
View: OKS_BUS_PROCESSES_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BUS_PROCESSES_HV, object_name:OKS_BUS_PROCESSES_HV, status:VALID, product: OKS - Service Contracts , description: History View for Coverage Business Process , implementation_dba_data: APPS.OKS_BUS_PROCESSES_HV ,
-
VIEW: APPS.OKL_CS_LINE_VERSION_UV
12.1.1
-
VIEW: APPS.OKL_CS_LINE_VERSION_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_LINE_VERSION_UV, object_name:OKL_CS_LINE_VERSION_UV, status:VALID,
-
VIEW: APPS.OKL_CS_LINE_VERSION_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_LINE_VERSION_UV, object_name:OKL_CS_LINE_VERSION_UV, status:VALID,
-
View: OKL_CS_LINE_VERSION_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_LINE_VERSION_UV, object_name:OKL_CS_LINE_VERSION_UV, status:VALID, product: OKL - Leasing and Finance Management , description: List of Line Versions , implementation_dba_data: APPS.OKL_CS_LINE_VERSION_UV ,
-
View: OKR_K_LINE_RGTS_HDV
12.1.1
product: OKR - Contracts for Rights (Obsolete) , description: History view for OKR contract rights lines , implementation_dba_data: Not implemented in this database ,
-
View: OKR_K_LINE_RGTS_HDV
12.2.2
product: OKR - Contracts for Rights (Obsolete) , description: History view for OKR contract rights lines , implementation_dba_data: Not implemented in this database ,
-
View: OKR_K_HDR_IP_HDV
12.2.2
product: OKR - Contracts for Rights (Obsolete) , description: History view for OKR contract header , implementation_dba_data: Not implemented in this database ,
-
View: OKR_K_HDR_IP_HDV
12.1.1
product: OKR - Contracts for Rights (Obsolete) , description: History view for OKR contract header , implementation_dba_data: Not implemented in this database ,
-
View: OKL_CS_LINE_VERSION_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_LINE_VERSION_UV, object_name:OKL_CS_LINE_VERSION_UV, status:VALID, product: OKL - Lease and Finance Management , description: List of Line Versions , implementation_dba_data: APPS.OKL_CS_LINE_VERSION_UV ,
-
PACKAGE BODY: APPS.OKC_VERSION_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_VERSION_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_VERSION_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_VERSION_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.OKL_INSURANCE_POLICIES_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_INSURANCE_POLICIES_PVT, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
PACKAGE BODY: APPS.OKL_INSURANCE_POLICIES_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_INSURANCE_POLICIES_PVT, status:VALID,
-
VIEW: APPS.OKC_K_ITEMS_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_ITEMS_HV, object_name:OKC_K_ITEMS_HV, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
VIEW: APPS.OKS_BUS_PROCESSES_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BUS_PROCESSES_HV, object_name:OKS_BUS_PROCESSES_HV, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
VIEW: APPS.OKC_K_ITEMS_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_ITEMS_HV, object_name:OKC_K_ITEMS_HV, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
VIEW: APPS.OKS_BUS_PROCESSES_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BUS_PROCESSES_HV, object_name:OKS_BUS_PROCESSES_HV, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_CIM_PVT SQL Statements
12.1.1
-
APPS.OKC_CIM_PVT SQL Statements
12.2.2
-
APPS.OKC_VERSION_PVT dependencies on OKC_K_ITEMS_H
12.2.2
-
APPS.OKL_INSURANCE_POLICIES_PVT dependencies on OKC_K_ITEMS_H
12.1.1