Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Who to use package utl_file ?

Who to use package utl_file ?

From: E. van Diermen <diermene_at_ce.philips.nl>
Date: 1998/09/09
Message-ID: <35F67EBC.D827258E@ce.philips.nl>#1/1

Hay ye'all

I have the following problem/question:
- How can I create a (e.g. text) file in pl/sql (stored procedure) ? (e.g. c:\temp\temp.txt)???

It is easy to create this in a library with the text_io package, but this package is of course not usable in a stored procedure...so, use the utl_file. But this package gives errors when I want to use it:

SQL> declare
  2 ft utl_file.file_type;
  3 begin
  4 ft := utl_file.fopen('C:\temp\','temp.txt','w');   5 end;
  6 /
declare
*
ERROR at line 1:

ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.UTL_FILE", line 82
ORA-06512: at "SYS.UTL_FILE", line 120
ORA-06512: at line 4


Can anyone help me with this? Am I using the utl_file package improperly??

Erwin Received on Wed Sep 09 1998 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US