Search Results utl_file
Overview
SYS.UTL_FILE is the Oracle-supplied PL/SQL package body that provides operating-system file input and output capabilities to database-resident PL/SQL programs. Within Oracle E-Business Suite 12.1.1 and 12.2.2, it serves as the underlying file-access layer used by concurrent programs, custom interfaces, data conversion routines, and outbound extract generators that must read from or write to files on the database server's filesystem rather than manipulate data exclusively through SQL.
The package is owned by SYS and reports a status of VALID. Its dependency tree is deliberately narrow and consists entirely of other SYS-owned constructs: PLITBLM, the STANDARD package, the UTL_FILE package specification, and UTL_FIL_LIB. In the ETRM dependency listing for the object, UTL_FILE is shown as "not referenced by any database object," although the documented package metadata records that the package is referenced by 29 other packages across the EBS schema set. This distinction reflects the difference between static dependency capture in the data dictionary and the broader runtime usage surface across EBS application code. The API classification is OTHER, indicating that UTL_FILE is a generic infrastructure utility rather than an EBS business API.
Key Procedures and Functions
The documented interface exposes 23 procedures and functions. They group naturally by purpose.
- File handling: FOPEN and FOPEN_NCHAR open a file handle for a given mode; FCLOSE and FCLOSE_ALL release one or all open handles; IS_OPEN tests whether a handle is currently open; FREMOVE deletes a filesystem file; FCOPY duplicates a file; FSEEK repositions the read/write pointer within an open file.
- Line-oriented read: GET_LINE and GET_LINE_NCHAR retrieve a single line of text or national-character-set text from an open file.
- Line-oriented write: PUT and PUT_NCHAR write text without a terminator; PUT_LINE and PUT_LINE_NCHAR write text followed by a line terminator; NEW_LINE emits a line terminator only; PUTF and PUTF_NCHAR support formatted output; FFLUSH forces buffered content to disk.
- Raw (binary) access: PUT_RAW writes binary data to an open file, and GET_RAW reads binary data from an open file.
The presence of the _NCHAR variants and the raw variants reflects the package's role as a general-purpose I/O facility rather than a single-format writer. No parameter lists are documented in the ETRM metadata beyond procedure and function names, so signatures should be confirmed against the installed UTL_FILE specification in the target environment.
Tables Accessed
The ETRM metadata records no application tables referenced through APPS synonyms for SYS.UTL_FILE. This is consistent with the package's design: it is a filesystem-access utility, not a data-access package. It performs no DML against EBS business tables and instead depends solely on the SYS infrastructure objects PLITBLM, STANDARD, UTL_FILE, and UTL_FIL_LIB to carry out its work. Any table interaction observed in a concurrent program or interface is performed by the calling program, not by UTL_FILE itself.
Usage Notes
UTL_FILE is normally invoked indirectly. In Oracle EBS, concurrent programs and custom PL/SQL routines call it to read flat-file interface inputs, write outbound extract files, and log processing output to a server-side directory. It is also reachable from the EBS environment through SQL*Plus and other client sessions operating against the database.
Three practical constraints govern its use in EBS 12.1.1 and 12.2.2. First, filesystem access is limited to directories named in the UTL_FILE_DIR initialization parameter or, in later releases, to directories granted through CREATE DIRECTORY and read via the directory object. Second, the concurrent manager runs the database server process under a specific OS account, so file paths and permissions must be valid for that account. Third, the package cannot manipulate files outside the configured directories, which is a deliberate security boundary. Because UTL_FILE is referenced by 29 other packages, changes to its configuration — particularly directory grants — can affect a broad set of EBS programs simultaneously.
-
Lookup Type: UTL_FILE_MODE
12.2.2
product: FND - Application Object Library , meaning: UTL_FILE Mode used in FND_FILE , description: UTL_FILE Mode used in FND_FILE ,
-
PACKAGE BODY: SYS.UTL_FILE
12.2.2
owner:SYS, object_type:PACKAGE BODY, object_name:UTL_FILE, status:VALID,
-
PACKAGE BODY: SYS.UTL_FILE
12.1.1
owner:SYS, object_type:PACKAGE BODY, object_name:UTL_FILE, status:VALID,
-
PACKAGE: SYS.UTL_FILE
12.1.1
owner:SYS, object_type:PACKAGE, object_name:UTL_FILE, status:VALID,
-
PACKAGE: SYS.UTL_FILE
12.2.2
owner:SYS, object_type:PACKAGE, object_name:UTL_FILE, status:VALID,
-
PACKAGE: APPS.GHR_462
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GHR_462, status:VALID,
-
PACKAGE: APPS.PAY_KW_MONTHLY_REPORTS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_KW_MONTHLY_REPORTS, status:VALID,
-
PACKAGE: APPS.PA_AUTOALLOC_WF_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_AUTOALLOC_WF_PKG, status:VALID,
-
LIBRARY: SYS.UTL_FIL_LIB
12.2.2
owner:SYS, object_type:LIBRARY, object_name:UTL_FIL_LIB, status:VALID,
-
PACKAGE: APPS.GHR_EHRI_DYNRPT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GHR_EHRI_DYNRPT, status:VALID,
-
PACKAGE: SYS.DBMS_PREUP
12.2.2
owner:SYS, object_type:PACKAGE, object_name:DBMS_PREUP, status:VALID,
-
PACKAGE: APPS.JAI_AP_TDS_ETDS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:JAI_AP_TDS_ETDS_PKG, status:VALID,
-
LIBRARY: SYS.UTL_FIL_LIB
12.1.1
owner:SYS, object_type:LIBRARY, object_name:UTL_FIL_LIB, status:VALID,
-
PACKAGE: APPS.OKI_ALERT_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKI_ALERT_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.BEN_DM_GEN_MASTER
12.1.1
owner:APPS, object_type:PACKAGE, object_name:BEN_DM_GEN_MASTER, status:VALID,
-
PACKAGE BODY: OLAPSYS.CWM2_OLAP_AW_AWUTIL
12.1.1
owner:OLAPSYS, object_type:PACKAGE BODY, object_name:CWM2_OLAP_AW_AWUTIL, status:VALID,
-
PACKAGE BODY: APPS.CSE_DEBUG_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSE_DEBUG_PUB, status:VALID,
-
PACKAGE: APPS.BEN_DM_GEN_MASTER
12.2.2
owner:APPS, object_type:PACKAGE, object_name:BEN_DM_GEN_MASTER, status:VALID,
-
PACKAGE: APPS.PAY_KW_MONTHLY_REPORTS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_KW_MONTHLY_REPORTS, status:VALID,
-
PACKAGE: APPS.PAY_KW_ANNUAL_REPORTS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_KW_ANNUAL_REPORTS, status:VALID,
-
PACKAGE: APPS.PAY_KW_ANNUAL_REPORTS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_KW_ANNUAL_REPORTS, status:VALID,
-
PACKAGE: APPS.PNUTLPKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PNUTLPKG, status:VALID,
-
PACKAGE: APPS.GHR_EXEMP_PURGE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GHR_EXEMP_PURGE, status:VALID,
-
PACKAGE: APPS.PA_AUTOALLOC_WF_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_AUTOALLOC_WF_PKG, status:VALID,
-
PACKAGE: APPS.EDW_CHECK_DATA_INTEGRITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EDW_CHECK_DATA_INTEGRITY, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_DATA_FIX_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
PACKAGE: APPS.GHR_EEOC_DYNAMICS_REPORT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GHR_EEOC_DYNAMICS_REPORT, status:VALID,
-
PACKAGE: APPS.GHR_CPDF_EHRIS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GHR_CPDF_EHRIS, status:VALID,
-
PACKAGE: APPS.GHR_EHRI_DYNRPT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GHR_EHRI_DYNRPT, status:VALID,
-
PACKAGE BODY: APPS.INV_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_UTILITY_PVT, status:VALID,
-
PACKAGE BODY: APPS.EAM_API_LOG_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_API_LOG_PVT, status:VALID,
-
PACKAGE BODY: APPS.FND_FILE_PRIVATE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FND_FILE_PRIVATE, status:VALID,
-
PACKAGE BODY: APPS.AP_CREDIT_CARD_TRXN_LOADER_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_CREDIT_CARD_TRXN_LOADER_PKG, status:VALID,
-
PACKAGE: SYS.DBMS_REPCAT_MIGRATION
12.1.1
owner:SYS, object_type:PACKAGE, object_name:DBMS_REPCAT_MIGRATION, status:VALID,
-
PACKAGE BODY: APPS.AST_DEBUG_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AST_DEBUG_PUB, status:VALID,
-
PACKAGE BODY: APPS.EAM_API_LOG_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:EAM_API_LOG_PVT, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_DATA_FIX_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
PACKAGE BODY: APPS.FND_CORE_LOG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FND_CORE_LOG, status:VALID,
-
PACKAGE: APPS.EGO_CHANGE_PEOPLE_IMPORT_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:EGO_CHANGE_PEOPLE_IMPORT_PKG, status:VALID,
-
PACKAGE: APPS.GHR_462
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GHR_462, status:VALID,
-
PACKAGE: APPS.PER_DATA_UPDATE_REPORT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PER_DATA_UPDATE_REPORT, status:VALID,
-
PACKAGE: APPS.JAI_AR_EER1_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:JAI_AR_EER1_PKG, status:VALID,
-
PACKAGE: APPS.PNUTLPKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PNUTLPKG, status:VALID,
-
PACKAGE: APPS.AS_FORECAST_ACTUAL_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AS_FORECAST_ACTUAL_PKG, status:VALID,
-
PACKAGE: APPS.BIS_DIMLEVEL_ERRS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:BIS_DIMLEVEL_ERRS_PVT, status:VALID,
-
PACKAGE: APPS.JAI_AR_EER1_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:JAI_AR_EER1_PKG, status:VALID,
-
PACKAGE BODY: APPS.FND_SYSTEM_ALERT_INTG_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FND_SYSTEM_ALERT_INTG_UTIL, status:VALID,
-
PACKAGE: APPS.EAM_API_LOG_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EAM_API_LOG_PVT, status:VALID,
-
PACKAGE: APPS.MSC_SDA_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_SDA_UTILS, status:VALID,
-
PACKAGE BODY: APPS.ARP_UPGRADE_COMMON_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_UPGRADE_COMMON_UTIL, status:VALID,