Search Results okc_p_util




Overview

OKC_P_UTIL is a utility package body in the APPS schema associated with the Oracle Contracts (OKC) module of Oracle E-Business Suite. In the Oracle EBS 12.1.1 and 12.2.2 releases, it is catalogued by the E-Business Suite Technical Reference Manual (ETRM) with an API classification of UTIL, signifying that it provides low-level, reusable helper routines rather than a business-facing application programming interface. Its responsibilities encompass primitive data conversion, dynamic SQL execution, version identification, and generation of database trigger source text. Because these services are generic, the package is consumed broadly across the Contracts family of modules, and the ETRM records that it is referenced by 395 other packages. The version investigated is reported with status VALID, confirming that the compiled body is present and free of compilation errors in the documented environment.

Key Procedures and Functions

The ETRM metadata documents four public subprograms within OKC_P_UTIL:

  • VERSION_STRING — Returns the version identifier of the package, enabling callers and diagnostics to determine the code level of the utility library installed in a given environment.
  • RAW_TO_NUMBER — Converts a RAW datatype value into a NUMBER. This supports internal identification schemes, such as contract or line identifiers that are held or transported in RAW form, so that they may be used in numeric comparisons and joins.
  • EXECUTE_SQL — Executes dynamically constructed SQL statements using Oracle's DBMS_SQL facility. It provides the Contracts code base with a controlled entry point for runtime SQL that cannot be expressed statically.
  • INSTEAD_OF_TRG — Generates or supports the creation of INSTEAD OF trigger logic, the mechanism by which DML against a view is redirected to the underlying base tables. This is used where Contracts exposes updatable views over its contract data model.

The ETRM records no additional public subprograms; no parameter lists are documented and none are asserted here.

Tables Accessed

The documented dependency information lists no application tables as directly referenced by OKC_P_UTIL. The only database object identified is the supplied package DBMS_SQL, which is invoked by EXECUTE_SQL to parse, bind, execute, and fetch from dynamically built statements. The absence of OKC application tables in the dependency list is consistent with the package's utility classification: it operates on data values and SQL text supplied by its callers rather than owning or querying Contracts business entities itself. The remaining dependencies are PL/SQL infrastructure components, namely DBMS_STANDARD and STANDARD, together with the package's own specification OKC_P_UTIL, confirming that the body is implemented against its declared interface.

Usage Notes

OKC_P_UTIL is an internal support library rather than a user-invoked component. It is not exposed through a concurrent program or a standard Oracle Forms responsibility; instead it is invoked from within the PL/SQL of the Contracts modules and from custom extensions that call Contracts APIs. The ETRM records that no database object references OKC_P_UTIL, indicating that its callers are other PL/SQL units in the APPS schema rather than database-level dependents such as views or triggers. Because EXECUTE_SQL relies on DBMS_SQL, callers should supply fully qualified, bind-aware SQL text and remain mindful of the privileges under which the APPS schema executes dynamic statements. Customizations should avoid modifying this package directly, since it is a shared utility underpinning hundreds of dependent packages and changes may affect Contracts functionality broadly. Where version-sensitive behaviour is a concern, VERSION_STRING may be queried to confirm the installed code level. Oracle's standard recommendation applies: treat OKC_P_UTIL as read-only infrastructure and confine extensions to wrapper code in a distinct custom schema.