Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g5LLbcY21349
 for <oracle-l@naude.co.za>; Fri, 21 Jun 2002 17:37:38 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id GAA04240;
 Fri, 21 Jun 2002 06:37:31 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 004840AF; Fri, 21 Jun 2002 05:43:23 -0800
Message-ID: <F001.004840AF.20020621054323@fatcity.com>
Date: Fri, 21 Jun 2002 05:43:23 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: =?iso-8859-1?q?Connor=20McDonald?= <hamcdc@yahoo.co.uk>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: =?iso-8859-1?q?Connor=20McDonald?= <hamcdc@yahoo.co.uk>
Subject: Re: Urgent : UTL file problem
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

You are getting an unhandled exception so its not the
'invalid_path' error.  Code in a handler for the other
possible exceptions which should assist.

hth
connor

 --- "Vijaya Chander V.S" <srinivasa_v@infosys.com>
wrote: > my prog looks like this (utl_file_dir=* is
present
> in initSID.ora file):
> 
> DECLARE
>         fileHandler UTL_FILE.FILE_TYPE;
> BEGIN
>         dbms_output.put_line('1');
>         fileHandler :=
> UTL_FILE.FOPEN('/users/vijay', 'myoutput.lst', 'W');
>         dbms_output.put_line('2');
>         UTL_FILE.PUTF(fileHandler, 'hai vijay \n');
>         UTL_FILE.FCLOSE(fileHandler);
> EXCEPTION
>         WHEN utl_file.invalid_path THEN
>         raise_application_error(-20000, 'ERROR:
> Invalid path for file.');
> END;
> 
> and when i am running this script i am getting a
> message like this:
> 
> 1
> DECLARE
> *
> ERROR at line 1:
> ORA-06510: PL/SQL: unhandled user-defined exception
> ORA-06512: at "SYS.UTL_FILE", line 101
> ORA-06512: at "SYS.UTL_FILE", line 157
> ORA-06512: at line 5
> 
> what can be the problem...
> 
> regards,
> vijay
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> -- 
> Author: Vijaya Chander V.S
>   INET: srinivasa_v@infosys.com
> 
> Fat City Network Services    -- (858) 538-5051  FAX:
> (858) 538-5051
> San Diego, California        -- Public Internet
> access / Mailing Lists
>
--------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an
> E-Mail message
> to: ListGuru@fatcity.com (note EXACT spelling of
> 'ListGuru') and in
> the message BODY, include a line containing: UNSUB
> ORACLE-L
> (or the name of mailing list you want to be removed
> from).  You may
> also send the HELP command for other information
> (like subscribing). 

=====
Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net

"Remember amateurs built the ark - Professionals built the Titanic"

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc@yahoo.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

