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 -> Re: Problem with utl_file

Re: Problem with utl_file

From: scholten <scholten_at_cityweb.de>
Date: 1998/09/08
Message-ID: <35F59525.6A772270@cityweb.de>#1/1

As far as I know you have to configure a special parameter in init.ora (UTL_FILE_OUTPUT_DIR or something like that). Marcus Scholten

Ivan Bajon wrote:

> I'm experimenting with file I/O from within PL/SQL. I try to run this in
> SQL*Plus
>
> declare
> type file_type is record (id binary_integer);
> myfile file_type;
> begin
> myfile := utl_file.fopen('C:\temp\','out.txt', 'w');
> utl_file.put_line(myfile, 'aaaa');
> utl_file.fclose(myfile);
> end;
> /
>
> but I get the line
>
> myfile := utl_file.fopen('C:\temp\','out.txt', 'w');
>
> and a ORA-06550 followed by PLS-00382 (invalid type) along with some
> additional errors. According to the documentation, I'm doing things right.
> Can anyone tell me what I do wrong? Oh, I better say that I am, of course,
> trying this on an Oracle7.3.
>
> Thanks in advance
> - Ivan Bajon
Received on Tue Sep 08 1998 - 00:00:00 CDT

Original text of this message

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