| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> utl_file does not create file
I cannot get the utl_file utility to create and write to the specified file. I am using the following code:
DECLARE myfile UTL_FILE.FILE_TYPE;
BEGIN
MYFILE:=UTL_FILE.FOPEN('C:\Temp','annScript.SQL','w');
UTL_FILE.PUT_LINE(myfile,')');
-- if (utl_file.is_open(MYFILE)) then
--UTL_FILE.FCLOSE(myfile);
EXCEPTION
when utl_file.invalid_path then
dbms_output.put_line('>>> Invalid path');
when utl_file.invalid_filehandle then
dbms_output.put_line('>>> Invalid file handle');
when utl_file.invalid_mode then
dbms_output.put_line('>>> Invalid mode');
when utl_file.invalid_operation then
dbms_output.put_line('>>> Invalid operation');
when utl_file.write_error then
dbms_output.put_line('>>> Write error');
when utl_file.read_error then
dbms_output.put_line('>>> Read error');
when utl_file.internal_error then
dbms_output.put_line('>>> Internal error');
WHEN OTHERS THEN
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Jul 27 2000 - 00:00:00 CDT
![]() |
![]() |