Search Results okc_rep_contracts_all_n10




Overview

OKC.OKC_REP_CONTRACTS_ALL is the primary repository table for the Oracle E-Business Suite Contract Repository (OKC), storing the latest version of every contract authored within the module. In Oracle EBS 12.1.1 and 12.2.2, this table serves as the authoritative source for contract header information, encompassing user-entered contract attributes, lifecycle dates, ownership, financial amounts, risk classification, workflow linkage, and descriptive flexfield segments. It resides in the APPS_TS_TX_DATA tablespace and is owned by the OKC schema, with FND design data registered as OKC.OKC_REP_CONTRACTS_ALL.

From a Data Vault modeling perspective, the table exhibits hub-leaning characteristics. Its surrogate primary key, CONTRACT_ID, is drawn from the sequence OKC_REPO_CONTRACTS_ALL_S and remains stable across versions, making it a natural hub candidate. Business-key attribution would, however, be anchored by OKC_REP_CONTRACTS_ALL_U1 on CONTRACT_ID (unique) and OKC_REP_CONTRACTS_ALL_U2 on CONTRACT_NUMBER (unique).

Key Information Stored

Of the 70 documented columns, the following are the most operationally significant:

Common Use Cases and Queries

Typical uses include contract register reporting, expiry and renewal monitoring, risk exposure analysis, and integration feeds. A frequently used pattern retrieves the unique current contract row using the business key:

  • SELECT contract_id, contract_number, contract_name, contract_status_code, amount, currency_code FROM okc.okc_rep_contracts_all WHERE contract_number = :p_number;
  • Reporting upcoming expirations: SELECT contract_number, contract_expiration_date FROM okc.okc_rep_contracts_all WHERE contract_expiration_date BETWEEN :from_dt AND :to_dt AND contract_status_code = 'ACTIVE' AND org_id = :org;
  • Risk reporting: filter by OVERALL_RISK_CODE leveraging OKC_REP_CONTRACTS_ALL_N11.
  • Keyword search using the Oracle Text index on KEYWORDS via CONTAINS(keywords, :term) > 0.
  • Case-insensitive lookup on name/number through the function-based indexes N4 and N12.

Related Objects

The table participates in a hub-style relationship set with several dependent child tables joined on CONTRACT_ID, plus lookup lookups on type and contact role: