Search Results okc_terms_local_var_v
Overview
OKC_TERMS_LOCAL_VAR_V is an APPS-owned view in the Oracle Contracts Core (OKC) module. It exposes locally defined contract terms variables that are associated with individual articles within contract documents. The view resolves local (non-global) business variables and joins them to their language-specific definitions, article metadata, and article text. Its central purpose is to make contract variable values readable in a flattened, report-friendly form without requiring the caller to resolve the OKC_BUS_VARIABLES_B / OKC_BUS_VARIABLES_TL lookup relationship manually.
Because the view filters on VAR_DEF_B.VARIABLE_TYPE = 'U', it returns user-defined variables only, distinguishing them from system or predefined variables. It also suppresses deleted articles via the NVL(KART.AMENDMENT_OPERATION_CODE, '?') <> 'DELETED' predicate and restricts the translation row to the session language through VAR_DEF.LANGUAGE = USERENV('LANG'). The presence of the VARIABLE_VALUE and VARIABLE_VALUE_ID columns makes this view the primary reference point when searching for how a specific term value is stored and surfaced.
Underlying Base Objects
The view is defined over five synonyms and references two packaged APIs in its select list:
- OKC_K_ART_VARIABLES — the driving base table, aliased VAR, holding the actual variable instances, their values, and the owning contract article.
- OKC_BUS_VARIABLES_B — aliased VAR_DEF_B, supplying the variable datatype and used to constrain to user-defined variables.
- OKC_BUS_VARIABLES_TL — aliased VAR_DEF, supplying the translated variable name and description.
- OKC_K_ARTICLES_B — aliased KART, providing the article, section, document type, and document identity.
- OKC_ARTICLE_VERSIONS — aliased V, providing article text and additional instructions.
- OKC_TERMS_UTIL_PVT — a package invoked for GET_ARTICLE_NAME and GET_SECTION_LABEL.
- OKC_K_ENTITY_LOCKS_GRP — a package contributing locking behavior to the OKC entity model.
Key Columns
- VARIABLE_CODE / VARIABLE_NAME / DESCRIPTION — the identifier and localized labels of the term variable.
- VARIABLE_VALUE / VARIABLE_VALUE_ID — the stored value and its surrogate key; the columns most relevant to a "variable_value" lookup.
- VARIABLE_DATATYPE / VARIABLE_TYPE — datatype of the value and the user-defined classification.
- EXTERNAL_YN / OVERRIDE_GLOBAL_YN / ATTRIBUTE_VALUE_SET_ID — flags governing visibility, global overrides, and value-set binding.
- CAT_ID / ARTICLE_ID / ARTICLE_VERSION_ID / ARTICLE_NAME / SECTION_LABEL / SECTION_ID — article and section context.
- DOCUMENT_TYPE / DOCUMENT_ID — the parent contract document identifier.
- ARTICLE_TEXT / INSTRUCTION_TEXT — first 2,000 characters of article body and instructions via DBMS_LOB.SUBSTR.
- OBJECT_VERSION_NUMBER, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard audit and concurrency columns. SHOW_DETAILS_FLAG is fixed to 'N'.
Common Use Cases and Queries
Typical scenarios include retrieving all user-defined variable values for a contract, reporting article text alongside resolved variable values, and reconciling local overrides against global definitions.
SELECT variable_code, variable_name, variable_value, variable_datatype FROM apps.okc_terms_local_var_v WHERE document_id = :p_document_id;
SELECT section_label, article_name, variable_code, variable_value FROM apps.okc_terms_local_var_v WHERE variable_value_id = :p_value_id;
Because DOCUMENT_TYPE and DOCUMENT_ID are exposed, the view can be joined directly to contract header tables for cross-document reporting. Filtering by EXTERNAL_YN = 'Y' isolates externally visible terms, and ORDER BY SECTION_ID, ARTICLE_VERSION_ID preserves the document's natural reading sequence when listing variable values.
-
View: OKC_TERMS_LOCAL_VAR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_LOCAL_VAR_V, object_name:OKC_TERMS_LOCAL_VAR_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_TERMS_LOCAL_VAR_V ,
-
View: OKC_TERMS_LOCAL_VAR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_LOCAL_VAR_V, object_name:OKC_TERMS_LOCAL_VAR_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_TERMS_LOCAL_VAR_V ,
-
SYNONYM: APPS.OKC_BUS_VARIABLES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_BUS_VARIABLES_TL, status:VALID,
-
SYNONYM: APPS.OKC_BUS_VARIABLES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_BUS_VARIABLES_TL, status:VALID,
-
PACKAGE: APPS.OKC_K_ENTITY_LOCKS_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_K_ENTITY_LOCKS_GRP, status:VALID,
-
SYNONYM: APPS.OKC_K_ART_VARIABLES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ART_VARIABLES, status:VALID,
-
SYNONYM: APPS.OKC_BUS_VARIABLES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_BUS_VARIABLES_B, status:VALID,
-
SYNONYM: APPS.OKC_K_ART_VARIABLES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ART_VARIABLES, status:VALID,
-
SYNONYM: APPS.OKC_BUS_VARIABLES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_BUS_VARIABLES_B, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.OKC_ARTICLE_VERSIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_ARTICLE_VERSIONS, status:VALID,
-
SYNONYM: APPS.OKC_ARTICLE_VERSIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_ARTICLE_VERSIONS, status:VALID,
-
SYNONYM: APPS.OKC_K_ARTICLES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ARTICLES_B, status:VALID,
-
VIEW: APPS.OKC_TERMS_LOCAL_VAR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_LOCAL_VAR_V, object_name:OKC_TERMS_LOCAL_VAR_V, status:VALID,
-
VIEW: APPS.OKC_TERMS_LOCAL_VAR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_LOCAL_VAR_V, object_name:OKC_TERMS_LOCAL_VAR_V, 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
-
SYNONYM: APPS.OKC_K_ARTICLES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ARTICLES_B, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
SYNONYM: PUBLIC.DBMS_LOB
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_LOB, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
eTRM - OKC Tables and Views
12.2.2
description: Intersection entity between rules and templates ,
-
eTRM - OKC Tables and Views
12.1.1
description: Intersection entity between templates and rules. ,
-
12.1.1 DBA Data
12.1.1
-
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 ,