Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
DBMS_LOB , 13 of 26
This procedure opens a BFILE
for read-only access. BFILEs
may not be written through Oracle.
DBMS_LOB.FILEOPEN ( file_loc IN OUT NOCOPY BFILE, open_mode IN BINARY_INTEGER := file_readonly);
Parameter | Description |
---|---|
file_loc |
Locator for the |
open_mode |
File access is read-only. |
CREATE OR REPLACE PROCEDURE Example_10 IS fil BFILE; BEGIN -- open BFILE SELECT f_lob INTO fil FROM lob_table WHERE key_value = 99; IF (dbms_lob.fileexists(fil)) THEN dbms_lob.fileopen(fil, dbms_lob.file_readonly); -- file operation dbms_lob.fileclose(fil); END IF; EXCEPTION WHEN some_exception THEN handle_exception; END;
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|