UTL_FILE
The UTL_FILE
package enables PL/SQL programs the ability to read and write operating system text files.
In the current release, this package is restricted to access of a pre-defined temporary directory only. Refer to the Oracle TimesTen In-Memory Database Release Notes.
Note:
Users do not have execute permission on UTL_FILE
by default. To use UTL_FILE
in TimesTen, an ADMIN
user or instance administrator must explicitly grant EXECUTE
permission on it, such as in the following example:
GRANT EXECUTE ON SYS.UTL_FILE TO scott;
Table 7-10 describes the UTL_FILE
subprograms.
Table 7-10 UTL_FILE Subprograms
Subprogram | Description |
---|---|
|
Closes a file. |
|
Closes all file handles. |
|
Copies a contiguous portion of a file to a newly created file. |
|
Physically writes all pending output to a file. |
|
Reads and returns the attributes of a file. |
|
Returns the current relative offset position (in bytes) within a file. |
|
Opens a file for input or output. |
|
Opens a file in Unicode for input or output. |
|
With sufficient privilege, deletes a file. |
|
Renames an existing file to a new name (similar to the UNIX |
|
Adjusts the file pointer forward or backward within the file by the number of bytes specified. |
|
Reads text from an open file. |
|
Reads text in Unicode from an open file. |
|
Reads a |
|
Determines if a file handle refers to an open file. |
|
Writes one or more operating system-specific line terminators to a file. |
|
Writes a string to a file. |
|
Writes a line to a file and appends an operating system-specific line terminator. |
|
Writes a Unicode line to a file. |
|
Writes a Unicode string to a file. |
|
Accepts as input a |
|
This is similar to the |
|
This is similar to the |