Search Results ecx_cln_debug_pub




Overview

ECX_CLN_DEBUG_PUB is a public PL/SQL package owned by the APPS schema in Oracle E-Business Suite, classified as a PUB (public) API within the Oracle Collaboration and Messaging (ECX/CLN) product family. Its function is to provide a centralized debugging and diagnostic logging facility for the collaboration messaging infrastructure, allowing developers and support personnel to capture execution traces, record debug messages, and inspect them through a controlled programmatic interface.

The package is part of the ETRM 12.2.2 documented object set and is marked VALID in ETRM 12.1.1 / 12.2.2. It is referenced by five other packages — CLN_CH_COLLABORATION_PKG, CLN_CH_EVENT_SUBSCRIPTION_PKG, CLN_NP_CONC_API_CALL, CLN_NP_PROCESSOR_PKG, and CLN_XMLG_EVENT_HANDLER_PKG — and also calls itself recursively. This dependency pattern confirms its role as a shared utility invoked by the collaboration messaging runtime to emit diagnostic output during processing of collaboration events, notifications, and XML Gateway messages.

Key Procedures and Functions

The package exposes 14 documented procedures and functions. The core control routines are SET_DEBUG_MODE, DEBUG_ON, DEBUG_OFF, and ISDEBUGON, which establish, enable, disable, and query the current debug state for an active session. INITIALIZE prepares the debug buffer or file handle for use. SETDEBUGLEVEL, SETDEBUGLEVELFROMPROFILE, and GETDEBUGCOUNT manage and report the verbosity level, with SETDEBUGLEVELFROMPROFILE deriving the level from an FND_PROFILE value so that debugging can be enabled without code changes.

  • ADD — appends a debug message to the internal buffer.
  • GETFIRST / GETNEXT / GETNEXTBUFFER — iterate over buffered debug entries to retrieve the first, subsequent, and buffered-next records respectively.
  • RESETINDEX — resets the read cursor so retrieval can restart from the beginning.
  • SET_DEBUG_MODE, DEBUG_ON, DEBUG_OFF, ISDEBUGON — toggle and test debug state.
  • INITIALIZE, SETDEBUGLEVEL, SETDEBUGLEVELFROMPROFILE, GETDEBUGCOUNT — initialize, configure level, and count entries.

No parameter lists are documented in the metadata; only purposes are described.

Tables Accessed

Documented dependencies include APPS.FND_API, APPS.FND_PROFILE, PUBLIC.UTL_FILE, SYS.STANDARD, and the APPS-synonym objects CLN_DEBUG_S, DUAL, and PLITBLM. CLN_DEBUG_S is the primary persistent table used to store debug session settings or captured entries. FND_PROFILE supplies the profile option value used by SETDEBUGLEVELFROMPROFILE. UTL_FILE enables writing debug output to a server-side operating system file. DUAL supports scalar queries, and PLITBLM is the underlying table used by DBMS_OUTPUT for buffered line output.

Usage Notes

ECX_CLN_DEBUG_PUB is typically invoked programmatically rather than directly by end users. Collaboration messaging packages call DEBUG_ON or SETDEBUGLEVELFROMPROFILE at the start of processing, use ADD throughout execution to record diagnostic messages, and use GETFIRST/GETNEXT to retrieve them for display, logging, or error reporting. Administrators enable debugging by setting the relevant FND_PROFILE option, after which debug output is captured to CLN_DEBUG_S or written via UTL_FILE. Because it is a public API, it may also be called from custom concurrent programs or PL/SQL wrappers that diagnose collaboration messaging behavior in Oracle EBS 12.1.1 and 12.2.2.