Search Results okc_rep_con_status_hist
Overview
OKC_REP_CON_STATUS_HIST is a Contracts Core (OKC) table in Oracle E-Business Suite 12.1.1 and 12.2.2 that stores the status change history of a contract. Its defining characteristic is version awareness: each version of a contract maintains its own status history, which is why the table is keyed by both contract identity and version number rather than by contract alone. This makes the object central to any audit or lifecycle analysis that needs to answer not only "what status is this contract in" but "what status was this contract in at a given point in time, and for which version." The table is owned by the OKC schema and is classified as VALID in the documented ETRM metadata.
Under a heuristic Data Vault classification mined from the foreign key structure, OKC_REP_CON_STATUS_HIST is treated as standalone. In modeling terms this suggests the table does not participate in a classic hub-and-link pattern through documented foreign keys, and is best regarded as a candidate satellite — a descriptive, time-stamped history attached to a contract/version parent. This is a suggestion only; the physical implementation remains a conventional relational table within the OKC schema.
Key Information Stored
The primary key is OKC_REP_CON_STATUS_HIST_PK, defined on the composite of CONTRACT_ID and CONTRACT_VERSION_NUM. These two columns form the surrogate/identity key of the record and are the columns a user searching on "contract_version_num" is most directly concerned with. CONTRACT_ID identifies the contract, and CONTRACT_VERSION_NUM identifies the specific version whose status history is being recorded.
A unique index, OKC_REP_CON_STATUS_HIST_U1, adds STATUS_CHANGE_DATE and STATUS_CODE to the key columns, making it the strong business-key candidate: a given contract version cannot repeat a specific status code at the same change date.
- STATUS_CODE — the status that the contract version transitioned to at that point in the history.
- STATUS_CHANGE_DATE — the effective date/time of the status transition, and the primary ordering column for history reconstruction.
- CHANGED_BY_USER_ID — the user who performed the status change, supporting audit and accountability reporting.
- OBJECT_VERSION_NUMBER — the optimistic locking / row versioning column used by the Oracle Forms-based contract UI to detect concurrent updates.
- CREATED_BY, CREATION_DATE — standard WHO columns recording insert audit.
- LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard WHO columns recording the most recent update and the login session context.
The table documents 11 columns in total, of which the version and status columns above carry the substantive business meaning; the remainder are standard EBS audit and concurrency attributes.
Common Use Cases and Queries
The most frequent use case is contract lifecycle reporting: reconstructing the status path of a contract version, measuring time-in-status, or identifying the current status as of a date. Because the history is version-scoped, queries generally filter on both CONTRACT_ID and CONTRACT_VERSION_NUM.
A typical pattern retrieves the complete status history for a given contract version in chronological order:
SELECT contract_id, contract_version_num, status_code, status_change_date, changed_by_user_id FROM okc.okc_rep_con_status_hist WHERE contract_id = :p_contract_id AND contract_version_num = :p_version ORDER BY status_change_date;SELECT status_code, status_change_date FROM okc.okc_rep_con_status_hist WHERE contract_id = :p_contract_id AND contract_version_num = :p_version AND status_change_date = (SELECT MAX(status_change_date) FROM okc.okc_rep_con_status_hist ...);— used to derive the latest known status.- Audit queries filtering on changed_by_user_id and a status_change_date range to identify who changed contract statuses during a period.
Because the unique index includes STATUS_CHANGE_DATE and STATUS_CODE, reporting that expects a single row per contract version and status will generally be safe, while analysis across versions should always carry CONTRACT_VERSION_NUM into the GROUP BY.
Related Objects
No explicit foreign key relationships were documented in the provided metadata, consistent with its "standalone" heuristic classification. The most significant logical relationships are to the contract header and version entities in OKC, joined on the composite key columns:
- OKC_REP_CON_STATUS_HIST_PK — the primary key constraint on (CONTRACT_ID, CONTRACT_VERSION_NUM).
- OKC_REP_CON_STATUS_HIST_U1 — the unique index on (CONTRACT_ID, CONTRACT_VERSION_NUM, STATUS_CHANGE_DATE, STATUS_CODE).
- OKC contract header tables joined via CONTRACT_ID to obtain contract identity and descriptive attributes.
- Contract version entities joined via CONTRACT_ID and CONTRACT_VERSION_NUM to align status history with the version record.
- OKC contract status lookup/validation objects referenced by STATUS_CODE to resolve status meaning.
- EBS user/application responsibility objects joined via CHANGED_BY_USER_ID for audit attribution.
Because the metadata documents no FK dependencies, integrators should confirm join paths against the specific 12.1.1 or 12.2.2 instance rather than assuming enforced referential integrity.
-
Table: OKC_REP_CON_STATUS_HIST
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CON_STATUS_HIST, object_name:OKC_REP_CON_STATUS_HIST, status:VALID, product: OKC - Contracts Core , description: Stores status changes history of a contract. Each version of a contract can have its own status history. , implementation_dba_data: OKC.OKC_REP_CON_STATUS_HIST ,
-
Table: OKC_REP_CON_STATUS_HIST
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CON_STATUS_HIST, object_name:OKC_REP_CON_STATUS_HIST, status:VALID, product: OKC - Contracts Core , description: This table stores the status changes history of a contract. Each version of a contract can have its own status history. , implementation_dba_data: OKC.OKC_REP_CON_STATUS_HIST ,
-
VIEW: OKC.OKC_REP_CON_STATUS_HIST#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_REP_CON_STATUS_HIST#, status:VALID,
-
VIEW: OKC.OKC_REP_CON_STATUS_HIST#
12.2.2
-
SYNONYM: APPS.OKC_REP_CON_STATUS_HIST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CON_STATUS_HIST, status:VALID,
-
SYNONYM: APPS.OKC_REP_CON_STATUS_HIST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_REP_CON_STATUS_HIST, status:VALID,
-
TABLE: OKC.OKC_REP_CON_STATUS_HIST
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CON_STATUS_HIST, object_name:OKC_REP_CON_STATUS_HIST, status:VALID,
-
TABLE: OKC.OKC_REP_CON_STATUS_HIST
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_REP_CON_STATUS_HIST, object_name:OKC_REP_CON_STATUS_HIST, 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 ,
-
PACKAGE BODY: APPS.OKC_REP_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_UTIL_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,
-
PACKAGE BODY: APPS.OKC_REP_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_REP_CONTRACT_PROCESS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_CONTRACT_PROCESS_PVT, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_REP_UTIL_PVT SQL Statements
12.1.1
-
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
-
PACKAGE: APPS.OKC_REP_SIGN_WF_PVT
12.2.2
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_REP_UTIL_PVT SQL Statements
12.2.2
-
PACKAGE: APPS.OKC_REP_WF_PVT
12.1.1
-
PACKAGE: APPS.OKC_REP_WF_PVT
12.2.2
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_CON_STATUS_HIST
12.2.2
-
APPS.OKC_REP_UTIL_PVT dependencies on OKC_REP_CON_STATUS_HIST
12.2.2
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_CON_STATUS_HIST
12.1.1
-
APPS.OKC_REP_UTIL_PVT dependencies on OKC_REP_CON_STATUS_HIST
12.1.1
-
PACKAGE BODY: APPS.OKC_REP_SIGN_WF_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_REP_WF_PVT
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT SQL Statements
12.1.1
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_UTIL_PVT
12.2.2
-
APPS.OKC_REP_CONTRACT_PROCESS_PVT dependencies on OKC_REP_UTIL_PVT
12.1.1
-
APPS.OKC_REP_CLOSEOUT_PVT dependencies on OKC_REP_UTIL_PVT
12.2.2
-
APPS.OKC_REP_SIGN_WF_PVT dependencies on OKC_REP_UTIL_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_REP_WF_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_REP_UTIL_PVT
12.1.1
-
APPS.OKC_REP_WF_PVT dependencies on OKC_REP_UTIL_PVT
12.1.1
-
APPS.OKC_REP_UTIL_PVT dependencies on OKC_REP_SIGNATURE_DETAILS
12.1.1
-
APPS.OKC_REP_UTIL_PVT dependencies on FND_FILE
12.1.1
-
PACKAGE BODY: APPS.OKC_REP_UTIL_PVT
12.2.2
-
APPS.OKC_REP_WF_PVT dependencies on FND_API
12.1.1
-
PACKAGE: APPS.OKC_REP_UTIL_PVT
12.1.1
-
APPS.OKC_REP_CONTRACT_IMP_PVT dependencies on OKC_REP_UTIL_PVT
12.2.2
-
APPS.OKC_REP_WF_PVT dependencies on OKC_REP_UTIL_PVT
12.2.2
-
APPS.OKC_REP_UTIL_PVT dependencies on OKC_REP_IMP_CONTRACTS_T
12.1.1