Search Results okc_terms_templates_all
Overview
OKC_TERMS_TEMPLATES_ALL is the master table for contract terms templates within the Oracle Contracts Core (OKC) module of Oracle E-Business Suite, and it is valid in both the 12.1.1 and 12.2.2 releases. A terms template defines the reusable commercial and legal structure applied to contract documents: the clauses, questions, and rules that drive how specific contract types are authored, validated, and approved. The table therefore sits at the center of the Oracle Contracts terms authoring model, holding the definitional record for every template available to a given operating unit.
Mined from its foreign-key structure, the table's heuristic Data Vault classification is hub-leaning. Modeling tools should consider treating TEMPLATE_ID as a hub business key, with descriptive and state-bearing attributes carried in a companion satellite keyed on that identifier. The self-referencing foreign key on PARENT_TEMPLATE_ID records template versioning and inheritance hierarchies rather than a true many-to-many relationship.
Key Information Stored
The table's documented physical schema contains 50 columns in release 12.2.2. The most significant are summarized below.
- TEMPLATE_ID — the surrogate primary key, enforced by
OKC_TERMS_TEMPLATES_ALL_PKand by unique indexOKC_TERMS_TEMPLATES_ALL_U1. - TEMPLATE_NAME and ORG_ID — together with
WORKING_COPY_FLAG, they form the second unique index (OKC_TERMS_TEMPLATES_ALL_U2), which is the natural business-key candidate for a template within an operating unit. - INTENT — the template's business intent, distinguishing the purpose for which the template is authored.
- STATUS_CODE, START_DATE, and END_DATE — the lifecycle state and effective-dating window governing template availability.
- GLOBAL_FLAG and HIDE_YN — control whether the template is visible across operating units or suppressed from selection lists.
- PARENT_TEMPLATE_ID — self-referencing pointer linking a template to the parent from which it was derived or versioned.
- WORKING_COPY_FLAG and TRANSLATED_FROM_TMPL_ID — identify draft copies and linguistically derived variants, complemented by LANGUAGE.
- TMPL_NUMBERING_SCHEME — foreign key to
OKC_NUMBER_SCHEMES_B, supplying the numbering source used by the template. - CONTRACT_EXPERT_ENABLED, TEMPLATE_MODEL_ID, PRINT_TEMPLATE_ID, APPROVAL_WF_KEY, and CZ_EXPORT_WF_KEY — configuration pointers to the authoring model, print layout, and workflow processes associated with the template.
- Standard WHO audit columns (CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN, OBJECT_VERSION_NUMBER) and the 15 flexfield ATTRIBUTE columns.
Common Use Cases and Queries
The table is queried most often for template discovery, version lineage, and deployment validation. A typical listing of active templates in an operating unit is:
SELECT template_id, template_name, intent, status_code FROM okc_terms_templates_all WHERE org_id = :org_id AND NVL(hide_yn,'N') = 'N' AND SYSDATE BETWEEN start_date AND NVL(end_date, SYSDATE + 1);- Lineage and version reporting joins the table to itself on
PARENT_TEMPLATE_ID = TEMPLATE_IDto trace a template back through its derivation chain. - Data-migration scripts frequently use
ORIG_SYSTEM_REFERENCE_CODE,ORIG_SYSTEM_REFERENCE_ID1, andORIG_SYSTEM_REFERENCE_ID2to reconcile templates loaded from external or legacy systems. - Reporting on clause automation sources the
XPRT_*columns (XPRT_REQUEST_ID,XPRT_CLAUSE_MANDATORY_FLAG,XPRT_SCN_CODE) to confirm which templates participate in Oracle Procurement clause extraction. - Since
TRANSLATED_FROM_TMPL_IDandLANGUAGEare populated, multilingual implementations query the table to confirm that a translated template exists for each active base template.
Related Objects
The following objects are the most significant dependents and references identified in the documented relationship data. Each joins to OKC_TERMS_TEMPLATES_ALL on TEMPLATE_ID unless noted otherwise.
OKC_ALLOWED_TMPL_USAGES— restricts which template is permitted for a given contract usage.OKC_TEMPLATE_USAGESandOKC_TEMPLATE_USAGES_H— the current and historical record of where a template has been applied.OKC_XPRT_TEMPLATE_RULES— extraction and rules configuration bound to the template.OKC_XPRT_QUESTION_ORDERS— sequencing of dynamic questions presented when the template is used.OKC_NUMBER_SCHEMES_B— referenced throughTMPL_NUMBERING_SCHEMEto supply template document numbering.OKC_TERMS_TEMPLATES_ALL— self-referencing throughPARENT_TEMPLATE_IDfor version and inheritance tracking.
-
Table: OKC_TERMS_TEMPLATES_ALL
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TERMS_TEMPLATES_ALL, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID, product: OKC - Contracts Core , description: Master table for contract terms templates , implementation_dba_data: OKC.OKC_TERMS_TEMPLATES_ALL ,
-
Table: OKC_TERMS_TEMPLATES_ALL
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TERMS_TEMPLATES_ALL, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID, product: OKC - Contracts Core , description: Master table for contract terms templates , implementation_dba_data: OKC.OKC_TERMS_TEMPLATES_ALL ,
-
VIEW: APPS.OKC_TERMS_TEMPLATES_ALL_DFV
12.1.1
-
APPS.OKC_TERMS_TMPL_APPROVAL_PVT SQL Statements
12.2.2
-
APPS.OKC_TERMS_COPY_GRP SQL Statements
12.1.1
-
APPS.OKC_TERMS_TMPL_APPROVAL_PVT SQL Statements
12.1.1
-
VIEW: APPS.OKC_TERMS_TEMPLATES_ALL_DFV
12.2.2
-
VIEW: APPS.OKC_TERMS_STRUCTURE_V
12.1.1
-
APPS.OKC_TERMS_TEMPLATES_PVT SQL Statements
12.1.1
-
VIEW: APPS.OKC_TERMS_STRUCTURE_V
12.2.2
-
APPS.OKC_TERMS_TEMPLATES_PVT SQL Statements
12.2.2
-
APPS.OKC_TERMS_COPY_GRP SQL Statements
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP SQL Statements
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP SQL Statements
12.2.2
-
VIEW: OKC.OKC_TERMS_TEMPLATES_ALL#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_TERMS_TEMPLATES_ALL#, status:VALID,
-
View: OKC_TERMS_STRUCTURE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_STRUCTURE_V, object_name:OKC_TERMS_STRUCTURE_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_TERMS_STRUCTURE_V ,
-
View: OKC_TERMS_STRUCTURE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_TERMS_STRUCTURE_V, object_name:OKC_TERMS_STRUCTURE_V, status:VALID, product: OKC - Contracts Core , implementation_dba_data: APPS.OKC_TERMS_STRUCTURE_V ,
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID,
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID,
-
Table: OKC_TEMPLATE_USAGES_H
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TEMPLATE_USAGES_H, object_name:OKC_TEMPLATE_USAGES_H, status:VALID, product: OKC - Contracts Core , description: This entity will contain relationship between template and document where it is used. (history records) , implementation_dba_data: OKC.OKC_TEMPLATE_USAGES_H ,
-
Table: OKC_TEMPLATE_USAGES_H
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TEMPLATE_USAGES_H, object_name:OKC_TEMPLATE_USAGES_H, status:VALID, product: OKC - Contracts Core , description: This entity will contain relationship between template and document where it is used. (history records) , implementation_dba_data: OKC.OKC_TEMPLATE_USAGES_H ,
-
Table: OKC_ALLOWED_TMPL_USAGES
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_ALLOWED_TMPL_USAGES, object_name:OKC_ALLOWED_TMPL_USAGES, status:VALID, product: OKC - Contracts Core , description: Table that contains document types that are allowed to use a given contract template , implementation_dba_data: OKC.OKC_ALLOWED_TMPL_USAGES ,
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES, status:VALID,
-
APPS.OKC_TERMS_QA_PVT SQL Statements
12.1.1
-
APPS.OKC_TERMS_QA_PVT SQL Statements
12.2.2
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
Table: OKC_XPRT_TEMPLATE_RULES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_XPRT_TEMPLATE_RULES, object_name:OKC_XPRT_TEMPLATE_RULES, status:VALID, product: OKC - Contracts Core , description: Intersection entity between rules and templates , implementation_dba_data: OKC.OKC_XPRT_TEMPLATE_RULES ,
-
VIEW: OKC.OKC_TERMS_TEMPLATES_ALL#
12.2.2
-
Table: OKC_NUMBER_SCHEMES_B
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_NUMBER_SCHEMES_B, object_name:OKC_NUMBER_SCHEMES_B, status:VALID, product: OKC - Contracts Core , description: Translation table for Numbering schemes , implementation_dba_data: OKC.OKC_NUMBER_SCHEMES_B ,
-
Table: OKC_XPRT_QUESTION_ORDERS
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_XPRT_QUESTION_ORDERS, object_name:OKC_XPRT_QUESTION_ORDERS, status:VALID, product: OKC - Contracts Core , description: This entity stores the order of the questions to be displayed at runtime. This is an intersection entity between templates and questions. , implementation_dba_data: OKC.OKC_XPRT_QUESTION_ORDERS ,
-
APPS.OKC_XPRT_IMPORT_PVT SQL Statements
12.2.2
-
Table: OKC_TEMPLATE_USAGES
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TEMPLATE_USAGES, object_name:OKC_TEMPLATE_USAGES, status:VALID, product: OKC - Contracts Core , description: This entity will contain relationship between template and document where it is used. , implementation_dba_data: OKC.OKC_TEMPLATE_USAGES ,
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT SQL Statements
12.1.1
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT SQL Statements
12.2.2
-
TABLE: OKC.OKC_TERMS_TEMPLATES_ALL
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TERMS_TEMPLATES_ALL, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID,
-
APPS.PV_PARTNER_CONTRACTS_PVT SQL Statements
12.1.1
-
APPS.PV_PARTNER_CONTRACTS_PVT SQL Statements
12.2.2
-
Table: OKC_TEMPLATE_USAGES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TEMPLATE_USAGES, object_name:OKC_TEMPLATE_USAGES, status:VALID, product: OKC - Contracts Core , description: This entity will contain relationship between template and document where it is used. , implementation_dba_data: OKC.OKC_TEMPLATE_USAGES ,
-
Table: OKC_ALLOWED_TMPL_USAGES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_ALLOWED_TMPL_USAGES, object_name:OKC_ALLOWED_TMPL_USAGES, status:VALID, product: OKC - Contracts Core , description: Table that contains document types that are allowed to use a given contract template. , implementation_dba_data: OKC.OKC_ALLOWED_TMPL_USAGES ,
-
VIEW: APPS.OKC_TERMS_TEMPLATES_ALL_DFV
12.1.1
owner:APPS, object_type:VIEW, object_name:OKC_TERMS_TEMPLATES_ALL_DFV, status:VALID,
-
VIEW: APPS.OKC_TERMS_TEMPLATES_ALL_DFV
12.2.2
owner:APPS, object_type:VIEW, object_name:OKC_TERMS_TEMPLATES_ALL_DFV, status:VALID,
-
APPS.OKC_XPRT_IMPORT_RULES_PVT SQL Statements
12.1.1
-
VIEW: APPS.OKC_TERMS_PREVIEW_V
12.2.2
-
VIEW: APPS.OKC_TERMS_PREVIEW_V
12.1.1
-
Table: OKC_NUMBER_SCHEMES_B
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_NUMBER_SCHEMES_B, object_name:OKC_NUMBER_SCHEMES_B, status:VALID, product: OKC - Contracts Core , description: OKC_NUMBER_SCHEMES_B is the base table to store the numbering schemes to organize the sections and clauses , implementation_dba_data: OKC.OKC_NUMBER_SCHEMES_B ,
-
TABLE: OKC.OKC_TERMS_TEMPLATES_ALL
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_TERMS_TEMPLATES_ALL, object_name:OKC_TERMS_TEMPLATES_ALL, status:VALID,
-
PACKAGE BODY: APPS.OKC_ALLOWED_TMPL_USAGES_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_ALLOWED_TMPL_USAGES_PVT, status:VALID,
-
PACKAGE BODY: APPS.PV_PARTNER_CONTRACTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PV_PARTNER_CONTRACTS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_IMP_TERMS_TEMPLATES_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_IMP_TERMS_TEMPLATES_PVT, status:VALID,