Search Results okc_rep_contract_rels
Overview
OKC_REP_CONTRACT_RELS is a Contracts Core (OKC) table in Oracle E-Business Suite that stores the relationship between two contracts. Each row captures an associative link in which one contract (CONTRACT_ID) is associated with a second contract (RELATED_CONTRACT_ID), and RELATED_CONTRACT_ROLE expresses the role or function that the related contract plays with respect to the primary contract. The table is a core component of the Contracts repository and supports cross-contract referencing used by contract authoring, hierarchy, and reporting functionality.
Within a Data Vault modeling perspective, the structure of this table — a composite uniqueness constraint over two contract identifiers plus a relationship role, together with foreign keys to OKC_REP_CONTRACTS_ALL — suggests classifying it as a link table. It resolves the many-to-many association between contracts rather than describing a single contract entity.
Key Information Stored
The table is documented with nine physical columns. The most important columns and their roles are:
- CONTRACT_RELATIONSHIP_ID — The surrogate primary key, defined by the OKC_REP_CONTRACT_RELS_PK constraint. It uniquely identifies each contract-to-contract relationship row.
- CONTRACT_ID — The primary contract in the pairing. This column carries a foreign key to OKC_REP_CONTRACTS_ALL.
- RELATED_CONTRACT_ID — The second, related contract. Together with CONTRACT_ID, it defines the direction of the association.
- RELATED_CONTRACT_ROLE — The role or function performed by the related contract relative to the primary contract.
- RELATIONSHIP_ROLE1_ID — A role identifier participation column. It appears in the unique index OKC_REP_CONTRACT_RELS_U1 and is a documented column of the physical schema.
- RELATIONSHIP_TYPE_ID — Identifies the relationship type; documented as a foreign-key-bearing column, though the target table is not fully resolved in the supplied metadata.
- OBJECT_VERSION_NUMBER — Optimistic-locking version column used by the framework to detect concurrent updates.
- CREATED_BY, CREATION_DATE — Standard audit columns recording the creating user and creation timestamp.
- LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — Standard audit columns recording the last modifying user, timestamp, and login session.
The business-key candidate is the unique index OKC_REP_CONTRACT_RELS_U1, built on (CONTRACT_ID, RELATED_CONTRACT_ID, RELATIONSHIP_ROLE1_ID). This composite distinguishes the natural identity of a relationship from the surrogate primary key.
Common Use Cases and Queries
Typical usage includes finding all contracts related to a given contract, resolving the role a related contract plays, and reporting on cross-contract linkages for legal or commercial analysis. A representative query joins the relationship table to the contracts table:
- SELECT r.CONTRACT_ID, r.RELATED_CONTRACT_ID, r.RELATED_CONTRACT_ROLE FROM OKC.OKC_REP_CONTRACT_RELS r WHERE r.CONTRACT_ID = :contract_id;
- SELECT r.CONTRACT_ID, c.CONTRACT_NUMBER, r.RELATED_CONTRACT_ID FROM OKC.OKC_REP_CONTRACT_RELS r, OKC.OKC_REP_CONTRACTS_ALL c WHERE r.CONTRACT_ID = c.CONTRACT_ID;
- Reverse lookup: WHERE RELATED_CONTRACT_ID = :contract_id to identify parent or originating contracts.
Reporting scenarios include contract hierarchy reports, related-agreement listings, and impact analysis when a master agreement is amended. Because the table carries full audit columns, change-tracking extracts are also practical.
Related Objects
The most significant associated objects are:
- OKC_REP_CONTRACTS_ALL — Referenced twice via CONTRACT_ID and the related contract column, forming the principal join target for both sides of the relationship.
- OKC_REP_CONTRACT_RELS_PK — The primary key constraint on CONTRACT_RELATIONSHIP_ID.
- OKC_REP_CONTRACT_RELS_U1 — The unique index on (CONTRACT_ID, RELATED_CONTRACT_ID, RELATIONSHIP_ROLE1_ID).
- Relationship type reference object — The target of RELATIONSHIP_TYPE_ID, used to classify the nature of the link.
- Contract role/party objects — Role identifiers such as RELATIONSHIP_ROLE1_ID integrate with role definitions used across the Contracts schema.
These objects together support the contract relationship model within the OKC schema.
-
Table: OKC_REP_CONTRACT_RELS
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID, product: OKC - Contracts Core , description: Stores the relationship between two contracts. The two related contracts are CONTRACT_ID and RELATED_CONTRACT_ID. RELATED_CONTRACT_ROLE is the role of contract RELATED_CONTRACT_ID. , implementation_dba_data: OKC.OKC_REP_CONTRACT_RELS ,
-
Table: OKC_REP_CONTRACT_RELS
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID, product: OKC - Contracts Core , description: This table stores a relationship between two contracts that are created in Repository. , implementation_dba_data: OKC.OKC_REP_CONTRACT_RELS ,
-
VIEW: OKC.OKC_REP_CONTRACT_RELS#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_REP_CONTRACT_RELS#, status:VALID,
-
SYNONYM: APPS.OKC_REP_CONTRACT_RELS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
Table: OKC_REP_CONTRACTS_ALL
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACTS_ALL, object_name:OKC_REP_CONTRACTS_ALL, status:VALID, product: OKC - Contracts Core , description: This table is the main Contracts table. This table stores the latest version of all contracts authored in Contract Repository. , implementation_dba_data: OKC.OKC_REP_CONTRACTS_ALL ,
-
SYNONYM: APPS.OKC_REP_CONTRACT_RELS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
VIEW: OKC.OKC_REP_CONTRACT_RELS#
12.2.2
-
TABLE: OKC.OKC_REP_CONTRACT_RELS
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
Table: OKC_REP_CONTRACTS_ALL
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACTS_ALL, object_name:OKC_REP_CONTRACTS_ALL, status:VALID, product: OKC - Contracts Core , description: This is the main Contracts table. This table stores the latest version of all Repository-authored contracts. , implementation_dba_data: OKC.OKC_REP_CONTRACTS_ALL ,
-
Concurrent Program: OKCMIGCONRELATIONSCP
12.2.2
execution_filename: OKC_REP_CONTRACT_IMP_PVT.migrate_contract_relations , product: OKC - Contracts Core , user_name: Migration of Contract Relationships Data (12.2.2) , description: Migrates Contract Relationships Data from okc_rep_contract_rels table to okc_rep_contract_usages table (12.2.2) , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
TABLE: OKC.OKC_REP_CONTRACT_RELS
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CONTRACT_RELS, object_name:OKC_REP_CONTRACT_RELS, status:VALID,
-
Table: OKC_REP_RELATIONSHIPS_B
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_RELATIONSHIPS_B, object_name:OKC_REP_RELATIONSHIPS_B, status:VALID, product: OKC - Contracts Core , description: This table stores the seeded contract Relationships for Contract Repository. , implementation_dba_data: OKC.OKC_REP_RELATIONSHIPS_B ,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_CONTRACT_IMP_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_PROCESS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_CONTRACT_PROCESS_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
APPS.OKC_REP_CONTRACT_IMP_PVT SQL Statements
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_RELS
12.2.2
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_CONTRACT_RELS
12.1.1
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_IMP_PVT
12.2.2
-
Foreign Keys
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT SQL Statements
12.1.1
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACTS_ALL
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on FND_FILE
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_VERS
12.2.2
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_CONTRACT_USAGES
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 ,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_PROCESS_PVT
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on STANDARD
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on FND_API
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 ,