Search Results utl_fil_lib
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.
-
LIBRARY: SYS.UTL_FIL_LIB
12.1.1
owner:SYS, object_type:LIBRARY, object_name:UTL_FIL_LIB, status:VALID,
-
LIBRARY: SYS.UTL_FIL_LIB
12.2.2
owner:SYS, object_type:LIBRARY, object_name:UTL_FIL_LIB, status:VALID,
-
PACKAGE BODY: SYS.UTL_FILE
12.1.1
owner:SYS, object_type:PACKAGE BODY, object_name:UTL_FILE, status:VALID,
-
PACKAGE BODY: SYS.UTL_FILE
12.2.2
owner:SYS, object_type:PACKAGE BODY, object_name:UTL_FILE, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
SYS.UTL_FILE dependencies on UTL_FIL_LIB
12.2.2
-
SYS.UTL_FILE dependencies on UTL_FIL_LIB
12.1.1