Search Results okc_condition_lines_bh_u1




Overview

OKC.OKC_CONDITION_LINES_BH is the history table for OKC_CONDITION_LINES_B within the Oracle E-Business Suite Contracts (OKC) module. In EBS 12.1.1 and 12.2.2, the OKC schema manages contract terms, conditions, and rule structures used by Oracle Contracts, Oracle Order Management, and related quoting and pricing flows. The "_BH" suffix denotes an audit/history companion table that captures prior versions of condition line records whenever a condition line is versioned or updated.

The table resides in the APPS_TS_TX_DATA tablespace with PCT Free 10. Under a heuristic Data Vault classification, this object can be modeled as a satellite: it records descriptive, time-stamped attributes tied to a parent business key (ID) qualified by MAJOR_VERSION, which together form the primary key OKC_CONDITION_LINES_BH_PK. Each row represents a snapshot of a condition line as it existed at a given contract version, making the object well suited to point-in-time and historical reporting.

Key Information Stored

The table carries 44 columns, of which the following are the most operationally significant:

The primary key is the surrogate composite (ID, MAJOR_VERSION) rather than ID alone, reflecting the history semantics: multiple rows per ID are expected, one per contract version.

Common Use Cases and Queries

Typical scenarios include auditing condition changes across contract revisions, reconstructing the state of a condition line as of a specific version, and comparing current versus historical rule structures.

  • Retrieve all historical versions of a condition line:
    SELECT id, major_version, cnl_type, relational_operator, last_update_date FROM okc.okc_condition_lines_bh WHERE id = :p_id ORDER BY major_version;
  • Report all condition lines for a contract as of a version:
    SELECT * FROM okc.okc_condition_lines_bh WHERE dnz_chr_id = :p_chr AND major_version = :p_ver;
  • Audit changes within a date window:
    SELECT id, major_version, created_by, creation_date FROM okc.okc_condition_lines_bh WHERE last_update_date BETWEEN :p_from AND :p_to;

Because of the composite key, joins to OKC_CONDITION_LINES_B should always match on both ID and MAJOR_VERSION.

Related Objects

  • OKC.OKC_CONDITION_LINES_B — The base (current) table; history rows are copied here on versioning via ID/MAJOR_VERSION.
  • OKC.OKC_CONDITION_HEADERS_B — Parent header referenced by CNH_ID.
  • OKC.OKC_CONDITION_LINES_TL — Translation table providing language-specific text for condition lines.
  • FND_SECURITY_GROUPS — Referenced by SECURITY_GROUP_ID for access control (documented FK).
  • FND_APPLICATION — Referenced by APPLICATION_ID for the owning application.
  • OKC.OKC_CONDITION_LINES_BH_U1 — Unique index (ID, MAJOR_VERSION) enforcing the business key.