Search Results okc_condition_lines_hv
Overview
OKC_CONDITION_LINES_HV is a history view owned by the APPS schema within the OKC – Contracts Core product module. It presents the versioned/historical representation of contract condition lines — the individual rule expressions (left operand, operator, right operand, logical connectors, and tolerances) that together form a contract's condition. As a "_HV" (history view) object, it is intended for querying historical and current versions of condition line records rather than for transactional data entry. The object is documented as VALID in Oracle EBS 12.1.1 and 12.2.2 and is exposed for reporting, integration, and diagnostic purposes. Because it joins translated description data, it delivers a user-language-ready result set, making it suitable for concurrent programs, BI Publisher reports, and custom inquiry screens that must reconstruct how condition logic read at a given version.
Underlying Base Objects
The view is defined over two documented base objects: the synonym OKC_CONDITION_LINES_BH (the history/"B" table holding version-stamped condition line rows) and the synonym OKC_CONDITION_LINES_TLH (the translation history table supplying language-specific text). Its defining query, as documented in the ETRM metadata, is:
- SELECT ... FROM OKC_CONDITION_LINES_BH CNLB, OKC_CONDITION_LINES_TLH CNLT
- WHERE CNLB.ID = CNLT.ID AND CNLT.LANGUAGE = USERENV('LANG') AND CNLB.MAJOR_VERSION = CNLT.MAJOR_VERSION
The join on ID and MAJOR_VERSION pairs each historical version of a condition line with its matching translated row, while USERENV('LANG') restricts the result to the session's current language. The B and TL table suffixes confirm that this view is built entirely on history and translation-history storage; no current (non-history) base table is referenced.
Key Columns
- START_AT / MAJOR_VERSION / OBJECT_VERSION_NUMBER – version and versioning-control attributes identifying which historical iteration of the condition line is returned.
- ID / ROW_ID – unique identifier of the condition line record and its physical ROWID in the underlying history block.
- CNH_ID – foreign key to the contract condition header to which the line belongs.
- LEFT_COUNTER_ID / RIGHT_COUNTER_ID, LEFT_CTR_MASTER_ID / RIGHT_CTR_MASTER_ID – the counters (contract attributes/variables) referenced as operands.
- RELATIONAL_OPERATOR, LOGICAL_OPERATOR, LEFT_PARENTHESIS, RIGHT_PARENTHESIS – the expression logic that assembles condition lines into a full condition.
- TOLERANCE / RIGHT_OPERAND / SORTSEQ – comparison tolerance, literal right-side value, and ordering sequence of the line.
- CNL_TYPE / DESCRIPTION / SFWT_FLAG – line type, translated description (from the TL history table), and the software flag.
- DNZ_CHR_ID, PDF_ID, AAE_ID – denormalized contract id and related document/attribute references.
- ATTRIBUTE1–15, APPLICATION_ID, SEEDED_FLAG – descriptive flexfield columns and seeded/application metadata.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN – standard audit columns.
Common Use Cases and Queries
Typical uses include reconstructing condition logic for a specific contract version, auditing changes to condition operators, and feeding integration extracts with language-appropriate descriptions. Because it joins translated text automatically, no additional TL join is required.
- All condition lines for a condition header:
SELECT cnl_id, cnl_type, description, left_counter_id, relational_operator, right_operand
FROM okc_condition_lines_hv
WHERE cnh_id = :p_cnh_id
ORDER BY sortseq; - A specific historical version:
SELECT id, major_version, start_at, logical_operator, tolerance
FROM okc_condition_lines_hv
WHERE id = :p_line_id AND major_version = :p_version; - Audit of changes by date:
SELECT id, major_version, last_updated_by, last_update_date, relational_operator
FROM okc_condition_lines_hv
WHERE cnh_id = :p_cnh_id
ORDER BY last_update_date DESC;
Queries should always filter by ID or CNH_ID to avoid full history scans, and results are limited to the session language via USERENV('LANG').
-
View: OKC_CONDITION_LINES_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_CONDITION_LINES_HV, object_name:OKC_CONDITION_LINES_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_CONDITION_LINES. , implementation_dba_data: APPS.OKC_CONDITION_LINES_HV ,
-
View: OKC_CONDITION_LINES_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_CONDITION_LINES_HV, object_name:OKC_CONDITION_LINES_HV, status:VALID, product: OKC - Contracts Core , description: History view for OKC_CONDITION_LINES. , implementation_dba_data: APPS.OKC_CONDITION_LINES_HV ,
-
SYNONYM: APPS.OKC_CONDITION_LINES_BH
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_LINES_BH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_LINES_BH
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_LINES_BH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_LINES_TLH
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_LINES_TLH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_LINES_TLH
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_LINES_TLH, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
PACKAGE BODY: APPS.OKC_COPY_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_COPY_CONTRACT_PVT, status:VALID,
-
VIEW: APPS.OKC_CONDITION_LINES_HV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_CONDITION_LINES_HV, object_name:OKC_CONDITION_LINES_HV, status:VALID,
-
VIEW: APPS.OKC_CONDITION_LINES_HV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_CONDITION_LINES_HV, object_name:OKC_CONDITION_LINES_HV, status:VALID,
-
PACKAGE BODY: APPS.OKC_COPY_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_COPY_CONTRACT_PVT, status:VALID,
-
APPS.OKC_COPY_CONTRACT_PVT dependencies on OKC_CONDITION_LINES_HV
12.2.2
-
APPS.OKC_COPY_CONTRACT_PVT dependencies on OKC_CONDITION_LINES_HV
12.1.1
-
APPS.OKC_COPY_CONTRACT_PVT SQL Statements
12.1.1
-
APPS.OKC_COPY_CONTRACT_PVT SQL Statements
12.2.2
-
12.2.2 DBA Data
12.2.2
-
eTRM - OKC Tables and Views
12.1.1
description: Intersection entity between templates and rules. ,
-
eTRM - OKC Tables and Views
12.2.2
description: Intersection entity between rules and templates ,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.OKC_COPY_CONTRACT_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_COPY_CONTRACT_PVT
12.2.2
-
eTRM - OKC Tables and Views
12.1.1
description: Intersection entity between templates and rules. ,
-
eTRM - OKC Tables and Views
12.2.2
description: Intersection entity between rules and templates ,