Search Results server_software




Overview

The OWAPUB.OWA package body is a core Oracle-supplied PL/SQL package that implements the Oracle Web Agent (OWA) toolkit within Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2. It provides the foundational runtime layer used by the PL/SQL Gateway (mod_plsql / Apache PL/SQL cartridge) and by the Oracle HTTP Server to expose database-stored procedures as callable web endpoints. The package is owned by SYS and is classified under the ETRM "OTHER" API classification, indicating it is an internal infrastructure component rather than a business-facing API. Its primary role is to initialize and manage the Common Gateway Interface (CGI) environment variables that describe an inbound HTTP request, and to provide controlled access to the output buffer generated by a user's PL/SQL procedure. In EBS, this machinery underpins the delivery of web pages from packages such as OWA, HTP, HTF, and the various FND_* web utilities that render self-service and administrative UIs.

Key Procedures and Functions

The ETRM metadata documents eleven callable components. The INITIALIZE procedure performs one-time setup of the package's global state, ensuring CGI variable arrays and output buffers are ready before a request is processed.

Tables Accessed

The ETRM metadata records no direct table references via APPS synonyms for this package. The OWA package body operates entirely on in-memory PL/SQL structures — CGI variable arrays (cgi_var_name, cgi_var_val, num_cgi_vars) and the output buffer — rather than issuing SQL against application tables. This is consistent with its role as a request/response processing layer sitting beneath business logic. Persistent data access is delegated to higher-level packages that call OWA routines.

Usage Notes

OWAPUB.OWA is generally not invoked directly by application developers. It is executed implicitly by the Oracle HTTP Server PL/SQL gateway when a browser request targets a stored procedure through a DAD (Database Access Descriptor), and by infrastructure packages such as HTP that wrap its buffer-management routines. In EBS 12.1.1 (Apache/mod_plsql) and 12.2.2 (Fusion Middleware WebLogic with the PL/SQL cartridge), the package initializes the CGI environment — including HTTP_USER_AGENT — so that the invoked procedure can inspect request headers, then collects the HTML output through GET_PAGE or GET_PAGE_RAW. The metadata notes it is referenced by two other packages, confirming its role as a shared dependency. Custom code should rely on the public wrappers HTP, HTF, and OWA_UTIL rather than calling OWA members directly, since the package is owned by SYS and subject to change between EBS releases.