Search Results py_intrsql




Overview

PAY_PROC_LOGGING is an Oracle Application Object Library (APPS) PL/SQL package within the Oracle E-Business Suite payroll schema. Its business function is to provide a centralized, reusable logging framework for Oracle Payroll processing programs. Rather than each payroll engine or utility embedding its own diagnostic output mechanism, PAY_PROC_LOGGING supplies a consistent set of entry, exit, text, formula, and statement-level logging routines that write structured diagnostic information during batch and online payroll execution.

The package is recorded in the ETRM repository for 12.1.1 and 12.2.2 with a status of VALID and an API classification of OTHER. It is widely embedded across the payroll code base: the dependency metadata shows it is referenced by HR_DYNSQL, HR_NONRUN_ASACT, HR_UTILITY, PAY_CORE_UTILS, PAY_POPULATION_RANGES_PKG, PAY_PROC_ENVIRONMENT_PKG, and recursively by itself. It in turn depends only on the SYS.STANDARD package.

Key Procedures and Functions

The documented interface exposes ten procedures, organized around a lifecycle model of initialization, logging, and cleanup:

  • PY_ENTRY — records entry into a processing routine, establishing the start of a traceable execution span.
  • PY_EXIT — records exit from a processing routine, closing the span opened by PY_ENTRY.
  • PY_LOG — the general-purpose logging routine used to emit diagnostic messages.
  • PY_LOG_WRT — performs the physical write operation that persists buffered log content.
  • PY_LOG_TXT — logs free-form text content.
  • PY_LOG_FORMULA — logs output specific to payroll formula evaluation, supporting formula debugging.
  • INIT_LOGGING — initializes the logging environment for a processing session.
  • DEINIT_LOGGING — tears down the logging environment and flushes or releases resources.
  • INIT_FORM_LOGGING — initializes logging in the context of an Oracle Forms session.
  • DEINIT_FORM_LOGGING — terminates logging for a Forms session.

The paired INIT/DEINIT and ENTRY/EXIT naming convention confirms a scoped design in which callers bracket their logic to guarantee well-formed log output.

Tables Accessed

The ETRM metadata documents a single referenced object for this package: DBMS_LOB, resolved through an APPS synonym. DBMS_LOB is the Oracle-supplied large object package, indicating that PAY_PROC_LOGGING stores or manipulates log content as CLOB data. This design allows large, potentially multi-line diagnostic traces—particularly formula and process output—to be accumulated and written without the length constraints of VARCHAR2. The metadata does not disclose any base payroll tables read or written by the package, so its persistence mechanism is best treated as an internal logging target rather than one of the core payroll business tables.

Usage Notes

PAY_PROC_LOGGING is an internal infrastructure package rather than a business API. It is normally invoked indirectly. Oracle Payroll concurrent programs and their supporting PL/SQL packages—such as PAY_CORE_UTILS, PAY_POPULATION_RANGES_PKG, and PAY_PROC_ENVIRONMENT_PKG—call the logging routines to capture run-time diagnostics. The presence of INIT_FORM_LOGGING and DEINIT_FORM_LOGGING shows that Oracle Payroll forms also route their diagnostics through the same framework, giving a single logging behavior across batch and online modes.

In 12.1.1 and 12.2.2, support and development staff enable or raise logging verbosity through the standard payroll process configuration rather than by calling these procedures directly. The package is not documented as a public extension point, and custom code that calls it should treat INIT/DEINIT and ENTRY/EXIT as mandatory brackets to avoid orphaned log sessions. Because it is referenced by six other packages, changes to this package carry broad impact across payroll processing and should be handled with the same caution as any core payroll utility.