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: service name / invalid directory path

Re: service name / invalid directory path

From: <fitzjarrell_at_cox.net>
Date: 6 Jun 2006 04:03:20 -0700
Message-ID: <1149591800.480083.63450@y43g2000cwc.googlegroups.com>


Comments embedded.
diego.carpintero_at_eu.dendrite.com wrote:
> This question is for Oracle 8i.
>

8.1.5?? 8.1.6?? 8.1.7??

> It is possible to assign permissions to a Service Name??
>

No.

> Well, I am facing a "Invalid directory path" problem.
>
> The steps I did on the >>server<< are:
>
> 1) I wrote a procedure that uses the utl_file package
> 2) I set the parameter UTL_FILE_DIR = <directory name>
> 3) I restarted the database
>

It appears you missed a crucial step:

create or replace directory <dirname> as '<pathname>';

where <dirname> is the directory name you intend to use and <pathname> is the <directory_name> you set UTL_FILE_DIR to. If, for example, you set UTL_FILE_DIR = '/mydir/for/general/stuff' and your stored procedure uses the string 'mydir' in the utl_file calls then the create directory command should appear thus:

create or replace directory mydir as '/mydir/for/general/stuff';

This should allow your procedure to work, presuming your calls to utl_file are using mydir as the directory component.

> The error I am getting on the >>client<< is:
> "ORA-29280: invalid directory path"
>

See above; you haven't created a DIRECTORY within Oracle.

> I have the feeling it could be a problem with the Service Name I am
> using.
>

It has nothing to do with the Service Name, and everything to do with completing the given task properly.

> Any suggestions?
>
> Thanks in advance

David Fitzjarrell Received on Tue Jun 06 2006 - 06:03:20 CDT

Original text of this message

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