Search Results ecx_debug
Overview
APPS.ECX_DEBUG is the central diagnostic and logging utility package of the Oracle E-Business Suite Procurement and E-Commerce Gateway (ECX) module. Its principal business function is to provide a standardized, controllable mechanism through which other ETRM components record trace messages, debug output, and runtime error context without requiring changes to production code. The package acts as a debug switchboard: individual modules register a debug level, and the package determines whether messages from that level are emitted to the database log, an operating-system spool file, or suppressed entirely. Because ECX_DEBUG is a VALID package body owned by APPS, it is available to all application schemas through the standard synonym conventions of EBS 12.1.1 and 12.2.2.
The documented dependency list confirms its role as a low-level infrastructure object. It references ECX_STANDARDS, ECX_UTILS, ECX_ERROR_MSGS, FND_LOG, FND_LOG_ATTACHMENT, FND_MESSAGE, WF_CORE, DBMS_LOB, PLITBLM, UTL_FILE, and the STANDARD package. Notably, the metadata states that ECX_DEBUG is not referenced by any database object under the ETRM documentation scope, while a separate index records it as referenced by 31 other packages. This reflects its nature as a shared plumbing layer invoked at runtime rather than a compile-time dependency of higher-level modules.
Key Procedures and Functions
The package exposes 35 documented procedures and functions, the most significant of which are summarized below. Parameter lists are intentionally omitted here; refer to the ETRM object listing for signatures.
- ENABLE_DEBUG and ENABLE_DEBUG_NEW — Activate debug tracing for a calling module or user session. ENABLE_DEBUG_NEW provides the extended variant used in later ETRM code paths.
- DISABLE_DEBUG — Terminates debug tracing and restores normal processing.
- MODULE_ENABLED — Returns whether debugging is currently active for a given module, allowing callers to short-circuit expensive trace construction.
- PUSH and POP — Manage a debug stack, permitting nested routines to inherit and then release the ambient debug context.
- SPLIT, INDENT_TEXT, HEAD, and TAIL — Formatting helpers that break messages into lines, apply indentation for readability, and emit section header or footer markers.
- PL, LOG, and PRINT_LOG — The primary message-emission routines, writing trace text to the configured log destination and flushing buffered output.
- PRINT_DEBUG_SPOOL — Writes accumulated debug output to a spool destination, typically via UTL_FILE.
- GETTRANSLATEDMESSAGE, SETMESSAGE, GETMESSAGE, and SETERRORINFO — Manage message text and error attributes, integrating with FND_MESSAGE and the ECX_ERROR_MSGS repository.
- GETDEBUGLEVELS — Retrieves the currently configured debug levels so callers can conditionally emit output.
Tables Accessed
ECX_DEBUG reads and, where applicable, writes the following documented objects through APPS synonyms:
- ECX_ERROR_MSGS — Source of the error and message text surfaced by SETMESSAGE and GETMESSAGE.
- ECX_STANDARDS — Provides system-level standards and configuration values that govern message formatting and debug behavior.
- FND_LOG_MESSAGES — The Oracle Application Object Library log table used as the persistent destination for debug output when FND_LOG logging is enabled.
- DBMS_LOB and PLITBLM — Used for large-object handling and PL/SQL table manipulation supporting the debug buffer.
- UTL_FILE — Used to write debug spool files to the file system.
Usage Notes
ECX_DEBUG is not typically invoked directly by end users or by Forms. It is called programmatically by ETRM PL/SQL packages, concurrent program logic, and custom extensions that need diagnostic visibility into E-Commerce Gateway processing. Administrators enable tracing at the session or module level through the ENABLE_DEBUG routines, reproduce the scenario, and then inspect output in FND_LOG_MESSAGES or in the spool file produced by PRINT_DEBUG_SPOOL. Because it is not referenced by other database objects at the schema level, it can be modified or recompiled with limited impact on dependent code, though the 31 documented callers make regression testing advisable after any change.
-
TYPE: APPS.ECX_DBG_ARRAY_TYPE
12.2.2
owner:APPS, object_type:TYPE, object_name:ECX_DBG_ARRAY_TYPE, status:VALID,
-
TYPE: APPS.ECX_DBG_ARRAY_TYPE
12.1.1
owner:APPS, object_type:TYPE, object_name:ECX_DBG_ARRAY_TYPE, status:VALID,
-
PACKAGE BODY: APPS.ECX_DEBUG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DEBUG, status:VALID,
-
PACKAGE BODY: APPS.ECX_DEBUG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DEBUG, status:VALID,
-
TYPE: APPS.FND_TABLE_OF_VARCHAR2_4000
12.2.2
owner:APPS, object_type:TYPE, object_name:FND_TABLE_OF_VARCHAR2_4000, status:VALID,
-
PACKAGE: APPS.ECX_DEBUG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECX_DEBUG, status:VALID,
-
PACKAGE: APPS.ECX_DEBUG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECX_DEBUG, status:VALID,
-
PACKAGE BODY: APPS.ECX_ERROR_HANDLING_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_ERROR_HANDLING_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.ECX_ERROR_MSGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_ERROR_MSGS, status:VALID,
-
PACKAGE BODY: APPS.ECX_CONDITIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_CONDITIONS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.ECX_ERROR_HANDLING_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_ERROR_HANDLING_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.ECX_CONDITIONS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_CONDITIONS, status:VALID,
-
PACKAGE BODY: APPS.ECX_MIGRATE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_MIGRATE, status:VALID,
-
SYNONYM: APPS.ECX_ERROR_MSGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_ERROR_MSGS, status:VALID,
-
PACKAGE BODY: APPS.ECX_DOCUMENT_STANDARDS_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DOCUMENT_STANDARDS_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_PRINT_LOCAL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_PRINT_LOCAL, status:VALID,
-
PACKAGE BODY: APPS.ECX_DOCUMENT_STANDARDS_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DOCUMENT_STANDARDS_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_ATTACHMENT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_ATTACHMENT, status:VALID,
-
PACKAGE: APPS.FND_LOG_ATTACHMENT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_LOG_ATTACHMENT, status:VALID,
-
PACKAGE: APPS.FND_LOG_ATTACHMENT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_LOG_ATTACHMENT, status:VALID,
-
PACKAGE BODY: APPS.ECX_TRANSACTIONS_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_TRANSACTIONS_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_TRADING_PARTNER_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_TRADING_PARTNER_PVT, status:VALID,
-
PACKAGE BODY: APPS.ECX_MIGRATE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_MIGRATE, status:VALID,
-
PACKAGE BODY: APPS.ECX_CODE_CONVERSION_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_CODE_CONVERSION_PVT, status:VALID,
-
PACKAGE BODY: APPS.ECX_CODE_CONVERSION_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_CODE_CONVERSION_PVT, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_LISTENER_QH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_LISTENER_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_XREF_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_XREF_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_NEW
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_NEW, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_LISTENER_QH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_LISTENER_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_UTIL_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_UTIL_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_PRINT_LOCAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_PRINT_LOCAL, status:VALID,
-
PACKAGE BODY: APPS.ECX_ATTACHMENT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_ATTACHMENT, status:VALID,
-
PACKAGE BODY: APPS.ECX_TRANSACTIONS_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_TRANSACTIONS_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_NEW
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_NEW, status:VALID,
-
PACKAGE BODY: APPS.ECX_XREF_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_XREF_API, status:VALID,
-
PACKAGE BODY: APPS.ECX_OUT_WF_QH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_OUT_WF_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_UTILS, status:VALID,
-
PACKAGE BODY: APPS.ECX_WF_ERRORS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_WF_ERRORS, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_ENGINE_QH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_ENGINE_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_TRADING_PARTNER_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_TRADING_PARTNER_PVT, status:VALID,
-
PACKAGE BODY: APPS.ECX_ACTIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_ACTIONS, status:VALID,
-
PACKAGE BODY: APPS.ECX_INBOUND_ENGINE_QH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_INBOUND_ENGINE_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_OUT_WF_QH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_OUT_WF_QH, status:VALID,
-
PACKAGE BODY: APPS.ECX_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_UTILS, status:VALID,