Search Results okc_template_usages_h
Overview
The OKC_TEMPLATE_USAGES_H table is a core data object within the Oracle E-Business Suite Contracts Core (OKC) module. It serves as a historical repository that tracks the relationships between contract templates and the specific business documents where those templates have been utilized. This table is essential for maintaining a complete audit trail of template application across the document lifecycle, supporting compliance, reporting, and analysis of template usage patterns over time within the application.
Key Information Stored
While the specific column list is not detailed in the provided metadata, the table's foreign key relationships and description define its critical data elements. It stores the primary keys linking a template to a document instance and its context. The key foreign key columns, as documented, are TEMPLATE_ID (linking to OKC_TERMS_TEMPLATES_ALL), DOCUMENT_TYPE (linking to OKC_BUS_DOC_TYPES_B), and DOC_NUMBERING_SCHEME (linking to OKC_NUMBER_SCHEMES_B). This structure indicates the table records the template ID, the type of document it was applied to (e.g., Sales Contract, Purchase Agreement), and the numbering scheme associated with that document. As a history table, it likely includes standard audit columns such as CREATION_DATE and LAST_UPDATE_DATE to timestamp each usage record.
Common Use Cases and Queries
The primary use case is auditing and reporting on template deployment. Organizations can analyze which templates are most frequently used, for which document types, and track changes over different periods. A common query would involve joining to the template and document type tables to generate a usage report. For example, to find all historical usages of a specific template:
- SELECT h.*, t.template_name, d.name doc_type_name
- FROM okc.okc_template_usages_h h,
- okc.okc_terms_templates_all t,
- okc.okc_bus_doc_types_b d
- WHERE h.template_id = t.id
- AND h.document_type = d.code
- AND t.template_name = 'MASTER_SERVICES_AGREEMENT';
Another critical scenario is supporting data integrity during template or document lifecycle events, such as archiving or purging, by ensuring a complete historical reference is preserved separately from active transactional data.
Related Objects
As defined by its foreign key constraints, OKC_TEMPLATE_USAGES_H has direct dependencies on several foundational OKC tables. OKC_TERMS_TEMPLATES_ALL is the source table for the TEMPLATE_ID, containing the master definition of contract templates. OKC_BUS_DOC_TYPES_B defines the valid business document types referenced by the DOCUMENT_TYPE column. OKC_NUMBER_SCHEMES_B contains the numbering schemes referenced by the DOC_NUMBERING_SCHEME column. This table is part of the broader Contracts data model and is intrinsically linked to the document creation and template application processes managed by the OKC module's underlying APIs and business logic.
-
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 ,
-
APPS.OKC_TEMPLATE_USAGES_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.1.1
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.1.1
-
APPS.OKC_TEMPLATE_USAGES_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.2.2
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.1.1
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_TEMPLATE_USAGES_H
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_TEMPLATE_USAGES_H
12.2.2
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_TEMPLATE_USAGES_H
12.2.2
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES_H, status:VALID,
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES_H, status:VALID,
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES
12.2.2
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES
12.1.1
-
VIEW: OKC.OKC_TEMPLATE_USAGES_H#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_TEMPLATE_USAGES_H#, status:VALID,
-
VIEW: OKC.OKC_TEMPLATE_USAGES_H#
12.2.2
-
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_BUS_DOC_TYPES_B
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_BUS_DOC_TYPES_B, object_name:OKC_BUS_DOC_TYPES_B, status:VALID, product: OKC - Contracts Core , description: Stores all business document types and preferences related to those documents. This information is seeded by each product team that integrates with Oracle Contracts to implement Contract authoring. , implementation_dba_data: OKC.OKC_BUS_DOC_TYPES_B ,
-
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 ,
-
PACKAGE BODY: APPS.OKC_TEMPLATE_USAGES_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TEMPLATE_USAGES_PVT, status:VALID,
-
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_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_BUS_DOC_TYPES_B
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_BUS_DOC_TYPES_B, object_name:OKC_BUS_DOC_TYPES_B, status:VALID, product: OKC - Contracts Core , description: Stores all business document types and preferences related to those documents. This information is seeded by each product team that integrates with Oracle Contracts to implement Contract authoring. , implementation_dba_data: OKC.OKC_BUS_DOC_TYPES_B ,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on FND_PROFILE
12.2.2
-
PACKAGE BODY: APPS.OKC_TEMPLATE_USAGES_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TEMPLATE_USAGES_PVT, status:VALID,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_RESP_PARTIES_VL
12.2.2
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES_PVT
12.1.1
-
APPS.OKC_TERMS_UTIL_PVT dependencies on OKC_TEMPLATE_USAGES_PVT
12.2.2
-
TABLE: OKC.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,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_GRP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_GRP, status:VALID,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_RESP_PARTIES_VL
12.1.1
-
PACKAGE BODY: APPS.OKC_TERMS_COPY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_COPY_PVT, status:VALID,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_TEMPLATE_USAGES
12.2.2
-
PACKAGE BODY: APPS.OKC_TERMS_COPY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_COPY_PVT, status:VALID,
-
TABLE: OKC.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,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_GRP, status:VALID,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on FND_LOOKUPS
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP dependencies on FND_LOOKUPS
12.2.2
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_TEMPLATE_USAGES
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_TEMPLATE_USAGES_PVT dependencies on FND_PROFILE
12.2.2
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_TEMPLATE_USAGES
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 DBA Data
12.1.1