Search Results okl_debug_pub
Overview
OKL_DEBUG_PUB is a public PL/SQL package body in the APPS schema that provides a centralized debugging and diagnostic logging framework for the Oracle Lease and Finance Management (OKL) application family within Oracle E-Business Suite Release 12.1.1 and 12.2.2. Its primary business function is to give developers and support personnel a controlled mechanism for capturing runtime diagnostic output from lease management code paths without requiring direct database tracing or ad hoc instrumentation. The package writes formatted debug messages to operating system files through UTL_FILE, and its behaviour is governed by profile options and FND_LOG configuration. Because it is classified as a PUB (public) API, OKL_DEBUG_PUB is intended for general invocation by other application modules, and the ETRM metadata confirms that it is referenced by 205 other packages, making it one of the more widely consumed utility packages in the OKL schema. It is not referenced by any database object outside the application layer.
Key Procedures and Functions
The package exposes eight documented procedures and functions, each addressing a distinct aspect of the debug logging lifecycle:
- OPENFILE — Initializes and opens the target debug file handle used for subsequent message writes.
- LOGMESSAGE — Writes a formatted diagnostic message to the currently open debug file.
- SETDEBUGLEVEL — Establishes the granularity or verbosity threshold at which messages are recorded.
- SETDEBUGFILEDIR — Defines the directory location to which debug output files are written.
- CHECK_LOG_ENABLED — Determines whether debug or logging output is currently active for the session.
- CHECK_LOG_ON — Evaluates whether logging has been turned on, typically by inspecting FND_LOG or profile settings.
- SET_CONNECTION_CONTEXT — Records session and connection context information so debug output can be correlated to a specific user, session, or runtime environment.
- LOG_DEBUG — Serves as the principal entry point for emitting a debug-level message, combining the enabled checks with the actual write operation.
Tables Accessed
OKL_DEBUG_PUB does not read or write application business tables. Its documented dependencies resolve through APPS synonyms and fixed views to UTL_FILE, DUAL, V$DATABASE, and V$PARAMETER. UTL_FILE supplies the file I/O primitives used to create and write the debug output files. DUAL supports simple expression evaluation and control-flow checks. V$DATABASE provides database identity information useful for tagging log output, while V$PARAMETER is consulted to inspect initialization parameters that influence logging behaviour, such as the UTL_FILE_DIR setting or other environment characteristics. The package also depends on the FND_API, FND_GLOBAL, FND_LOG, FND_PROFILE, and OKC_API packages for API error handling, session context retrieval, logging infrastructure, profile option values, and common utilities.
Usage Notes
OKL_DEBUG_PUB is an internal developer and support utility rather than a user-facing feature. It is typically invoked from within OKL and OKC procedural code, lease management concurrent programs, and custom extensions that require traceable diagnostic output. Because logging is conditional, callers generally invoke CHECK_LOG_ENABLED or CHECK_LOG_ON before attempting output, and the actual message emission is channelled through LOG_DEBUG or LOGMESSAGE. File location and verbosity are established once per session via SETDEBUGFILEDIR and SETDEBUGLEVEL. Support engineers enable this facility during troubleshooting to capture detailed execution traces without modifying production source, while developers use it during unit testing and integration of lease management functionality. As a public package referenced by 205 dependent objects, its interface should be treated as stable, and any customization should avoid altering its documented procedures.
-
PACKAGE BODY: APPS.OKL_DEBUG_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEBUG_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEBUG_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEBUG_PUB, status:VALID,
-
PACKAGE: APPS.OKL_DEBUG_PUB
12.1.1
-
PACKAGE: APPS.OKL_DEBUG_PUB
12.2.2
-
PACKAGE BODY: APPS.OKL_DRILLDOWN_PUB_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DRILLDOWN_PUB_PKG, status:VALID,
-
PACKAGE BODY: APPS.OKL_DRILLDOWN_PUB_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DRILLDOWN_PUB_PKG, status:VALID,
-
PACKAGE BODY: APPS.OKL_PROCESS_TAX
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PROCESS_TAX, status:VALID,
-
PACKAGE BODY: APPS.OKL_CURE_RECON_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CURE_RECON_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_PROCESS_TAX
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PROCESS_TAX, status:VALID,
-
PACKAGE BODY: APPS.OKL_XMLGEN_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_XMLGEN_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_XMLGEN_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_XMLGEN_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_PROCESS_STREAMS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PROCESS_STREAMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_REVERSAL_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_REVERSAL_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_INVOKE_PRICING_ENGINE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_INVOKE_PRICING_ENGINE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_REVERSAL_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_REVERSAL_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_UWQ_SEL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_UWQ_SEL_PKG, status:VALID,
-
PACKAGE BODY: APPS.OKL_BILL_STATUS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_BILL_STATUS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_VAR_INT_PARAMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_VAR_INT_PARAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_VAR_INT_PARAMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_VAR_INT_PARAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_PROCESS_STREAMS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PROCESS_STREAMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CSH_ORDER_SEQ_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CSH_ORDER_SEQ_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_PAY_CURE_REFUNDS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PAY_CURE_REFUNDS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ECC_DEF_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ECC_DEF_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_TRX_QUOTES_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_TRX_QUOTES_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_PAY_CURE_REFUNDS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PAY_CURE_REFUNDS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CNTR_GRP_BILLING_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CNTR_GRP_BILLING_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_INTEREST_CALC_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_INTEREST_CALC_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_PERD_STATUS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PERD_STATUS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CREATE_STREAMS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CREATE_STREAMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_INTEREST_CALC_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_INTEREST_CALC_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CREATE_STREAMS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CREATE_STREAMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ACCOUNTING_PROCESS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ACCOUNTING_PROCESS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ACCOUNTING_PROCESS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ACCOUNTING_PROCESS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_BALANCES_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_BALANCES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_XMLP_PARAMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_XMLP_PARAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_ECC_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ECC_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_BALANCES_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_BALANCES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_UWQ_SEL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_UWQ_SEL_PKG, status:VALID,
-
PACKAGE BODY: APPS.OKL_XMLP_PARAMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_XMLP_PARAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CURE_RECON_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CURE_RECON_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ECC_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ECC_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_BILL_STATUS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_BILL_STATUS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_SETUPPRODUCTS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SETUPPRODUCTS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CSH_ORDER_SEQ_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CSH_ORDER_SEQ_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_COMBI_CASH_APP_RLS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COMBI_CASH_APP_RLS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CSH_ORDER_SEQ_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CSH_ORDER_SEQ_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_PERD_STATUS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_PERD_STATUS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_VARIABLE_INTEREST_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_VARIABLE_INTEREST_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_AM_RECYCLE_TRMNT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_AM_RECYCLE_TRMNT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_RESI_CAT_SETS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_RESI_CAT_SETS_PVT, status:VALID,