Search Results cln_debug_pub
Overview
CLN_DEBUG_PUB is a public PL/SQL package body owned by the APPS schema that provides a centralized debugging and diagnostic logging framework within Oracle E-Business Suite Release 12.1.1 and 12.2.2. The package belongs to the "CLN" (Oracle Contracts) product family and is classified as a public API, meaning it is intended for invocation by other application code rather than being restricted to internal use. Its core business function is to allow developers and support engineers to instrument PL/SQL code with conditional debug output, capturing diagnostic messages that can be stored, buffered, and later retrieved for analysis. Because it is referenced by 42 other packages, CLN_DEBUG_PUB functions as shared infrastructure rather than a standalone utility, enabling consistent, controlled diagnostic logging across a broad set of dependent modules without each module reimplementing its own logging logic.
Key Procedures and Functions
The documented interface exposes fourteen procedures and functions. The following are explicitly enumerated in the metadata:
- SET_DEBUG_MODE — Establishes the overall debug state for the session or execution context, enabling or disabling diagnostic capture.
- INITIALIZE — Prepares the package's internal state, buffers, and index pointers for a debugging session.
- DEBUG_ON — Activates debug logging so subsequent debug messages are captured.
- DEBUG_OFF — Deactivates debug logging, suppressing further capture.
- ISDEBUGON — Returns whether debugging is currently active, allowing callers to avoid expensive message construction when logging is disabled.
- GETDEBUGCOUNT — Returns the number of debug messages accumulated in the buffer.
- ADD — Appends a debug message to the internal buffer, forming the primary logging entry point.
- GETFIRST — Positions retrieval at the first buffered debug message.
- GETNEXT — Advances to and returns the next buffered debug message.
- GETNEXTBUFFER — Retrieves the next block or buffer segment of debug content.
- RESETINDEX — Resets the internal retrieval index so iteration can restart from the beginning.
- SETDEBUGLEVELFROMPROFILE — Derives the active debug level from an Oracle EBS profile option, allowing debug verbosity to be governed centrally by configuration.
- SETDEBUGLEVEL — Sets the debug level directly, controlling the granularity of messages captured.
Together these routines implement a producer-consumer model: callers use ADD to write messages, and iteration functions (GETFIRST, GETNEXT, GETNEXTBUFFER, RESETINDEX) read them back. Parameter lists are not documented in the metadata and are therefore not reproduced here.
Tables Accessed
CLN_DEBUG_PUB references several underlying objects, accessed via APPS synonyms. CLN_DEBUG_S is the primary persistent store for debug records, holding captured messages across sessions. DUAL is used for trivial single-row SQL evaluation, such as confirming state or returning constants. PLITBLM is a standard Oracle-supplied PL/SQL table type used for in-memory buffering of message collections. UTL_FILE is the Oracle-supplied file I/O package, indicating that debug output may optionally be written to server-side operating system files. The package also depends on FND_API, FND_FILE, FND_GLOBAL, and FND_PROFILE. FND_PROFILE is particularly significant because SETDEBUGLEVELFROMPROFILE reads profile option values from it to determine the active debug level.
Usage Notes
CLN_DEBUG_PUB is typically invoked from custom PL/SQL code, concurrent programs, and Oracle Forms logic that require controlled diagnostic output. A common pattern is to call SETDEBUGLEVELFROMPROFILE or SETDEBUGLEVEL during initialization, guard expensive message construction with ISDEBUGON, append messages through ADD, and then flush buffered content via the GETFIRST/GETNEXT/GETNEXTBUFFER iteration sequence. Because the package depends on FND_PROFILE, debug verbosity can be toggled per user, responsibility, or site without code changes. Its role as a dependency of 42 other packages confirms that it is foundational infrastructure within the Contracts modules, and developers instrumenting those modules should use this package rather than introducing ad hoc logging to preserve consistency and respect the configured debug levels.
-
PACKAGE BODY: APPS.CLN_DEBUG_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_DEBUG_PUB, status:VALID,
-
PACKAGE BODY: APPS.CLN_DEBUG_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_DEBUG_PUB, status:VALID,
-
PACKAGE: APPS.CLN_DEBUG_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CLN_DEBUG_PUB, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.CLN_DEBUG_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CLN_DEBUG_PUB, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.CLN_3C3_AP_TRIGGER_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_3C3_AP_TRIGGER_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_3C3_AP_TRIGGER_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_3C3_AP_TRIGGER_PKG, status:VALID,
-
SYNONYM: APPS.CLN_DEBUG_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CLN_DEBUG_S, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.M4R_3B2IN_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4R_3B2IN_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_SHOWSHIP_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SHOWSHIP_UTILS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.CLN_DEBUG_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CLN_DEBUG_S, status:VALID,
-
PACKAGE BODY: APPS.M4U_UCC_ADAPTER
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_UCC_ADAPTER, status:VALID,
-
PACKAGE BODY: APPS.M4U_DMD_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_DMD_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CLN_SHOWSHIP_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SHOWSHIP_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CLN_NOTIFY_SHIPCONF_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_NOTIFY_SHIPCONF_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_EGOEVNT_HANDLER
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_EGOEVNT_HANDLER, status:VALID,
-
PACKAGE BODY: APPS.M4U_UCC_ADAPTER
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_UCC_ADAPTER, status:VALID,
-
PACKAGE BODY: APPS.CLN_NP_UTILS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_NP_UTILS_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_UPDTDLVY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UPDTDLVY_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_GET_CIN_EXTN
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_GET_CIN_EXTN, status:VALID,
-
PACKAGE BODY: APPS.CLN_UPDTDLVY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UPDTDLVY_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_RESP_PROCESS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_RESP_PROCESS, status:VALID,
-
PACKAGE BODY: APPS.M4U_GLOBAL_REGQRY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_GLOBAL_REGQRY, status:VALID,
-
PACKAGE BODY: APPS.M4U_EGOEVNT_HANDLER
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_EGOEVNT_HANDLER, status:VALID,
-
PACKAGE BODY: APPS.M4U_UCC_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_UCC_UTILS, status:VALID,
-
PACKAGE BODY: APPS.M4U_DMD_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_DMD_UTILS, status:VALID,
-
PACKAGE BODY: APPS.M4U_WLQ_GENERATE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_WLQ_GENERATE, status:VALID,
-
PACKAGE BODY: APPS.M4U_XML_EXTN
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_XML_EXTN, status:VALID,
-
PACKAGE BODY: APPS.CLN_WSH_SHIP_ORDER_OUT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_WSH_SHIP_ORDER_OUT_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4R_OM_CONF_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4R_OM_CONF_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_UCC_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_UCC_UTILS, status:VALID,
-
PACKAGE BODY: APPS.ITG_DEBUG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ITG_DEBUG, status:VALID,
-
PACKAGE BODY: APPS.M4R_7B5_OSFM_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4R_7B5_OSFM_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_PO_CHG_ORDER_STATUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_PO_CHG_ORDER_STATUS, status:VALID,
-
PACKAGE BODY: APPS.CLN_NOTIFY_SHIPCONF_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_NOTIFY_SHIPCONF_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_3A9_CANCELPO_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_3A9_CANCELPO_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_SETUP_PACKAGE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_SETUP_PACKAGE, status:VALID,
-
PACKAGE BODY: APPS.M4U_GLOBAL_REGQRY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_GLOBAL_REGQRY, status:VALID,
-
PACKAGE BODY: APPS.M4U_PARTY_QUERY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_PARTY_QUERY, status:VALID,
-
PACKAGE BODY: APPS.CLN_SYNCCTLG_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SYNCCTLG_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4U_PARTY_QUERY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_PARTY_QUERY, status:VALID,
-
PACKAGE BODY: APPS.CLN_WSH_SHIP_ORDER_OUT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_WSH_SHIP_ORDER_OUT_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4R_3B2IN_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4R_3B2IN_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_PO_CHANGE_RESPONSE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_PO_CHANGE_RESPONSE_PKG, status:VALID,
-
PACKAGE BODY: APPS.M4R_OM_CONF_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:M4R_OM_CONF_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_INV_REJECT_NOTIF_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_INV_REJECT_NOTIF_PVT, status:VALID,
-
PACKAGE BODY: APPS.M4U_XML_EXTN
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:M4U_XML_EXTN, status:VALID,