Search Results pn_debug




Overview

APPS.PN_DEBUG is a utility package in the Oracle E-Business Suite Property Manager (PN) module, which manages real estate leases, rent schedules, and property-related transactions. The package provides a centralized diagnostic and logging framework used throughout the PN product family. Its principal responsibility is to allow developers and support personnel to enable, control, and capture debug output generated by PN business logic without modifying the code being diagnosed. The package also manages an internal error stack and user-level locking, enabling consistent error propagation and controlled access to shared processes such as lease or variable-rent calculations.

In Oracle EBS 12.1.1 and 12.2.2, PN_DEBUG is deployed in the APPS schema with a status of VALID. It is classified as an "OTHER" API, indicating that it is an internal utility rather than a public integration API. The package is documented with 29 procedures and functions, all focused on debugging, logging, error stack manipulation, and session-level locking.

Key Procedures and Functions

The documented procedures fall into several functional groups:

The package depends on FND_FILE, FND_GLOBAL, and PN_PLSQL_DATATYPES, reflecting its integration with EBS file output, session context, and PN-specific datatype definitions.

Tables Accessed

PN_DEBUG references four objects through APPS synonyms. DBMS_LOCK is used to implement the user-level lock procedures. DUAL supports simple singleton queries. UTL_FILE provides the file I/O backing for WRITE_FILE and related logging output. PLITBLM is referenced in the dependency list and is associated with PL/SQL internal table and message handling used by the logging framework. No application transaction tables (such as lease or rent tables) are directly accessed, confirming that PN_DEBUG acts purely as an infrastructure utility.

Usage Notes

PN_DEBUG is referenced by six other PN packages, including PN_LEASE_PUB, PN_LEASE_PVT, PN_VAREN_PVT, PN_VAREN_UTIL, PN_INDEX_RENT_PVT, and PN_AM_WF. These packages call its debug, error stack, and locking routines during lease processing, variable-rent calculation, index-based rent adjustment, and workflow-driven activity management. The package is therefore invoked indirectly whenever property business logic executes, rather than being exposed directly to end users. Administrators typically enable debugging at the session or profile level, reproduce a transaction, and then inspect the resulting log file. Because ENABLE_DEBUG, SET_DEBUG_LEVEL, and the user-lock routines affect session behavior, custom code and concurrent programs should call them judiciously to avoid contention or excessive log volume. Disabling debug after diagnostics are complete restores normal performance.