Search Results csi_gen_utility_pvt
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
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_GEN_UTILITY_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_GEN_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_GEN_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.OKS_IBINT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_IBINT_PUB, status:VALID,
-
PACKAGE: APPS.OKS_IBINT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_IBINT_PUB, status:VALID,
-
PACKAGE: APPS.CSI_GEN_UTILITY_PVT
12.2.2
-
PACKAGE: APPS.CSI_GEN_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.CSI_GEN_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CSI_GEN_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.CSI_GEN_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CSI_GEN_UTILITY_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_WEB_SERVICE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_WEB_SERVICE_PKG, status:VALID,
-
PACKAGE BODY: APPS.CS_CTR_CAPTURE_READING_PUB_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CTR_CAPTURE_READING_PUB_W, status:VALID,
-
PACKAGE BODY: APPS.CSI_BUSINESS_EVENT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_BUSINESS_EVENT_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_ORG_UNIT_VLD_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ORG_UNIT_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_EXTEND_ATTRIB_VLD_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_EXTEND_ATTRIB_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_ORG_UNIT_VLD_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ORG_UNIT_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_SYSTEMS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_SYSTEMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_EAM_INTERFACE_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_EAM_INTERFACE_GRP, status:VALID,
-
PACKAGE BODY: APPS.CSI_ORGANIZATION_UNIT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ORGANIZATION_UNIT_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_HZ_LOCATIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_HZ_LOCATIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_HZ_LOCATIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_HZ_LOCATIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_PRICING_ATTRIB_VLD_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PRICING_ATTRIB_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_PRICING_ATTRIBS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PRICING_ATTRIBS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_HANDLE_EVENT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_HANDLE_EVENT_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_PROCESS_TXN_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PROCESS_TXN_GRP, status:VALID,
-
PACKAGE BODY: APPS.CSI_BUSINESS_EVENT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_BUSINESS_EVENT_PVT, status:VALID,
-
PACKAGE BODY: APPS.CS_CTR_CAPTURE_READING_PUB_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CTR_CAPTURE_READING_PUB_W, status:VALID,
-
PACKAGE BODY: APPS.CSI_II_RELATIONSHIPS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_II_RELATIONSHIPS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_COUNTER_TEMPLATE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_COUNTER_TEMPLATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_PROCESS_TXN_GRP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PROCESS_TXN_GRP, status:VALID,
-
TYPE BODY: APPS.CSI_ITEM_INSTANCE_OBJ
12.2.2
owner:APPS, object_type:TYPE BODY, object_name:CSI_ITEM_INSTANCE_OBJ, status:VALID,
-
TYPE BODY: APPS.CSI_ITEM_INSTANCE_OBJ
12.1.1
owner:APPS, object_type:TYPE BODY, object_name:CSI_ITEM_INSTANCE_OBJ, status:VALID,
-
PACKAGE BODY: APPS.CSI_WEB_SERVICE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_WEB_SERVICE_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_PRICING_ATTRIBS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PRICING_ATTRIBS_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_ORGANIZATION_UNIT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ORGANIZATION_UNIT_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_SYSTEMS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_SYSTEMS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_PRICING_ATTRIB_VLD_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PRICING_ATTRIB_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_EXTEND_ATTRIB_VLD_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_EXTEND_ATTRIB_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_GENERIC_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_GENERIC_GRP, status:VALID,
-
PACKAGE BODY: APPS.CSI_TRANSACTIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_TRANSACTIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_CUSTOMER_PRODUCTS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_CUSTOMER_PRODUCTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_CUSTOMER_PRODUCTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_CUSTOMER_PRODUCTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_ORGANIZATION_UNIT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ORGANIZATION_UNIT_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_PRICING_ATTRIBS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_PRICING_ATTRIBS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_HANDLE_EVENT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_HANDLE_EVENT_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_EAM_INTERFACE_GRP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_EAM_INTERFACE_GRP, status:VALID,
-
PACKAGE BODY: APPS.CSI_INSTANCE_PARTIES_VLD_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_INSTANCE_PARTIES_VLD_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSI_COUNTER_TEMPLATE_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_COUNTER_TEMPLATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_II_RELATIONSHIPS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_II_RELATIONSHIPS_PUB, status:VALID,
-
PACKAGE BODY: APPS.CSI_ASSET_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_ASSET_PVT, status:VALID,
-
PACKAGE BODY: APPS.CSE_PROJ_ITEM_IN_SRV_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSE_PROJ_ITEM_IN_SRV_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSI_II_RELATIONSHIPS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSI_II_RELATIONSHIPS_PVT, status:VALID,