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: utl_file

Re: utl_file

From: Valery Yourinsky <vsu_at_bill.mts.ru>
Date: Mon, 17 Sep 2001 16:29:46 +0400
Message-ID: <3BA5ECBA.C1EC0A14@bill.mts.ru>


Goran Sokol wrote:
>
> Hi!
>
> I have some problems with utl_file package on 7.3.3 for AIX (utl_file_dir in
> init oracle_sid.ora is setup to *).
>
> SQL> r
> 1 declare
> 2 han UTL_FILE.FILE_TYPE;
> 3 loc constant varchar2(20) := '/vendor/';
> 4 fne constant varchar2(20) := 'proba.txt';
> 5 begin
> 6 han := utl_file.fopen(loc, fne, 'w');
> 7 utl_file.put_line(han, 'bla bla');
> 8 utl_file.fclose(han);
> 9* end;
> declare
> *
> ERROR at line 1:
> ORA-06510: PL/SQL: unhandled user-defined exception
> ORA-06512: at "SYS.UTL_FILE", line 85
> ORA-06512: at "SYS.UTL_FILE", line 120
> ORA-06512: at line 6
>
> Any ideas?

   UTL_FILE have its own exceptions raised with RAISE_APPLICATION_ERROR    See documentation and package specification.

Valery Yourinsky

-- 
Oracle8 Certified DBA
Moscow, Russia
Received on Mon Sep 17 2001 - 07:29:46 CDT

Original text of this message

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