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: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 01 Aug 2002 21:46:01 +0100
Message-ID: <3D499E09.6269@yahoo.com>


nn wrote:
>
> Hi
> i execute a PL/sql package with 2 methodes:
> 1-
> >export ORACLE_SID=MYORACLE_SID
> > sqlplus user/password @execute.sql
> PL/SQL procedure successfully completed
>
> --with execute.sql : execute mypkg.myprocedure(...)--
>
> 2-
> > sqlplus user/password_at_MYORACLE_SID @execute.sql
> *
> 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 1
>
> what's wrong about "sqlplus user/password_at_MYORACLE_SID" ?, in 1 an 2 i have
> the same ORACLE_SID!! why have error in 2?
> Thank you

This would suggest the latter is connecting to a different database - which does not have the utl_file_dir set. You could confirm this by handling the individual exceptions that utl_file pops out

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Thu Aug 01 2002 - 15:46:01 CDT

Original text of this message

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