Search Results put_line
Overview
CSI_GEN_UTILITY_PVT is a private (PVT) PL/SQL package in the APPS schema that provides shared diagnostic, tracing, and record-dumping infrastructure for the Oracle EBS Install Base (CSI) application family. It is not an end-user business API; rather, it is a low-level utility layer consumed internally by other CSI packages for developer support, debugging, and error investigation. The package is referenced by 52 other packages, confirming its role as a common service provider across the CSI module. Its functionality centers on three concerns: writing debug messages to a server-side log file, toggling Oracle SQL trace (event 10046) for a session, and formatting/emitting the contents of installation-related record types and tables for inspection. The package header declares 46 documented procedures and functions, though the body excerpt lists only a subset of these, and additional internal helpers exist in the body.
Key Procedures and Functions
- PUT_LINE — The package's core logging routine, described in the source body. It accepts a message string and writes it to the log file configured through profile options, opening the file in append mode and flushing/closing after each write. On the first message of a database session, it emits a session banner before the actual message.
- ENABLE_TRACE — A function that conditionally enables a session-level SQL trace using the 10046 event, as indicated by the event number constant defined in the body.
- DUMP_ERROR_STACK — Emits the current PL/SQL error stack for diagnostic purposes.
- DUMP_TXN_REC / DUMP_TXN_TBL / DUMP_TXN_QUERY_REC / DUMP_TXN_SORT_REC / DUMP_TXN_ERROR_REC — A set of overloading-style dump routines for transaction records, transaction tables, query result sets, sorted collections, and transaction error records.
- DUMP_REL_REC / DUMP_REL_TBL / DUMP_REL_QUERY_REC — Corresponding dump routines for relationship records and tables.
- DUMP_SYS_REC / DUMP_SYS_TBL / DUMP_SYS_QUERY_REC — Dump routines for system/utility records, tables, and queries.
- DUMP_EXT_ATTRIB_REC — Dumps extended attribute record structures, presumably for install-base instance attributes.
- DUMP_INSTANCE_REC / DUMP_INSTANCE_QUERY_REC / DUMP_INSTANCE_HEADER_REC / DUMP_INST_PARTY_ID / DUMP_INSTANCE_ASSET_REC — Dump routines focused on Install Base instance records, instance query results, instance headers, party identifiers, and instance-asset associations.
The remaining documented routines follow the same naming and purpose conventions, providing record-level, table-level, and query-level visibility for their respective data domains.
Tables Accessed
- V$SESSION — Read once per session in PUT_LINE to build the session banner. The query selects SID, SERIAL#, AUDSID, USERNAME, SCHEMANAME, OSUSER, LOGON_TIME, and MODULE, keyed on the session ID returned by USERENV('SESSIONID'). The AUDSID is cached in a package global so the lookup occurs only on the first logged message.
- UTL_FILE — Referenced as a package (not a table) for file operations: FOPEN in append mode, PUT_LINE, FFLUSH, and FCLOSE. It writes to the directory path and filename held in package globals, derived from the CSI_LOGFILE_PATH and CSI_LOGFILE_NAME profile options.
- CSI_INSTALL_PARAMETERS — Referenced through an APPS synonym, likely for supporting dump routines related to installation parameters.
- PLITBLM — Referenced via APPS synonym; a standard PL/SQL internal table used by wrapped or coded packages, related to output/listing buffer management.
Usage Notes
PUT_LINE reads three profile options on first invocation (or when the debug level global is null): CSI_DEBUG_LEVEL, CSI_LOGFILE_NAME, and CSI_LOGFILE_PATH. Logging proceeds only when the debug level exceeds zero; otherwise the procedure returns without writing. The exception handler in PUT_LINE is deliberately silent (WHEN OTHERS THEN NULL), so logging failures never interrupt calling code, an important property for a background utility invoked throughout transactional paths.
The package is typically called from other CSI PL/SQL packages rather than directly from forms or concurrent programs. Developers raise the CSI_DEBUG_LEVEL profile and set the log directory/file profiles to activate tracing, then reproduce the scenario and inspect the log file on the database server host. ENABLE_TRACE provides SQL-level tracing for performance analysis. Because the package is classified PVT, it is not a supported public API; customizations should avoid direct dependencies, since its signature and behavior may change without notice across EBS 12.1.1 and 12.2.2 maintenance releases.
-
PACKAGE BODY: APPS.CSI_GEN_UTILITY_PVT
12.1.1
-
PACKAGE BODY: APPS.CSI_CTR_GEN_UTILITY_PVT
12.1.1
-
PACKAGE BODY: APPS.CSI_GEN_UTILITY_PVT
12.2.2
-
PACKAGE BODY: APPS.CSI_CTR_GEN_UTILITY_PVT
12.2.2
-
PACKAGE BODY: APPS.BSC_METADATA_DESC
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_UPLOAD_PDM_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_UPLOAD_PDM_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_UPGRADE_REPORT_DIST_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_UPGRADE_REPORT_DIST_PKG
12.2.2
-
PACKAGE BODY: APPS.OE_PC_CONC_REQUESTS
12.2.2
-
PACKAGE BODY: APPS.OE_PC_CONC_REQUESTS
12.1.1
-
PACKAGE BODY: APPS.INVKBCGN
12.2.2
-
PACKAGE BODY: APPS.INVKBCGN
12.1.1
-
APPS.QP_MAINTAIN_DENORMALIZED_DATA SQL Statements
12.1.1
-
APPS.OE_PC_CONC_REQUESTS SQL Statements
12.2.2
-
APPS.OE_PC_CONC_REQUESTS SQL Statements
12.1.1
-
PACKAGE BODY: APPS.BIS_DEBUG_LOG
12.1.1
-
APPS.QP_MAINTAIN_DENORMALIZED_DATA SQL Statements
12.2.2
-
PACKAGE: APPS.FND_CORE_LOG
12.1.1
-
PACKAGE: SYS.DBMS_OUTPUT
12.2.2
-
PACKAGE: SYS.DBMS_OUTPUT
12.1.1
-
PACKAGE: APPS.FND_CORE_LOG
12.2.2
-
PACKAGE BODY: APPS.FND_CORE_LOG
12.1.1
-
PACKAGE BODY: APPS.PJM_CONC
12.2.2
-
PACKAGE BODY: APPS.PJM_CONC
12.1.1
-
PACKAGE BODY: APPS.FND_CORE_LOG
12.2.2
-
PACKAGE BODY: APPS.JL_CO_GL_MG_MEDIA_PKG
12.1.1
-
APPS.CSI_GEN_UTILITY_PVT SQL Statements
12.1.1
-
PACKAGE BODY: APPS.POA_LOG
12.1.1
-
APPS.CSI_GEN_UTILITY_PVT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.ASO_DEPENDENCY_UTIL
12.2.2
-
PACKAGE BODY: APPS.ASO_DEPENDENCY_UTIL
12.1.1
-
PACKAGE BODY: APPS.JL_CO_GL_MG_MEDIA_PKG
12.2.2
-
APPS.AD_FILE_SYS_SNAPSHOTS_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.OZF_TP_UTIL_PVT
12.2.2
-
PACKAGE BODY: APPS.QP_FORMULA_RULES_PVT
12.2.2
-
PACKAGE BODY: APPS.OZF_TP_UTIL_PVT
12.1.1
-
APPS.AD_FILE_SYS_SNAPSHOTS_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.AD_FILE_SYS_SNAPSHOTS_PKG
12.1.1
-
PACKAGE BODY: APPS.AD_FILE_SYS_SNAPSHOTS_PKG
12.2.2
-
PACKAGE BODY: APPS.FII_UTIL
12.1.1
-
PACKAGE BODY: APPS.HRI_UTIL
12.2.2
-
PACKAGE BODY: APPS.QP_FORMULA_RULES_PVT
12.1.1
-
PACKAGE: DVSYS.DBMS_MACOUT
12.1.1
-
PACKAGE: APPS.EDW_LOG
12.1.1
-
PACKAGE: APPS.ASN_DEBUG
12.1.1
-
APPS.QP_FORMULA_RULES_PVT SQL Statements
12.2.2
-
PACKAGE: APPS.BIS_DEBUG_LOG
12.1.1
-
PACKAGE: DVSYS.DBMS_MACOUT
12.2.2
-
PACKAGE BODY: APPS.QP_MAINTAIN_DENORMALIZED_DATA
12.2.2